Click here to Skip to main content
11,477,625 members (75,908 online)
Rate this: bad
good
Please Sign up or sign in to vote.
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
TCP_CONNECT
TCP_SEND_DATA
TCP_RECEIVE_DATA
TCP_DISCONNECT
Posted 8-Jan-12 1:32am
Edited 8-Jan-12 1:46am
Mehdi Gholam275.2K
v2
Comments
SAKryukov at 9-Jan-12 0:20am
   
Do you have WSDL file?
--SA
amertarekt at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 274
1 Richard Deeming 245
2 _duDE_ 165
3 Tomas Takac 150
4 Sascha Lefèvre 145
0 Sergey Alexandrovich Kryukov 7,675
1 OriginalGriff 7,246
2 Sascha Lefèvre 3,034
3 Maciej Los 2,491
4 Richard Deeming 2,305


Advertise | Privacy | Mobile
Web01 | 2.8.150520.1 | Last Updated 9 Jan 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100