[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

IGD soap question.


getexternalipaddress
I hope I may ask soap / xml related questions on this
forum.
If not would  you please point me to an appropriate
mailing list?

I am trying to build up a soap message to send to an
IGD.
This is what I've been able to figure out so far but
with some questions:

POST /_SwitchPower.0001_control HTTP/1.1
HOST: 192.168.2.5:64723
SOAPACTION:
"schemas-upnp-org:device:InternetGatewayDevice:1#GetExternalIPAddress"
CONTENT-TYPE: text/xml ; charset="utf-8"
Content-Length: 282
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope
s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Body>
        <u:GetExternalIPAddress
xmlns:u="urn:schemas-upnp-org:device:InternetGatewayDevice:1"
/>
    </s:Body>
</s:Envelope>

So my questions are:
What is after the / on the post line? 
_SwitchPower.001_control? ( I know I
have this wrong but don't know what it should be)
Host is who is posting the soap message?
What is the s: in front of Envelope and Body?
What is the u: in front of GetExternalIPAddress?

I know the content lenght isn't correctly
calculated...

The method, GetExternalIPAddress is defined within my
UPnP internet Gateway
Device, in x_wanipconnection.xml

So once the soap message is properly formatted I send
it by tcp on the ip
address of my IGD on port 80 of the NAT.

I assume that it will 'if all goes well' reply with a
SOAP message with the
address of my IGD.


______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.