extranet/includes/giant/wsdl/usage-data-service-1.0.wsdl

143 lines
7.2 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<!--
Web Services Definition for International Company Usage Data Services
Document Version: 0.1
Author: Giant Project
Changes:
v01 - MK 16-07-2009 Initial version
-->
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:usage-data="http://services.giant-net.com/schema/services/usage-data/1.0" xmlns:shared="http://services.giant-net.com/schema/services/shared/1.0" xmlns:credit-data="http://services.giant-net.com/schema/services/credit-data/types/1.0" xmlns:tns="http://services.giant-net.com/wsdl/usage-data/1.0" name="UsageDataServices" targetNamespace="http://services.giant-net.com/wsdl/usage-data/1.0">
<wsdl:types>
<xsd:schema targetNamespace="http://services.giant-net.com/schema/services/usage-data/1.0" attributeFormDefault="unqualified" elementFormDefault="unqualified">
<xsd:import namespace="http://services.giant-net.com/schema/services/shared/1.0" schemaLocation="http://services.giant-net.com/schema/services/shared-1.0.xsd"/>
<xsd:import namespace="http://services.giant-net.com/schema/services/credit-data/types/1.0" schemaLocation="http://services.giant-net.com/schema/services/credit-data-types-1.0.xsd"/>
<xsd:simpleType name="RoleType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Provider"/>
<xsd:enumeration value="Consumer"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="UsageDataType">
<xsd:sequence>
<xsd:element name="Order" type="credit-data:OrderType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="RetrieveUsageDataRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Role" type="usage-data:RoleType" minOccurs="1" maxOccurs="1"/>
<xsd:element name="StartDate" type="xsd:date" minOccurs="1" maxOccurs="1"/>
<xsd:element name="EndDate" type="xsd:date" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="version" type="xsd:decimal" default="1.0"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="RetrieveUsageDataResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="NumberOfOrders" type="xsd:long" minOccurs="1" maxOccurs="1"/>
<xsd:element name="UsageData" type="usage-data:UsageDataType" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="version" type="xsd:decimal" default="1.0"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="RetrieveOrderDataRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="InternalOrderId" type="xsd:long" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="version" type="xsd:decimal" default="1.0"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="RetrieveOrderDataResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Order" type="credit-data:OrderType" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="version" type="xsd:decimal" default="1.0"/>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<message name="RetrieveUsageDataRequest">
<part name="ServiceHeader" element="shared:ServiceHeader"/>
<part name="RetrieveUsageDataRequest" element="usage-data:RetrieveUsageDataRequest"/>
</message>
<message name="RetrieveUsageDataResponse">
<part name="RetrieveUsageDataResponse" element="usage-data:RetrieveUsageDataResponse"/>
</message>
<message name="RetrieveOrderDataRequest">
<part name="ServiceHeader" element="shared:ServiceHeader"/>
<part name="RetrieveOrderDataRequest" element="usage-data:RetrieveOrderDataRequest"/>
</message>
<message name="RetrieveOrderDataResponse">
<part name="RetrieveOrderDataResponse" element="usage-data:RetrieveOrderDataResponse"/>
</message>
<message name="TechnicalException">
<part name="TechnicalException" element="shared:TechnicalException"/>
</message>
<message name="FunctionalException">
<part name="FunctionalException" element="shared:FunctionalException"/>
</message>
<portType name="UsageDataPortType">
<operation name="RetrieveUsageData">
<input name="RetrieveUsageDataRequest" message="tns:RetrieveUsageDataRequest"/>
<output name="RetrieveUsageDataResponse" message="tns:RetrieveUsageDataResponse"/>
<fault name="FunctionalException" message="tns:FunctionalException"/>
<fault name="TechnicalException" message="tns:TechnicalException"/>
</operation>
<operation name="RetrieveOrderData">
<input name="RetrieveOrderDataRequest" message="tns:RetrieveOrderDataRequest"/>
<output name="RetrieveOrderDataResponse" message="tns:RetrieveOrderDataResponse"/>
<fault name="FunctionalException" message="tns:FunctionalException"/>
<fault name="TechnicalException" message="tns:TechnicalException"/>
</operation>
</portType>
<binding name="InternationalCompanyUsageDataBinding" type="tns:UsageDataPortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="RetrieveUsageData">
<soap:operation soapAction="RetrieveUsageData"/>
<input name="RetrieveUsageDataRequest">
<documentation/>
<soap:header message="tns:RetrieveUsageDataRequest" part="ServiceHeader" use="literal"/>
<soap:body parts="RetrieveUsageDataRequest" use="literal"/>
</input>
<output name="RetrieveUsageDataResponse">
<soap:body use="literal"/>
</output>
<fault name="FunctionalException">
<soap:fault name="FunctionalException" use="literal"/>
</fault>
<fault name="TechnicalException">
<soap:fault name="TechnicalException" use="literal"/>
</fault>
</operation>
<operation name="RetrieveOrderData">
<soap:operation soapAction="RetrieveOrderData"/>
<input name="RetrieveOrderDataRequest">
<documentation/>
<soap:header message="tns:RetrieveOrderDataRequest" part="ServiceHeader" use="literal"/>
<soap:body parts="RetrieveOrderDataRequest" use="literal"/>
</input>
<output name="RetrieveOrderDataResponse">
<soap:body use="literal"/>
</output>
<fault name="FunctionalException">
<soap:fault name="FunctionalException" use="literal"/>
</fault>
<fault name="TechnicalException">
<soap:fault name="TechnicalException" use="literal"/>
</fault>
</operation>
</binding>
<service name="internationalCompanyUsageDataService">
<port name="UsageDataService" binding="tns:InternationalCompanyUsageDataBinding">
<soap:address location="http://services.giant-net.com/usage-data/v1/"/>
</port>
</service>
</definitions>