|
|
building a soap message
|
Posted: Aug 3, 2006 2:27 AM
|
|
|
Advertisement
|
Hi!
I just started programmin with SOAP having experience only from c++ and I'am now facing some problems.
I installed ms SOAP toolkit 3.0 and I'm using Visual Studio 7.0.
My question is - how can I debug the SOAP message my program creates?
using namespace MSSOAPLib30;
ISoapSerializerPtr Serializer; ISoapReaderPtr Reader; ISoapConnectorPtr Connector;
Connector->Property["EndPointURL"] =... hr = Connector->Connect(); // Begin the message. Connector->Property["SoapAction"] = hr = Connector->BeginMessage(); // Create the SoapSerializer object. hr = Serializer.CreateInstance(__uuidof(SoapSerializer30)); hr = Serializer->StartEnvelope("", "", ""); hr = Serializer->StartBody(L""); ... ... hr = Serializer->StartElement(L"username","","",""); hr = Serializer->EndElement(); ... ... hr = Serializer->EndBody(); hr = Serializer->EndEnvelope();
// Send the message to the XML Web service. hr = Connector->EndMessage();
How can I check that the Message is equal to that what I intended it to be?
Displaying the response is easy:
printf("Answer: %s\n", (const char*)Reader->Dom->xml);
but how I can display the request?
Regards,
mika
|
|