Advertisement
Guest User

UPnP DLNA WSDL example for SO

a guest
Jul 8th, 2015
468
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.38 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <!-- php-dlna v1.0
  3.  Copyright 2014 Torbjørn Tyridal (phpdlna@tyridal.no)
  4.  
  5.  This file is part of php-dlna.
  6.  
  7.    php-dlna is free software: you can redistribute it and/or modify
  8.    it under the terms of the GNU Affero General Public License version 3
  9.    as published by the Free Software Foundation
  10.  
  11.    php-dlna is distributed in the hope that it will be useful,
  12.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.    GNU Affero General Public License for more details.
  15.  
  16.    You can get a copy The GNU Affero General Public license from
  17.    http://www.gnu.org/licenses/agpl-3.0.html
  18. -->
  19.  
  20. <definitions name="Users"
  21.     xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
  22.     xmlns:cd="urn:schemas-upnp-org:service:ContentDirectory:1"
  23.     xmlns:cm="urn:schemas-upnp-org:service:ConnectionManager:1"
  24.     xmlns="http://schemas.xmlsoap.org/wsdl/"
  25.     xmlns:tns="urn:schemas-upnp-org:service:ContentDirectory:1.wsdl"
  26.     targetNamespace="urn:schemas-upnp-org:service:ContentDirectory:1.wsdl"
  27. >
  28.  
  29. <documentation>
  30. </documentation>
  31.  
  32. <types>
  33.     <schema targetNamespace="urn:schemas-upnp-org:service:ContentDirectory:1"
  34.         xmlns="http://www.w3.org/2001/XMLSchema">
  35.       <include schemaLocation="contentdirectory.xsd"/>
  36.     </schema>
  37.  
  38.     <schema targetNamespace="urn:schemas-upnp-org:service:ConnectionManager:1"
  39.         xmlns="http://www.w3.org/2001/XMLSchema">
  40.       <include schemaLocation="connectionmanager.xsd"/>
  41.     </schema>
  42. </types>
  43.  
  44. <message name="BrowseMsg">
  45.     <part name="body" element="cd:Browse"/>
  46. </message>
  47. <message name="BrowseResponseMsg">
  48.     <part name="body" element="cd:BrowseResponse"/>
  49. </message>
  50. <message name="SearchMsg">
  51.     <part name="body" element="cd:Search"/>
  52. </message>
  53. <message name="SearchResponseMsg">
  54.     <part name="body" element="cd:SearchResponse"/>
  55. </message>
  56. <message name="GetSearchCapabilitiesMsg">
  57.     <part name="body" element="cd:GetSearchCapabilities"/>
  58. </message>
  59. <message name="GetSearchCapabilitiesResponseMsg">
  60.     <part name="body" element="cd:GetSearchCapabilitiesResponse"/>
  61. </message>
  62.  
  63. <message name="GetSystemUpdateIDMsg">
  64.     <part name="body" element="cd:GetSystemUpdateID"/>
  65. </message>
  66. <message name="GetSystemUpdateIDResponseMsg">
  67.     <part name="body" element="cd:GetSystemUpdateIDResponse"/>
  68. </message>
  69.  
  70. <message name="GetProtocolInfoMsg">
  71.     <part name="body" element="cm:GetProtocolInfo"/>
  72. </message>
  73. <message name="GetProtocolInfoResponseMsg">
  74.     <part name="body" element="cm:GetProtocolInfoResponse"/>
  75. </message>
  76.  
  77. <portType name="ContentDirectoryPortType">
  78.     <documentation>ContentDirectory operations</documentation>
  79.     <operation name="Browse">
  80.         <documentation>Browse the dlna/upnp server</documentation>
  81.         <input message="tns:BrowseMsg"/>
  82.         <output message="tns:BrowseResponseMsg"/>
  83.     </operation>
  84.     <operation name="Search">
  85.         <documentation>Browse the dlna/upnp server</documentation>
  86.         <input message="tns:SearchMsg"/>
  87.         <output message="tns:SearchResponseMsg"/>
  88.     </operation>
  89.     <operation name="GetSearchCapabilities">
  90.         <documentation>Browse the dlna/upnp server</documentation>
  91.         <input message="tns:GetSearchCapabilitiesMsg"/>
  92.         <output message="tns:GetSearchCapabilitiesResponseMsg"/>
  93.     </operation>
  94.  
  95.     <operation name="GetSystemUpdateID">
  96.         <documentation>Browse the dlna/upnp server</documentation>
  97.         <input message="tns:GetSystemUpdateIDMsg"/>
  98.         <output message="tns:GetSystemUpdateIDResponseMsg"/>
  99.     </operation>
  100.    
  101.     <operation name="GetProtocolInfo">
  102.         <documentation>Browse the dlna/upnp server</documentation>
  103.         <input message="tns:GetProtocolInfoMsg"/>
  104.         <output message="tns:GetProtocolInfoResponseMsg"/>
  105.     </operation>
  106. </portType>
  107.  
  108. <binding name="ContentDirectoryBinding" type="tns:ContentDirectoryPortType">
  109.     <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
  110.     <operation name="Browse">
  111.         <soap:operation soapAction="urn:schemas-upnp-org:service:ContentDirectory:1#Browse" />
  112.          <input><soap:body use="literal"/></input>
  113.          <output><soap:body use="literal"/></output>
  114.     </operation>
  115.     <operation name="Search">
  116.         <soap:operation soapAction="urn:schemas-upnp-org:service:ContentDirectory:1#Search" />
  117.          <input><soap:body use="literal"/></input>
  118.          <output><soap:body use="literal"/></output>
  119.     </operation>
  120.     <operation name="GetSearchCapabilities">
  121.         <soap:operation soapAction="urn:schemas-upnp-org:service:ContentDirectory:1#GetSearchCapabilities" />
  122.         <output><soap:body use="literal"/></output>
  123.     </operation>
  124.  
  125.     <operation name="GetSystemUpdateID">
  126.         <soap:operation soapAction="urn:schemas-upnp-org:service:ContentDirectory:1#GetSystemUpdateID" />
  127.         <output><soap:body use="literal"/></output>
  128.     </operation>
  129.    
  130.     <operation name="GetProtocolInfo">
  131.         <soap:operation soapAction="urn:schemas-upnp-org:service:ConnectionManager:1#GetProtocolInfo" />
  132.         <output><soap:body use="literal"/></output>
  133.     </operation>
  134. </binding>
  135.  
  136. <service name="DLNA/UPNP server">
  137.     <port name="ContentDirectoryPort" binding="tns:ContentDirectoryBinding">
  138.         <soap:address location="http://192.168.1.140/dlnax/cdCtrl.php"/>
  139.     </port>
  140. </service>
  141.  
  142. </definitions>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement