oont-contents/plugins/aramex-shipping-woocommerce/wsdl/test/aramex-rates-calculator-wsdl.wsdl
2025-02-08 15:10:23 +01:00

299 lines
No EOL
18 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
~ Plugin Name: Aramex Shipping WooCommerce
~ Plugin URI: https://aramex.com
~ Description: Aramex Shipping WooCommerce plugin
~ Version: 1.0.0
~ Author: aramex.com
~ Author URI: https://www.aramex.com/solutions-services/developers-solutions-center
~ License: GPL2
~ License URI: https://www.gnu.org/licenses/gpl-2.0.html
~ Text Domain: aramex
~ Domain Path: /languages
-->
<wsdl:definitions xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy"
xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:tns="http://ws.aramex.net/ShippingAPI/v1/"
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:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
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" name="Service_1_0"
targetNamespace="http://ws.aramex.net/ShippingAPI/v1/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsp:Policy wsu:Id="BasicHttpBinding_Service_1_0_policy">
<wsp:ExactlyOne>
<wsp:All>
<sp:TransportBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
<wsp:Policy>
<sp:TransportToken>
<wsp:Policy>
<sp:HttpsToken RequireClientCertificate="false"/>
</wsp:Policy>
</sp:TransportToken>
<sp:AlgorithmSuite>
<wsp:Policy>
<sp:Basic256/>
</wsp:Policy>
</sp:AlgorithmSuite>
<sp:Layout>
<wsp:Policy>
<sp:Strict/>
</wsp:Policy>
</sp:Layout>
</wsp:Policy>
</sp:TransportBinding>
</wsp:All>
</wsp:ExactlyOne>
</wsp:Policy>
<wsdl:types>
<xs:schema elementFormDefault="qualified" targetNamespace="http://ws.aramex.net/ShippingAPI/v1/"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="RateCalculatorRequest">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="ClientInfo" nillable="true" type="tns:ClientInfo"/>
<xs:element minOccurs="0" name="Transaction" nillable="true" type="tns:Transaction"/>
<xs:element minOccurs="0" name="OriginAddress" nillable="true" type="tns:Address"/>
<xs:element minOccurs="0" name="DestinationAddress" nillable="true" type="tns:Address"/>
<xs:element minOccurs="0" name="ShipmentDetails" nillable="true" type="tns:ShipmentDetails"/>
<xs:element minOccurs="0" name="PreferredCurrencyCode" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="ClientInfo">
<xs:sequence>
<xs:element name="UserName" nillable="true" type="xs:string"/>
<xs:element name="Password" nillable="true" type="xs:string"/>
<xs:element name="Version" nillable="true" type="xs:string"/>
<xs:element name="AccountNumber" nillable="true" type="xs:string"/>
<xs:element name="AccountPin" nillable="true" type="xs:string"/>
<xs:element name="AccountEntity" nillable="true" type="xs:string"/>
<xs:element name="AccountCountryCode" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="Source" type="xs:int"/>
</xs:sequence>
</xs:complexType>
<xs:element name="ClientInfo" nillable="true" type="tns:ClientInfo"/>
<xs:complexType name="Transaction">
<xs:sequence>
<xs:element name="Reference1" nillable="true" type="xs:string"/>
<xs:element name="Reference2" nillable="true" type="xs:string"/>
<xs:element name="Reference3" nillable="true" type="xs:string"/>
<xs:element name="Reference4" nillable="true" type="xs:string"/>
<xs:element name="Reference5" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:element name="Transaction" nillable="true" type="tns:Transaction"/>
<xs:complexType name="Address">
<xs:sequence>
<xs:element name="Line1" nillable="true" type="xs:string"/>
<xs:element name="Line2" nillable="true" type="xs:string"/>
<xs:element name="Line3" nillable="true" type="xs:string"/>
<xs:element name="City" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="StateOrProvinceCode" nillable="true" type="xs:string"/>
<xs:element name="PostCode" nillable="true" type="xs:string"/>
<xs:element name="CountryCode" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="Longitude" type="xs:decimal"/>
<xs:element minOccurs="0" name="Latitude" type="xs:decimal"/>
<xs:element minOccurs="0" name="BuildingNumber" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="BuildingName" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="Floor" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="Apartment" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="POBox" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="Description" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:element name="Address" nillable="true" type="tns:Address"/>
<xs:complexType name="ShipmentDetails">
<xs:sequence>
<xs:element name="Dimensions" nillable="true" type="tns:Dimensions"/>
<xs:element name="ActualWeight" nillable="true" type="tns:Weight"/>
<xs:element name="ChargeableWeight" nillable="true" type="tns:Weight"/>
<xs:element name="DescriptionOfGoods" nillable="true" type="xs:string"/>
<xs:element name="GoodsOriginCountry" nillable="true" type="xs:string"/>
<xs:element name="NumberOfPieces" type="xs:int"/>
<xs:element name="ProductGroup" nillable="true" type="xs:string"/>
<xs:element name="ProductType" nillable="true" type="xs:string"/>
<xs:element name="PaymentType" nillable="true" type="xs:string"/>
<xs:element name="PaymentOptions" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="CustomsValueAmount" nillable="true" type="tns:Money"/>
<xs:element minOccurs="0" name="CashOnDeliveryAmount" nillable="true" type="tns:Money"/>
<xs:element minOccurs="0" name="InsuranceAmount" nillable="true" type="tns:Money"/>
<xs:element minOccurs="0" name="CashAdditionalAmount" nillable="true" type="tns:Money"/>
<xs:element minOccurs="0" name="CashAdditionalAmountDescription" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="CollectAmount" nillable="true" type="tns:Money"/>
<xs:element minOccurs="0" name="Services" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="Items" nillable="true" type="tns:ArrayOfShipmentItem"/>
<xs:element minOccurs="0" name="DeliveryInstructions" nillable="true"
type="tns:DeliveryInstructions"/>
</xs:sequence>
</xs:complexType>
<xs:element name="ShipmentDetails" nillable="true" type="tns:ShipmentDetails"/>
<xs:complexType name="Dimensions">
<xs:sequence>
<xs:element name="Length" type="xs:double"/>
<xs:element name="Width" type="xs:double"/>
<xs:element name="Height" type="xs:double"/>
<xs:element name="Unit" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:element name="Dimensions" nillable="true" type="tns:Dimensions"/>
<xs:complexType name="Weight">
<xs:sequence>
<xs:element name="Unit" nillable="true" type="xs:string"/>
<xs:element name="Value" type="xs:double"/>
</xs:sequence>
</xs:complexType>
<xs:element name="Weight" nillable="true" type="tns:Weight"/>
<xs:complexType name="Money">
<xs:sequence>
<xs:element name="CurrencyCode" nillable="true" type="xs:string"/>
<xs:element name="Value" type="xs:double"/>
</xs:sequence>
</xs:complexType>
<xs:element name="Money" nillable="true" type="tns:Money"/>
<xs:complexType name="ArrayOfShipmentItem">
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" name="ShipmentItem" nillable="true"
type="tns:ShipmentItem"/>
</xs:sequence>
</xs:complexType>
<xs:element name="ArrayOfShipmentItem" nillable="true" type="tns:ArrayOfShipmentItem"/>
<xs:complexType name="ShipmentItem">
<xs:sequence>
<xs:element name="PackageType" nillable="true" type="xs:string"/>
<xs:element name="Quantity" type="xs:int"/>
<xs:element name="Weight" nillable="true" type="tns:Weight"/>
<xs:element minOccurs="0" name="Comments" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="Reference" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="PiecesDimensions" nillable="true" type="tns:ArrayOfDimensions"/>
<xs:element minOccurs="0" name="CommodityCode" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="GoodsDescription" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="CountryOfOrigin" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="CustomsValue" nillable="true" type="tns:Money"/>
<xs:element minOccurs="0" name="ContainerNumber" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:element name="ShipmentItem" nillable="true" type="tns:ShipmentItem"/>
<xs:complexType name="ArrayOfDimensions">
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" name="Dimensions" nillable="true"
type="tns:Dimensions"/>
</xs:sequence>
</xs:complexType>
<xs:element name="ArrayOfDimensions" nillable="true" type="tns:ArrayOfDimensions"/>
<xs:complexType name="DeliveryInstructions">
<xs:sequence>
<xs:element name="Option" nillable="true" type="xs:string"/>
<xs:element name="Reference" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:element name="DeliveryInstructions" nillable="true" type="tns:DeliveryInstructions"/>
<xs:element name="RateCalculatorResponse">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="Transaction" nillable="true" type="tns:Transaction"/>
<xs:element minOccurs="0" name="Notifications" nillable="true" type="tns:ArrayOfNotification"/>
<xs:element minOccurs="0" name="HasErrors" type="xs:boolean"/>
<xs:element minOccurs="0" name="TotalAmount" nillable="true" type="tns:Money"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="ArrayOfNotification">
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" name="Notification" nillable="true"
type="tns:Notification"/>
</xs:sequence>
</xs:complexType>
<xs:element name="ArrayOfNotification" nillable="true" type="tns:ArrayOfNotification"/>
<xs:complexType name="Notification">
<xs:sequence>
<xs:element name="Code" nillable="true" type="xs:string"/>
<xs:element name="Message" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:element name="Notification" nillable="true" type="tns:Notification"/>
</xs:schema>
<xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified"
elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<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>
</wsdl:types>
<wsdl:message name="RateCalculatorRequest">
<wsdl:part name="parameters" element="tns:RateCalculatorRequest"/>
</wsdl:message>
<wsdl:message name="RateCalculatorResponse">
<wsdl:part name="parameters" element="tns:RateCalculatorResponse"/>
</wsdl:message>
<wsdl:portType name="Service_1_0">
<wsdl:operation name="CalculateRate">
<wsdl:input wsaw:Action="http://ws.aramex.net/ShippingAPI/v1/Service_1_0/CalculateRate"
name="RateCalculatorRequest" message="tns:RateCalculatorRequest"/>
<wsdl:output wsaw:Action="http://ws.aramex.net/ShippingAPI/v1/Service_1_0/CalculateRateResponse"
name="RateCalculatorResponse" message="tns:RateCalculatorResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="BasicHttpBinding_Service_1_0" type="tns:Service_1_0">
<wsp:PolicyReference URI="#BasicHttpBinding_Service_1_0_policy"/>
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="CalculateRate">
<soap:operation soapAction="http://ws.aramex.net/ShippingAPI/v1/Service_1_0/CalculateRate"
style="document"/>
<wsdl:input name="RateCalculatorRequest">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="RateCalculatorResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="Service_1_0">
<wsdl:port name="BasicHttpBinding_Service_1_0" binding="tns:BasicHttpBinding_Service_1_0">
<soap:address location="https://ws.dev.aramex.net/ShippingAPI.V2/RateCalculator/Service_1_0.svc"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>