Advertisement
Guest User

Untitled

a guest
Apr 18th, 2012
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 18.88 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <wsdl:definitions name="TrackingService" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:tns="http://tempuri.org/" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  3.   <wsp:Policy wsu:Id="WS2007HttpBinding_ITrackingService_policy">
  4.     <wsp:ExactlyOne>
  5.       <wsp:All>
  6.         <wsaw:UsingAddressing/>
  7.       </wsp:All>
  8.     </wsp:ExactlyOne>
  9.   </wsp:Policy>
  10.   <wsdl:types>
  11.     <xs:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  12.       <xs:import namespace="http://schemas.datacontract.org/2004/07/RFine.myservice.Service"/>
  13.       <xs:element name="SendDeviceState">
  14.         <xs:complexType>
  15.           <xs:sequence>
  16.             <xs:element minOccurs="0" name="state" nillable="true" type="q1:DeviceState" xmlns:q1="http://schemas.datacontract.org/2004/07/RFine.myservice.Service"/>
  17.           </xs:sequence>
  18.         </xs:complexType>
  19.       </xs:element>
  20.       <xs:element name="SendDeviceStateResponse">
  21.         <xs:complexType>
  22.           <xs:sequence/>
  23.         </xs:complexType>
  24.       </xs:element>
  25.       <xs:element name="GetDevices">
  26.         <xs:complexType>
  27.           <xs:sequence>
  28.             <xs:element minOccurs="0" name="customerId" type="xs:int"/>
  29.           </xs:sequence>
  30.         </xs:complexType>
  31.       </xs:element>
  32.       <xs:element name="GetDevicesResponse">
  33.         <xs:complexType>
  34.           <xs:sequence>
  35.             <xs:element minOccurs="0" name="GetDevicesResult" nillable="true" type="q2:ArrayOfDevice" xmlns:q2="http://schemas.datacontract.org/2004/07/RFine.myservice.Service"/>
  36.           </xs:sequence>
  37.         </xs:complexType>
  38.       </xs:element>
  39.       <xs:element name="GetDeviceState">
  40.         <xs:complexType>
  41.           <xs:sequence>
  42.             <xs:element minOccurs="0" name="deviceId" type="xs:int"/>
  43.           </xs:sequence>
  44.         </xs:complexType>
  45.       </xs:element>
  46.       <xs:element name="GetDeviceStateResponse">
  47.         <xs:complexType>
  48.           <xs:sequence>
  49.             <xs:element minOccurs="0" name="GetDeviceStateResult" nillable="true" type="q3:DeviceState" xmlns:q3="http://schemas.datacontract.org/2004/07/RFine.myservice.Service"/>
  50.           </xs:sequence>
  51.         </xs:complexType>
  52.       </xs:element>
  53.       <xs:element name="GetDeviceStateHistory">
  54.         <xs:complexType>
  55.           <xs:sequence>
  56.             <xs:element minOccurs="0" name="deviceId" type="xs:int"/>
  57.             <xs:element minOccurs="0" name="rowCount" type="xs:int"/>
  58.           </xs:sequence>
  59.         </xs:complexType>
  60.       </xs:element>
  61.       <xs:element name="GetDeviceStateHistoryResponse">
  62.         <xs:complexType>
  63.           <xs:sequence>
  64.             <xs:element minOccurs="0" name="GetDeviceStateHistoryResult" nillable="true" type="q4:ArrayOfDeviceState" xmlns:q4="http://schemas.datacontract.org/2004/07/RFine.myservice.Service"/>
  65.           </xs:sequence>
  66.         </xs:complexType>
  67.       </xs:element>
  68.       <xs:element name="PersistDevice">
  69.         <xs:complexType>
  70.           <xs:sequence>
  71.             <xs:element minOccurs="0" name="device" nillable="true" type="q5:Device" xmlns:q5="http://schemas.datacontract.org/2004/07/RFine.myservice.Service"/>
  72.             <xs:element minOccurs="0" name="update" type="xs:boolean"/>
  73.           </xs:sequence>
  74.         </xs:complexType>
  75.       </xs:element>
  76.       <xs:element name="PersistDeviceResponse">
  77.         <xs:complexType>
  78.           <xs:sequence/>
  79.         </xs:complexType>
  80.       </xs:element>
  81.       <xs:element name="GetDevice">
  82.         <xs:complexType>
  83.           <xs:sequence>
  84.             <xs:element minOccurs="0" name="serialNumber" nillable="true" type="xs:string"/>
  85.           </xs:sequence>
  86.         </xs:complexType>
  87.       </xs:element>
  88.       <xs:element name="GetDeviceResponse">
  89.         <xs:complexType>
  90.           <xs:sequence>
  91.             <xs:element minOccurs="0" name="GetDeviceResult" nillable="true" type="q6:Device" xmlns:q6="http://schemas.datacontract.org/2004/07/RFine.myservice.Service"/>
  92.           </xs:sequence>
  93.         </xs:complexType>
  94.       </xs:element>
  95.     </xs:schema>
  96.     <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/">
  97.       <xs:element name="anyType" nillable="true" type="xs:anyType"/>
  98.       <xs:element name="anyURI" nillable="true" type="xs:anyURI"/>
  99.       <xs:element name="base64Binary" nillable="true" type="xs:base64Binary"/>
  100.       <xs:element name="boolean" nillable="true" type="xs:boolean"/>
  101.       <xs:element name="byte" nillable="true" type="xs:byte"/>
  102.       <xs:element name="dateTime" nillable="true" type="xs:dateTime"/>
  103.       <xs:element name="decimal" nillable="true" type="xs:decimal"/>
  104.       <xs:element name="double" nillable="true" type="xs:double"/>
  105.       <xs:element name="float" nillable="true" type="xs:float"/>
  106.       <xs:element name="int" nillable="true" type="xs:int"/>
  107.       <xs:element name="long" nillable="true" type="xs:long"/>
  108.       <xs:element name="QName" nillable="true" type="xs:QName"/>
  109.       <xs:element name="short" nillable="true" type="xs:short"/>
  110.       <xs:element name="string" nillable="true" type="xs:string"/>
  111.       <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte"/>
  112.       <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt"/>
  113.       <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong"/>
  114.       <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort"/>
  115.       <xs:element name="char" nillable="true" type="tns:char"/>
  116.       <xs:simpleType name="char">
  117.         <xs:restriction base="xs:int"/>
  118.       </xs:simpleType>
  119.       <xs:element name="duration" nillable="true" type="tns:duration"/>
  120.       <xs:simpleType name="duration">
  121.         <xs:restriction base="xs:duration">
  122.           <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?"/>
  123.           <xs:minInclusive value="-P10675199DT2H48M5.4775808S"/>
  124.           <xs:maxInclusive value="P10675199DT2H48M5.4775807S"/>
  125.         </xs:restriction>
  126.       </xs:simpleType>
  127.       <xs:element name="guid" nillable="true" type="tns:guid"/>
  128.       <xs:simpleType name="guid">
  129.         <xs:restriction base="xs:string">
  130.           <xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}"/>
  131.         </xs:restriction>
  132.       </xs:simpleType>
  133.       <xs:attribute name="FactoryType" type="xs:QName"/>
  134.       <xs:attribute name="Id" type="xs:ID"/>
  135.       <xs:attribute name="Ref" type="xs:IDREF"/>
  136.     </xs:schema>
  137.     <xs:schema elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/RFine.myservice.Service" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://schemas.datacontract.org/2004/07/RFine.myservice.Service">
  138.       <xs:complexType name="DeviceState">
  139.         <xs:sequence>
  140.           <xs:element minOccurs="0" name="Device" nillable="true" type="tns:Device"/>
  141.           <xs:element minOccurs="0" name="DeviceId" type="xs:int"/>
  142.           <xs:element minOccurs="0" name="Id" type="xs:int"/>
  143.           <xs:element minOccurs="0" name="Location" nillable="true" type="tns:Location"/>
  144.           <xs:element minOccurs="0" name="Timestamp" type="xs:dateTime"/>
  145.           <xs:element minOccurs="0" name="Weather" nillable="true" type="tns:Weather"/>
  146.         </xs:sequence>
  147.       </xs:complexType>
  148.       <xs:element name="DeviceState" nillable="true" type="tns:DeviceState"/>
  149.       <xs:complexType name="Device">
  150.         <xs:sequence>
  151.           <xs:element minOccurs="0" name="Customer" nillable="true" type="tns:Customer"/>
  152.           <xs:element minOccurs="0" name="CustomerId" type="xs:int"/>
  153.           <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string"/>
  154.           <xs:element minOccurs="0" name="DeviceStates" nillable="true" type="tns:ArrayOfDeviceState"/>
  155.           <xs:element minOccurs="0" name="Id" type="xs:int"/>
  156.           <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string"/>
  157.           <xs:element minOccurs="0" name="Sensors" nillable="true" type="tns:ArrayOfSensor"/>
  158.           <xs:element minOccurs="0" name="SerialNumber" nillable="true" type="xs:string"/>
  159.         </xs:sequence>
  160.       </xs:complexType>
  161.       <xs:element name="Device" nillable="true" type="tns:Device"/>
  162.       <xs:complexType name="Customer">
  163.         <xs:sequence>
  164.           <xs:element minOccurs="0" name="Devices" nillable="true" type="tns:ArrayOfDevice"/>
  165.           <xs:element minOccurs="0" name="Id" type="xs:int"/>
  166.           <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string"/>
  167.         </xs:sequence>
  168.       </xs:complexType>
  169.       <xs:element name="Customer" nillable="true" type="tns:Customer"/>
  170.       <xs:complexType name="ArrayOfDevice">
  171.         <xs:sequence>
  172.           <xs:element minOccurs="0" maxOccurs="unbounded" name="Device" nillable="true" type="tns:Device"/>
  173.         </xs:sequence>
  174.       </xs:complexType>
  175.       <xs:element name="ArrayOfDevice" nillable="true" type="tns:ArrayOfDevice"/>
  176.       <xs:complexType name="ArrayOfDeviceState">
  177.         <xs:sequence>
  178.           <xs:element minOccurs="0" maxOccurs="unbounded" name="DeviceState" nillable="true" type="tns:DeviceState"/>
  179.         </xs:sequence>
  180.       </xs:complexType>
  181.       <xs:element name="ArrayOfDeviceState" nillable="true" type="tns:ArrayOfDeviceState"/>
  182.       <xs:complexType name="ArrayOfSensor">
  183.         <xs:sequence>
  184.           <xs:element minOccurs="0" maxOccurs="unbounded" name="Sensor" nillable="true" type="tns:Sensor"/>
  185.         </xs:sequence>
  186.       </xs:complexType>
  187.       <xs:element name="ArrayOfSensor" nillable="true" type="tns:ArrayOfSensor"/>
  188.       <xs:complexType name="Sensor">
  189.         <xs:sequence>
  190.           <xs:element minOccurs="0" name="Device" nillable="true" type="tns:Device"/>
  191.           <xs:element minOccurs="0" name="DeviceId" type="xs:int"/>
  192.           <xs:element minOccurs="0" name="Id" type="xs:int"/>
  193.           <xs:element minOccurs="0" name="Socket" type="xs:short"/>
  194.           <xs:element minOccurs="0" name="Type" type="xs:short"/>
  195.         </xs:sequence>
  196.       </xs:complexType>
  197.       <xs:element name="Sensor" nillable="true" type="tns:Sensor"/>
  198.       <xs:complexType name="Location">
  199.         <xs:sequence>
  200.           <xs:element minOccurs="0" name="DeviceState" nillable="true" type="tns:DeviceState"/>
  201.           <xs:element minOccurs="0" name="Id" type="xs:int"/>
  202.           <xs:element minOccurs="0" name="Lat" type="xs:double"/>
  203.           <xs:element minOccurs="0" name="Long" type="xs:double"/>
  204.           <xs:element minOccurs="0" name="Speed" type="xs:double"/>
  205.         </xs:sequence>
  206.       </xs:complexType>
  207.       <xs:element name="Location" nillable="true" type="tns:Location"/>
  208.       <xs:complexType name="Weather">
  209.         <xs:sequence>
  210.           <xs:element minOccurs="0" name="AtmosphericPressure" nillable="true" type="xs:string"/>
  211.           <xs:element minOccurs="0" name="DeviceState" nillable="true" type="tns:DeviceState"/>
  212.           <xs:element minOccurs="0" name="Humidity" type="xs:double"/>
  213.           <xs:element minOccurs="0" name="Id" type="xs:int"/>
  214.           <xs:element minOccurs="0" name="Luminosity" type="xs:double"/>
  215.           <xs:element minOccurs="0" name="Temperature" type="xs:double"/>
  216.         </xs:sequence>
  217.       </xs:complexType>
  218.       <xs:element name="Weather" nillable="true" type="tns:Weather"/>
  219.     </xs:schema>
  220.   </wsdl:types>
  221.   <wsdl:message name="ITrackingService_SendDeviceState_InputMessage">
  222.     <wsdl:part name="parameters" element="tns:SendDeviceState"/>
  223.   </wsdl:message>
  224.   <wsdl:message name="ITrackingService_SendDeviceState_OutputMessage">
  225.     <wsdl:part name="parameters" element="tns:SendDeviceStateResponse"/>
  226.   </wsdl:message>
  227.   <wsdl:message name="ITrackingService_GetDevices_InputMessage">
  228.     <wsdl:part name="parameters" element="tns:GetDevices"/>
  229.   </wsdl:message>
  230.   <wsdl:message name="ITrackingService_GetDevices_OutputMessage">
  231.     <wsdl:part name="parameters" element="tns:GetDevicesResponse"/>
  232.   </wsdl:message>
  233.   <wsdl:message name="ITrackingService_GetDeviceState_InputMessage">
  234.     <wsdl:part name="parameters" element="tns:GetDeviceState"/>
  235.   </wsdl:message>
  236.   <wsdl:message name="ITrackingService_GetDeviceState_OutputMessage">
  237.     <wsdl:part name="parameters" element="tns:GetDeviceStateResponse"/>
  238.   </wsdl:message>
  239.   <wsdl:message name="ITrackingService_GetDeviceStateHistory_InputMessage">
  240.     <wsdl:part name="parameters" element="tns:GetDeviceStateHistory"/>
  241.   </wsdl:message>
  242.   <wsdl:message name="ITrackingService_GetDeviceStateHistory_OutputMessage">
  243.     <wsdl:part name="parameters" element="tns:GetDeviceStateHistoryResponse"/>
  244.   </wsdl:message>
  245.   <wsdl:message name="ITrackingService_PersistDevice_InputMessage">
  246.     <wsdl:part name="parameters" element="tns:PersistDevice"/>
  247.   </wsdl:message>
  248.   <wsdl:message name="ITrackingService_PersistDevice_OutputMessage">
  249.     <wsdl:part name="parameters" element="tns:PersistDeviceResponse"/>
  250.   </wsdl:message>
  251.   <wsdl:message name="ITrackingService_GetDevice_InputMessage">
  252.     <wsdl:part name="parameters" element="tns:GetDevice"/>
  253.   </wsdl:message>
  254.   <wsdl:message name="ITrackingService_GetDevice_OutputMessage">
  255.     <wsdl:part name="parameters" element="tns:GetDeviceResponse"/>
  256.   </wsdl:message>
  257.   <wsdl:portType name="ITrackingService">
  258.     <wsdl:operation name="SendDeviceState">
  259.       <wsdl:input wsaw:Action="http://tempuri.org/ITrackingService/SendDeviceState" message="tns:ITrackingService_SendDeviceState_InputMessage"/>
  260.       <wsdl:output wsaw:Action="http://tempuri.org/ITrackingService/SendDeviceStateResponse" message="tns:ITrackingService_SendDeviceState_OutputMessage"/>
  261.     </wsdl:operation>
  262.     <wsdl:operation name="GetDevices">
  263.       <wsdl:input wsaw:Action="http://tempuri.org/ITrackingService/GetDevices" message="tns:ITrackingService_GetDevices_InputMessage"/>
  264.       <wsdl:output wsaw:Action="http://tempuri.org/ITrackingService/GetDevicesResponse" message="tns:ITrackingService_GetDevices_OutputMessage"/>
  265.     </wsdl:operation>
  266.     <wsdl:operation name="GetDeviceState">
  267.       <wsdl:input wsaw:Action="http://tempuri.org/ITrackingService/GetDeviceState" message="tns:ITrackingService_GetDeviceState_InputMessage"/>
  268.       <wsdl:output wsaw:Action="http://tempuri.org/ITrackingService/GetDeviceStateResponse" message="tns:ITrackingService_GetDeviceState_OutputMessage"/>
  269.     </wsdl:operation>
  270.     <wsdl:operation name="GetDeviceStateHistory">
  271.       <wsdl:input wsaw:Action="http://tempuri.org/ITrackingService/GetDeviceStateHistory" message="tns:ITrackingService_GetDeviceStateHistory_InputMessage"/>
  272.       <wsdl:output wsaw:Action="http://tempuri.org/ITrackingService/GetDeviceStateHistoryResponse" message="tns:ITrackingService_GetDeviceStateHistory_OutputMessage"/>
  273.     </wsdl:operation>
  274.     <wsdl:operation name="PersistDevice">
  275.       <wsdl:input wsaw:Action="http://tempuri.org/ITrackingService/PersistDevice" message="tns:ITrackingService_PersistDevice_InputMessage"/>
  276.       <wsdl:output wsaw:Action="http://tempuri.org/ITrackingService/PersistDeviceResponse" message="tns:ITrackingService_PersistDevice_OutputMessage"/>
  277.     </wsdl:operation>
  278.     <wsdl:operation name="GetDevice">
  279.       <wsdl:input wsaw:Action="http://tempuri.org/ITrackingService/GetDevice" message="tns:ITrackingService_GetDevice_InputMessage"/>
  280.       <wsdl:output wsaw:Action="http://tempuri.org/ITrackingService/GetDeviceResponse" message="tns:ITrackingService_GetDevice_OutputMessage"/>
  281.     </wsdl:operation>
  282.   </wsdl:portType>
  283.   <wsdl:binding name="WS2007HttpBinding_ITrackingService" type="tns:ITrackingService">
  284.     <wsp:PolicyReference URI="#WS2007HttpBinding_ITrackingService_policy"/>
  285.     <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
  286.     <wsdl:operation name="SendDeviceState">
  287.       <soap12:operation soapAction="http://tempuri.org/ITrackingService/SendDeviceState" style="document"/>
  288.       <wsdl:input>
  289.         <soap12:body use="literal"/>
  290.       </wsdl:input>
  291.       <wsdl:output>
  292.         <soap12:body use="literal"/>
  293.       </wsdl:output>
  294.     </wsdl:operation>
  295.     <wsdl:operation name="GetDevices">
  296.       <soap12:operation soapAction="http://tempuri.org/ITrackingService/GetDevices" style="document"/>
  297.       <wsdl:input>
  298.         <soap12:body use="literal"/>
  299.       </wsdl:input>
  300.       <wsdl:output>
  301.         <soap12:body use="literal"/>
  302.       </wsdl:output>
  303.     </wsdl:operation>
  304.     <wsdl:operation name="GetDeviceState">
  305.       <soap12:operation soapAction="http://tempuri.org/ITrackingService/GetDeviceState" style="document"/>
  306.       <wsdl:input>
  307.         <soap12:body use="literal"/>
  308.       </wsdl:input>
  309.       <wsdl:output>
  310.         <soap12:body use="literal"/>
  311.       </wsdl:output>
  312.     </wsdl:operation>
  313.     <wsdl:operation name="GetDeviceStateHistory">
  314.       <soap12:operation soapAction="http://tempuri.org/ITrackingService/GetDeviceStateHistory" style="document"/>
  315.       <wsdl:input>
  316.         <soap12:body use="literal"/>
  317.       </wsdl:input>
  318.       <wsdl:output>
  319.         <soap12:body use="literal"/>
  320.       </wsdl:output>
  321.     </wsdl:operation>
  322.     <wsdl:operation name="PersistDevice">
  323.       <soap12:operation soapAction="http://tempuri.org/ITrackingService/PersistDevice" style="document"/>
  324.       <wsdl:input>
  325.         <soap12:body use="literal"/>
  326.       </wsdl:input>
  327.       <wsdl:output>
  328.         <soap12:body use="literal"/>
  329.       </wsdl:output>
  330.     </wsdl:operation>
  331.     <wsdl:operation name="GetDevice">
  332.       <soap12:operation soapAction="http://tempuri.org/ITrackingService/GetDevice" style="document"/>
  333.       <wsdl:input>
  334.         <soap12:body use="literal"/>
  335.       </wsdl:input>
  336.       <wsdl:output>
  337.         <soap12:body use="literal"/>
  338.       </wsdl:output>
  339.     </wsdl:operation>
  340.   </wsdl:binding>
  341.   <wsdl:service name="TrackingService">
  342.     <wsdl:port name="WS2007HttpBinding_ITrackingService" binding="tns:WS2007HttpBinding_ITrackingService">
  343.       <soap12:address location="http://myservice.cloudapp.net/TrackingService.svc"/>
  344.       <wsa10:EndpointReference>
  345.         <wsa10:Address>http://myservice.cloudapp.net/TrackingService.svc</wsa10:Address>
  346.       </wsa10:EndpointReference>
  347.     </wsdl:port>
  348.   </wsdl:service>
  349. </wsdl:definitions>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement