sign in | join about | help | sitemap
Connecting Tech Pros Worldwide
Robert S's Avatar

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
Robert S's Avatar
Guest - n/a Posts
#2: Re: UPnP xml file to WSDL xml file

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]


 
Not the answer you were looking for? Post your question . . .
196,796 members ready to help you find a solution.
Join Bytes.com

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.
Post your question now . . .
It's fast and it's free

Popular Articles

Top Community Contributors