UPnP xml file to WSDL xml file

R

Robert S

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
 
R

Robert S

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,999
Messages
2,570,245
Members
46,839
Latest member
MartinaBur

Latest Threads

Top