How to send a SOAP in C?

5

How do I send a SOAP in C?

I have a Web Service that consumes SOAP and I have to send this SOAP in C.

How can I do this? Is there an API or do I have to create a library?

    
asked by anonymous 06.03.2015 / 15:38

2 answers

3

You can use the WWSAPI , as mentioned in the Toby Mosque response , to do this you should basically create a Proxy service through the WsCreateServiceProxy and once created, use the function WsOpenServiceProxy passing as a parameter a structure WS_ENDPOINT_ADDRESS that will contain the information you need to connect to the service.

When you no longer need to use this service, you can call the WsCloseServiceProxy to close the communication and free the memory associated with it with WsFreeServiceProxy .

On the page below you can find links for all the resources available to make this type of connection. MSDN.

There are also libraries that can do this work for you. For example, the csoap , a client / server library for SOAP written in pure C.

Another alternative is Apache Fondation's Apache Axis project.

06.03.2015 / 18:49
1

@JorgeB, to connect a C / C ++ application to a WebService, you need to use WWSAPI.

For more information you can look at the following website:

link

    
06.03.2015 / 15:52