Sending an XML request to a web service from a smart device application (c++)

hi all,

 

i have a requirement of sending a request to a web service from my smart device application.

i need to do this using XML the response of which will also be XML.

could anyone get me started on this.

i have a sample application using the following functions

1. InternetOpen

2. InternetCrackUrl - (to this the url along with the request was being passed)

3. InternetConnect

4. HttpOpenRequest

5. HttpSendRequest

6. InternetReadFile

in that order.

but i need to send the request in XML format and need to do it through a "post".

i'm not sure if the functions mentioned above do it through a "get" or a "post".

any sample application doing this would be of great help.

cheers

thanks in advance

Kulkarni

 

 

 

 

 

 

 



Answer this question

Sending an XML request to a web service from a smart device application (c++)

  • Sabrecat

    Performing a POST request using WinHTTP is described here:

    http://support.microsoft.com/ kbid=165298

    Basically it is about specifying "POST" in HttpOpenRequest and setting content type to application/x-www-form-urlencoded

    I also suggest to check out SOAP toolikit (available in the platform builder)



  • Sending an XML request to a web service from a smart device application (c++)