You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Eli Brin <El...@emation.co.il> on 2000/09/05 13:55:05 UTC

uPNP SOAP

Hello,

We need to produce the following SOAP messages on the uPNP protocol:

POST /upnp/control/tvcontrol1 HTTP/1.1
Content-Type: text/xml
SOAPAction: urn:schemas-upnp-org:service:tvcontrol:1#PowerOn
Content-Length: 259
User-Agent: Mozilla/4.0 (compatible; MS IE 5.5; Windows 98; Win 9x 4.90)
Host: 192.168.20.226:5431
Connection: Keep-Alive

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas
xmlsoap.org/soap/envelope/"
	
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
  <SOAP-ENV:Body>
    <m:PowerOn xmlns:m="urn:schemas-upnp-org:service:tvcontrol:1"/>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>      

The "m" namespace prefix is mandatory.

I was unable to do this with the Call class.  I have tried using
SOAPHttpConnection directly with an Envelope and Body classes,
but the marshal method of the Body class could not cast the Body entries to
Bean class it.

Please advise.

Thank you, and

Best Regards
Eli Brin
Advanced Technologies Group
eMation Israel
+972 3 9226322  ext: 141