Anyone here has any experience in SOAP using c++.
I am building a SOAP client and want to send SOAP/xml to http server and not really getting how it will be done. Normal requests to the server are returning successfully but that's easy. I can send the whole XML to the server but dont know at what step or what sequence i have to follow to make it successful.
In the normal circumstances we send a simple http request to the server after establishing connection. Will we be sending the whole xml/soap in this case to the server instead? I am open to using any cross platform libraries also if there is one.
for someone who wants to implement SOAP using c++:
SOAP is a protocol to send data to a web server/service and get response.
the packet should be http + xml
host will be: www.ebob42.com (for this example)
soapaction is not necessary but sometimes used
content length is the full length of the xml below
pags will be whatever is there after the domain name, like if the whole link is:
www.ebob42.com/cgi-bin/Romulan.exe/soap/IRoman
then page will be /cgi-bin/Romulan.exe/soap/IRoman
xml will be the whole soap request like this which i used to test:
what it is doing is when i send the server a request giving it a number it will return me its equivalent roman number. i have send 1992 and it returned MCMXCII.
thats it and you have learned how to send SOAP request using C++.