Wrox Programmer Forums
|
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming 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
  #1 (permalink)  
Old November 30th, 2005, 05:47 PM
Registered User
 
Join Date: Nov 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default SOAP problem

I am trying to make a C++ application send and recieve 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
Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
What is SOAP why do we need it nidhimittal Pro PHP 1 October 23rd, 2006 03:28 AM
SOAP and XSL(T) NEO1976 XSLT 7 August 22nd, 2006 09:45 AM
soap on C shiji4u XML 0 March 1st, 2006 04:59 AM
Using SOAP and C++ RussellThor Visual C++ 0 November 29th, 2005 09:06 PM
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.