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

Re: IGD soap question.


brian obrien
The following RFC[1] may help answer your questions.

Kind Regards,
Joe Chiusano
Booz Allen Hamilton
Strategy and Technology Consultants to the World

[1] http://www.faqs.org/rfcs/rfc2616.html

Brian OBrien wrote:
> 
> 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
> 
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
> 
> The list archives are at http://lists.xml.org/archives/xml-dev/
> 
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://www.oasis-open.org/mlmanage/index.php>

-- 
Kind Regards,
Joseph Chiusano
Associate
Booz Allen Hamilton

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.