UPnP xml file to WSDL xml file
Question posted by: Robert S
(Guest)
on
October 14th, 2005 05:35 PM
Hello,
could somebody help me to convert the below UPnP service file to WSDL
web service file:
<serviceList>
<service>
<serviceType>
urn:schemas-upnp-org:service:PowerSwitch:1
</serviceType>
<serviceId> urn:upnp-org:service:PowerSwitch:1
</serviceId>
<controlURL>/upnp/control/power1</controlURL>
<eventSubURL>/upnp/control/power1</eventSubURL>
<SCPDURL>/blenderpowerSCPD.xml</SCPDURL>
</service>
thanks in advance
bobby
1
Answer Posted
I tried to combine UPnP servive and blenderpowerSCPD.xml and come up with
WSDL web service file as below:
UPnP services:
<serviceList>
<service>
<serviceType>
urn:schemas-upnp-org:service:PowerSwitch:1
</serviceType>
<serviceId> urn:upnp-org:service:PowerSwitch:1
</serviceId>
<controlURL>/upnp/control/power1</controlURL>
<eventSubURL>/upnp/control/power1</eventSubURL>
<SCPDURL>/blenderpowerSCPD.xml</SCPDURL>
</service>
....
SCPD file
<actionList>
<action>
<name>SetSpeed</name>
<argumentList>
<argument>
<name>Speed</name>
</argument>
</argumentList>
</action>
...
</actionList>
NOW the WSDL is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="Device Control" targetNamespace="http://shemas.UPnP.org/">
<message name="PowerSwitch">
</message>
<operation name="SetSpeed">
<input message="Speed">
</input>
</operation>
<service name="PowerSwitch1">
</service>
</definitions>
any idea if this is right and the wsdl file represent the UPnP ?
thanks in advance
bobby
"Robert S" <b_simaie@hotmail.com> wrote in message
news:diomg0$8eb$1@domitilla.aioe.org...[color=blue]
> Hello,
> could somebody help me to convert the below UPnP service file to WSDL
> web service file:
>
> <serviceList>
> <service>
> <serviceType>
> urn:schemas-upnp-org:service:PowerSwitch:1
> </serviceType>
> <serviceId> urn:upnp-org:service:PowerSwitch:1
> </serviceId>
> <controlURL>/upnp/control/power1</controlURL>
> <eventSubURL>/upnp/control/power1</eventSubURL>
> <SCPDURL>/blenderpowerSCPD.xml</SCPDURL>
> </service>
>
> thanks in advance
> bobby
>
>[/color]
|
|
|
What is Bytes?
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 196,796 network members.
Top Community Contributors
|