[Home] [By Thread] [By Date] [Recent Entries]

  • To: bobrien18@y...
  • Subject: RE: Need help forming html+xml message.
  • From: "Suzan Foster" <su@i...>
  • Date: Fri, 24 Sep 2004 13:46:50 +0200 (CEST)
  • Cc: xml-dev@l...
  • User-agent: SquirrelMail/1.4.2 [CVS]

On Sep 23, 2004, at 5:56 PM, Brian OBrien wrote:

> This is what I've formed but it doesn't work... Can
> you tell me what I've done wrong?
>
> POST /http://192.168.2.1:80/control?WANIPConnection
> HTTP/1.1
> HOST: 192.168.2.1:80
> SOAPACTION:
> "schemas-upnp-org:device:InternetGatewayDevice:1#GetExternalIPAddress"

This should be
urn:schemas-upnp-org:service:WANIPConnection:1#GetExternalIPAddress

> CONTENT-TYPE: text/xml ; charset="utf-8"
> Content-Length: 284
>
> <?xml version="1.0"?>
> <soap:Envelope
>  xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
>  soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">
>  <soap:Body>
>   <m:GetExternalIPAddress
>    xmlns:m=http://192.168.2.1:80/control?WANIPConnection">

this too.

>  </soap:Body>
> </soap:Envelope>

grtz, su.(hth, hand)

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member