Click here to Skip to main content
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 Gholam253.3K
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 OriginalGriff 280
1 Sergey Alexandrovich Kryukov 279
2 CPallini 205
3 Maciej Los 162
4 Afzaal Ahmad Zeeshan 160
0 OriginalGriff 5,635
1 DamithSL 4,496
2 Maciej Los 3,942
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,180


Advertise | Privacy | Mobile
Web02 | 2.8.141216.1 | Last Updated 9 Jan 2012
Copyright © CodeProject, 1999-2014
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