I am having some problems connecting to web services with soap through c++ I have looked at numerous examples and followed the help documentation from microsofts SOAP Toolkit. I have also tried using the webreferences feature of .net.
My problem is that I have to develop in c++ and add SOAP services to an application. I have been using the following example code from code guru.
using namespace MSXML2;
#import "C:\Program Files\Common Files\MSSoap\Binaries\msso
exclude("IStream", "IErrorInfo", "ISequentialStream", "_LARGE_INTEGER", \
"_ULARGE_INTEGER", "tagSTATSTG", "_FILETIME")
using namespace MSSOAPLib30;
// Connect to the service
// Begin message
ction"] = "uri:allesta-YahooUserPing
// Create the SoapSerializer
// Connect the serializer to the input stream of the connector
// Build the SOAP Message
// Send the message to the web service
// Read the response
// Connect the reader to the output stream of the connector
// Display the result
printf("Answer: %s\n", (const char *)Reader->RpcResult->text)
All I get is an abnormal program termination message.
I have SOAPToolkit 3.0 installed and I have MSXML4 installed. If anyone could point me in the right direction or give me an idea why this might be crashing it would be very appreciated. It seems to be crashing at the EndMessage line. I have tried numerous url's which cause earlier crashes at the Property["EndPointUrl"] line.