Wrox Programmer Forums
|
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 29th, 2005, 09:06 PM
Registered User
 
Join Date: Nov 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using SOAP and C++

I am trying to make a C++ application send and receive information over the web using SOAP. The application has to store a users progress data
I have the soap code here to do a simple actions, i.e. check the date of the application the user is using.


POST /MyProcutWebService/MyProcut.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.MyProductWebsite.com/MyProcutWebService/MyProcut/CheckDateOfApplication"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <CheckDateOfApplication xmlns="http://www.MyProductWebsite.com/MyProcutWebService/MyProcut">
      <dttmApplication>dateTime</dttmApplication>
      <nResult>int</nResult>
    </CheckDateOfApplication>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <CheckDateOfApplicationResponse xmlns="http://www.MyProductWebsite/MyProcutWebService/MyProcut">
      <CheckDateOfApplicationResult>boolean</CheckDateOfApplicationResult>
      <nResult>int</nResult>
    </CheckDateOfApplicationResponse>
  </soap:Body>
</soap:Envelope>


I am trying to convert this to C++ but there is not documentation on how to use a Serializer:
ISoapSerializerPtr Serializer

i.e. how do you convert the soap syntax into the serializer.
I looked at the links
The only thing I can find on MSDN is
http://msdn.microsoft.com/library/de...rstandsoap.asp
and on the web
http://www.devarticles.com/c/a/Cplus...sual-C-plus/1/
but couldnt find enough info.
It is not clear to me how to convert the SOAP calls into the Serializer calls with the limited information available.
Can someone point me to some more detailed documentation or examples using serializers to send soap information?
Thanks

Thor





Similar Threads
Thread Thread Starter Forum Replies Last Post
What is a SOAP Request ? mscanand .NET Web Services 1 August 4th, 2007 11:40 AM
What is SOAP why do we need it nidhimittal Pro PHP 1 October 23rd, 2006 03:28 AM
soap on C shiji4u XML 0 March 1st, 2006 04:59 AM
soap a.slaughter Pro PHP 0 March 22nd, 2005 10:25 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.