Click here to Skip to main content
15,889,874 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Anyone know that we can call web service in C# using Add Web Reference in VS2008

and we can call it through c and c++ using SOAP library like gsoap library

this library convert the xml string that is used to call the webservice and send it to it through a port is anyone know how can i do it and get the xml string and how to send it to the webservice through tcp/ip protocol without using the gsoap protocol?

i have a c# webservice have function add_number take two integers adding them and return the result as integer and i have a terminal that has 4 functions
C++
TCP_CONNECT
TCP_SEND_DATA
TCP_RECEIVE_DATA
TCP_DISCONNECT
Posted
Updated 8-Jan-12 0:46am
v2
Comments
Sergey Alexandrovich Kryukov 9-Jan-12 0:20am    
Do you have WSDL file?
--SA
amertarekt 9-Jan-12 3:17am    
yes i have it
what about if i say i am working on free online webservice like this

http://www.webservicex.net/globalweather.asmx?WSDL

1 solution

I solved it

We can Call webservice using Tcp/Ip by sending the XML Code that is appearing under the page of function calling in the webservice page like thie

http://www.webservicex.net/globalweather.asmx?op=GetCitiesByCountry[^]

to port 80 and the server and wait for the HTTP responce
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900