The Artima Developer Community
Sponsored Link

Web Services Forum
building a soap message

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Mika Lehtonen

Posts: 1
Nickname: mikabit
Registered: Aug, 2006

building a soap message Posted: Aug 3, 2006 2:27 AM
Reply to this message Reply
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

Topic: How to automate specific web data search and collecting Previous Topic   Next Topic Topic: Question about WSS4J

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use