top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to call WebService from C routine?

+2 votes
829 views

I am exploring for solution on net and found that there are third party APIs available which can be integrated with present system and that can help in making call to WS.

Can there be some simple way to call any WS using any socket programming etc ? ie providing Server/Port details or WSDL Url and then any HTTP request can be send and we can make a call to WS?
If there is no such standard way which third party API/Software are good to be used for making SOAP calls?

posted Jun 2, 2014 by Prashant Dwivedi

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button
I dont know your real requirement but seems that u need to write a SOAP client, if you want to use third part library then try gSOAP (http://www.cs.fsu.edu/~engelen/soap.html ).

1 Answer

+2 votes

SOAP is a firewalls friendly way to make remote procedures call.. SOAP may also be used over HTTPS (since it is the same protocol as HTTP at the application level).

First you need to compile schema(xsd file).
http://users.skynet.be/pascalbotte/rcx-ws-doc/gsoap.htm

The following files will be created after compiling schema :
soapC.c soapencoder.c
soapencoder.h soapH.h soapStub.h stdsoap2.h

soapencode : It is the function to convert structure to xml stream.
soapdecode : It is the function to convert xml stream to structure.

Now you can send xml stream using curl library.

answer Jun 2, 2014 by Vikas Upadhyay
Similar Questions
+1 vote

This is just to check with you, if it is possible to call MR jobs from Java Webservices. If yes, then could you please help me by pointing to some resources/docs.

Actually, what I intend to do is create a Web UI with some functionality which would call MR jobs and present the result to the user in browser.

...