Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <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">
- <wsp:Policy wsu:Id="WS2007HttpBinding_ITrackingService_policy">
- <wsp:ExactlyOne>
- <wsp:All>
- <wsaw:UsingAddressing/>
- </wsp:All>
- </wsp:ExactlyOne>
- </wsp:Policy>
- <wsdl:types>
- <xs:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <xs:import namespace="http://schemas.datacontract.org/2004/07/RFine.myservice.Service"/>
- <xs:element name="SendDeviceState">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" name="state" nillable="true" type="q1:DeviceState" xmlns:q1="http://schemas.datacontract.org/2004/07/RFine.myservice.Service"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="SendDeviceStateResponse">
- <xs:complexType>
- <xs:sequence/>
- </xs:complexType>
- </xs:element>
- <xs:element name="GetDevices">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" name="customerId" type="xs:int"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="GetDevicesResponse">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" name="GetDevicesResult" nillable="true" type="q2:ArrayOfDevice" xmlns:q2="http://schemas.datacontract.org/2004/07/RFine.myservice.Service"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="GetDeviceState">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" name="deviceId" type="xs:int"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="GetDeviceStateResponse">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" name="GetDeviceStateResult" nillable="true" type="q3:DeviceState" xmlns:q3="http://schemas.datacontract.org/2004/07/RFine.myservice.Service"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="GetDeviceStateHistory">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" name="deviceId" type="xs:int"/>
- <xs:element minOccurs="0" name="rowCount" type="xs:int"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="GetDeviceStateHistoryResponse">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" name="GetDeviceStateHistoryResult" nillable="true" type="q4:ArrayOfDeviceState" xmlns:q4="http://schemas.datacontract.org/2004/07/RFine.myservice.Service"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="PersistDevice">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" name="device" nillable="true" type="q5:Device" xmlns:q5="http://schemas.datacontract.org/2004/07/RFine.myservice.Service"/>
- <xs:element minOccurs="0" name="update" type="xs:boolean"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="PersistDeviceResponse">
- <xs:complexType>
- <xs:sequence/>
- </xs:complexType>
- </xs:element>
- <xs:element name="GetDevice">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" name="serialNumber" nillable="true" type="xs:string"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="GetDeviceResponse">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" name="GetDeviceResult" nillable="true" type="q6:Device" xmlns:q6="http://schemas.datacontract.org/2004/07/RFine.myservice.Service"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- </xs:schema>
- <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/">
- <xs:element name="anyType" nillable="true" type="xs:anyType"/>
- <xs:element name="anyURI" nillable="true" type="xs:anyURI"/>
- <xs:element name="base64Binary" nillable="true" type="xs:base64Binary"/>
- <xs:element name="boolean" nillable="true" type="xs:boolean"/>
- <xs:element name="byte" nillable="true" type="xs:byte"/>
- <xs:element name="dateTime" nillable="true" type="xs:dateTime"/>
- <xs:element name="decimal" nillable="true" type="xs:decimal"/>
- <xs:element name="double" nillable="true" type="xs:double"/>
- <xs:element name="float" nillable="true" type="xs:float"/>
- <xs:element name="int" nillable="true" type="xs:int"/>
- <xs:element name="long" nillable="true" type="xs:long"/>
- <xs:element name="QName" nillable="true" type="xs:QName"/>
- <xs:element name="short" nillable="true" type="xs:short"/>
- <xs:element name="string" nillable="true" type="xs:string"/>
- <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte"/>
- <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt"/>
- <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong"/>
- <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort"/>
- <xs:element name="char" nillable="true" type="tns:char"/>
- <xs:simpleType name="char">
- <xs:restriction base="xs:int"/>
- </xs:simpleType>
- <xs:element name="duration" nillable="true" type="tns:duration"/>
- <xs:simpleType name="duration">
- <xs:restriction base="xs:duration">
- <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?"/>
- <xs:minInclusive value="-P10675199DT2H48M5.4775808S"/>
- <xs:maxInclusive value="P10675199DT2H48M5.4775807S"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:element name="guid" nillable="true" type="tns:guid"/>
- <xs:simpleType name="guid">
- <xs:restriction base="xs:string">
- <xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:attribute name="FactoryType" type="xs:QName"/>
- <xs:attribute name="Id" type="xs:ID"/>
- <xs:attribute name="Ref" type="xs:IDREF"/>
- </xs:schema>
- <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">
- <xs:complexType name="DeviceState">
- <xs:sequence>
- <xs:element minOccurs="0" name="Device" nillable="true" type="tns:Device"/>
- <xs:element minOccurs="0" name="DeviceId" type="xs:int"/>
- <xs:element minOccurs="0" name="Id" type="xs:int"/>
- <xs:element minOccurs="0" name="Location" nillable="true" type="tns:Location"/>
- <xs:element minOccurs="0" name="Timestamp" type="xs:dateTime"/>
- <xs:element minOccurs="0" name="Weather" nillable="true" type="tns:Weather"/>
- </xs:sequence>
- </xs:complexType>
- <xs:element name="DeviceState" nillable="true" type="tns:DeviceState"/>
- <xs:complexType name="Device">
- <xs:sequence>
- <xs:element minOccurs="0" name="Customer" nillable="true" type="tns:Customer"/>
- <xs:element minOccurs="0" name="CustomerId" type="xs:int"/>
- <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string"/>
- <xs:element minOccurs="0" name="DeviceStates" nillable="true" type="tns:ArrayOfDeviceState"/>
- <xs:element minOccurs="0" name="Id" type="xs:int"/>
- <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string"/>
- <xs:element minOccurs="0" name="Sensors" nillable="true" type="tns:ArrayOfSensor"/>
- <xs:element minOccurs="0" name="SerialNumber" nillable="true" type="xs:string"/>
- </xs:sequence>
- </xs:complexType>
- <xs:element name="Device" nillable="true" type="tns:Device"/>
- <xs:complexType name="Customer">
- <xs:sequence>
- <xs:element minOccurs="0" name="Devices" nillable="true" type="tns:ArrayOfDevice"/>
- <xs:element minOccurs="0" name="Id" type="xs:int"/>
- <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string"/>
- </xs:sequence>
- </xs:complexType>
- <xs:element name="Customer" nillable="true" type="tns:Customer"/>
- <xs:complexType name="ArrayOfDevice">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Device" nillable="true" type="tns:Device"/>
- </xs:sequence>
- </xs:complexType>
- <xs:element name="ArrayOfDevice" nillable="true" type="tns:ArrayOfDevice"/>
- <xs:complexType name="ArrayOfDeviceState">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="DeviceState" nillable="true" type="tns:DeviceState"/>
- </xs:sequence>
- </xs:complexType>
- <xs:element name="ArrayOfDeviceState" nillable="true" type="tns:ArrayOfDeviceState"/>
- <xs:complexType name="ArrayOfSensor">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="Sensor" nillable="true" type="tns:Sensor"/>
- </xs:sequence>
- </xs:complexType>
- <xs:element name="ArrayOfSensor" nillable="true" type="tns:ArrayOfSensor"/>
- <xs:complexType name="Sensor">
- <xs:sequence>
- <xs:element minOccurs="0" name="Device" nillable="true" type="tns:Device"/>
- <xs:element minOccurs="0" name="DeviceId" type="xs:int"/>
- <xs:element minOccurs="0" name="Id" type="xs:int"/>
- <xs:element minOccurs="0" name="Socket" type="xs:short"/>
- <xs:element minOccurs="0" name="Type" type="xs:short"/>
- </xs:sequence>
- </xs:complexType>
- <xs:element name="Sensor" nillable="true" type="tns:Sensor"/>
- <xs:complexType name="Location">
- <xs:sequence>
- <xs:element minOccurs="0" name="DeviceState" nillable="true" type="tns:DeviceState"/>
- <xs:element minOccurs="0" name="Id" type="xs:int"/>
- <xs:element minOccurs="0" name="Lat" type="xs:double"/>
- <xs:element minOccurs="0" name="Long" type="xs:double"/>
- <xs:element minOccurs="0" name="Speed" type="xs:double"/>
- </xs:sequence>
- </xs:complexType>
- <xs:element name="Location" nillable="true" type="tns:Location"/>
- <xs:complexType name="Weather">
- <xs:sequence>
- <xs:element minOccurs="0" name="AtmosphericPressure" nillable="true" type="xs:string"/>
- <xs:element minOccurs="0" name="DeviceState" nillable="true" type="tns:DeviceState"/>
- <xs:element minOccurs="0" name="Humidity" type="xs:double"/>
- <xs:element minOccurs="0" name="Id" type="xs:int"/>
- <xs:element minOccurs="0" name="Luminosity" type="xs:double"/>
- <xs:element minOccurs="0" name="Temperature" type="xs:double"/>
- </xs:sequence>
- </xs:complexType>
- <xs:element name="Weather" nillable="true" type="tns:Weather"/>
- </xs:schema>
- </wsdl:types>
- <wsdl:message name="ITrackingService_SendDeviceState_InputMessage">
- <wsdl:part name="parameters" element="tns:SendDeviceState"/>
- </wsdl:message>
- <wsdl:message name="ITrackingService_SendDeviceState_OutputMessage">
- <wsdl:part name="parameters" element="tns:SendDeviceStateResponse"/>
- </wsdl:message>
- <wsdl:message name="ITrackingService_GetDevices_InputMessage">
- <wsdl:part name="parameters" element="tns:GetDevices"/>
- </wsdl:message>
- <wsdl:message name="ITrackingService_GetDevices_OutputMessage">
- <wsdl:part name="parameters" element="tns:GetDevicesResponse"/>
- </wsdl:message>
- <wsdl:message name="ITrackingService_GetDeviceState_InputMessage">
- <wsdl:part name="parameters" element="tns:GetDeviceState"/>
- </wsdl:message>
- <wsdl:message name="ITrackingService_GetDeviceState_OutputMessage">
- <wsdl:part name="parameters" element="tns:GetDeviceStateResponse"/>
- </wsdl:message>
- <wsdl:message name="ITrackingService_GetDeviceStateHistory_InputMessage">
- <wsdl:part name="parameters" element="tns:GetDeviceStateHistory"/>
- </wsdl:message>
- <wsdl:message name="ITrackingService_GetDeviceStateHistory_OutputMessage">
- <wsdl:part name="parameters" element="tns:GetDeviceStateHistoryResponse"/>
- </wsdl:message>
- <wsdl:message name="ITrackingService_PersistDevice_InputMessage">
- <wsdl:part name="parameters" element="tns:PersistDevice"/>
- </wsdl:message>
- <wsdl:message name="ITrackingService_PersistDevice_OutputMessage">
- <wsdl:part name="parameters" element="tns:PersistDeviceResponse"/>
- </wsdl:message>
- <wsdl:message name="ITrackingService_GetDevice_InputMessage">
- <wsdl:part name="parameters" element="tns:GetDevice"/>
- </wsdl:message>
- <wsdl:message name="ITrackingService_GetDevice_OutputMessage">
- <wsdl:part name="parameters" element="tns:GetDeviceResponse"/>
- </wsdl:message>
- <wsdl:portType name="ITrackingService">
- <wsdl:operation name="SendDeviceState">
- <wsdl:input wsaw:Action="http://tempuri.org/ITrackingService/SendDeviceState" message="tns:ITrackingService_SendDeviceState_InputMessage"/>
- <wsdl:output wsaw:Action="http://tempuri.org/ITrackingService/SendDeviceStateResponse" message="tns:ITrackingService_SendDeviceState_OutputMessage"/>
- </wsdl:operation>
- <wsdl:operation name="GetDevices">
- <wsdl:input wsaw:Action="http://tempuri.org/ITrackingService/GetDevices" message="tns:ITrackingService_GetDevices_InputMessage"/>
- <wsdl:output wsaw:Action="http://tempuri.org/ITrackingService/GetDevicesResponse" message="tns:ITrackingService_GetDevices_OutputMessage"/>
- </wsdl:operation>
- <wsdl:operation name="GetDeviceState">
- <wsdl:input wsaw:Action="http://tempuri.org/ITrackingService/GetDeviceState" message="tns:ITrackingService_GetDeviceState_InputMessage"/>
- <wsdl:output wsaw:Action="http://tempuri.org/ITrackingService/GetDeviceStateResponse" message="tns:ITrackingService_GetDeviceState_OutputMessage"/>
- </wsdl:operation>
- <wsdl:operation name="GetDeviceStateHistory">
- <wsdl:input wsaw:Action="http://tempuri.org/ITrackingService/GetDeviceStateHistory" message="tns:ITrackingService_GetDeviceStateHistory_InputMessage"/>
- <wsdl:output wsaw:Action="http://tempuri.org/ITrackingService/GetDeviceStateHistoryResponse" message="tns:ITrackingService_GetDeviceStateHistory_OutputMessage"/>
- </wsdl:operation>
- <wsdl:operation name="PersistDevice">
- <wsdl:input wsaw:Action="http://tempuri.org/ITrackingService/PersistDevice" message="tns:ITrackingService_PersistDevice_InputMessage"/>
- <wsdl:output wsaw:Action="http://tempuri.org/ITrackingService/PersistDeviceResponse" message="tns:ITrackingService_PersistDevice_OutputMessage"/>
- </wsdl:operation>
- <wsdl:operation name="GetDevice">
- <wsdl:input wsaw:Action="http://tempuri.org/ITrackingService/GetDevice" message="tns:ITrackingService_GetDevice_InputMessage"/>
- <wsdl:output wsaw:Action="http://tempuri.org/ITrackingService/GetDeviceResponse" message="tns:ITrackingService_GetDevice_OutputMessage"/>
- </wsdl:operation>
- </wsdl:portType>
- <wsdl:binding name="WS2007HttpBinding_ITrackingService" type="tns:ITrackingService">
- <wsp:PolicyReference URI="#WS2007HttpBinding_ITrackingService_policy"/>
- <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
- <wsdl:operation name="SendDeviceState">
- <soap12:operation soapAction="http://tempuri.org/ITrackingService/SendDeviceState" style="document"/>
- <wsdl:input>
- <soap12:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap12:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- <wsdl:operation name="GetDevices">
- <soap12:operation soapAction="http://tempuri.org/ITrackingService/GetDevices" style="document"/>
- <wsdl:input>
- <soap12:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap12:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- <wsdl:operation name="GetDeviceState">
- <soap12:operation soapAction="http://tempuri.org/ITrackingService/GetDeviceState" style="document"/>
- <wsdl:input>
- <soap12:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap12:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- <wsdl:operation name="GetDeviceStateHistory">
- <soap12:operation soapAction="http://tempuri.org/ITrackingService/GetDeviceStateHistory" style="document"/>
- <wsdl:input>
- <soap12:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap12:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- <wsdl:operation name="PersistDevice">
- <soap12:operation soapAction="http://tempuri.org/ITrackingService/PersistDevice" style="document"/>
- <wsdl:input>
- <soap12:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap12:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- <wsdl:operation name="GetDevice">
- <soap12:operation soapAction="http://tempuri.org/ITrackingService/GetDevice" style="document"/>
- <wsdl:input>
- <soap12:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap12:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
- <wsdl:service name="TrackingService">
- <wsdl:port name="WS2007HttpBinding_ITrackingService" binding="tns:WS2007HttpBinding_ITrackingService">
- <soap12:address location="http://myservice.cloudapp.net/TrackingService.svc"/>
- <wsa10:EndpointReference>
- <wsa10:Address>http://myservice.cloudapp.net/TrackingService.svc</wsa10:Address>
- </wsa10:EndpointReference>
- </wsdl:port>
- </wsdl:service>
- </wsdl:definitions>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement