Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: invalid sample WSDL fixed: 'name' not 'Name'

...

Code Block
languagehtml/xml
linenumberstrue
collapsetrue
<?xml version="1.0" encoding="UTF-8"?>
<definitions Namename="AgGatewayDocumentExchange" targetNamespace="urn:aggateway:names:ws:docexchange"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="urn:aggateway:names:ws:docexchange"
  xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
  xmlns="http://schemas.xmlsoap.org/wsdl/">
  <wsp:UsingPolicy xmlns:n1="http://schemas.xmlsoap.org/wsdl/" n1:Required="false"/>
  <wsdl:types>
    <xsd:schema xmlns="urn:aggateway:names:ws:docexchange"
      xmlns:tns="urn:aggateway:names:ws:docexchange" attributeFormDefault="unqualified"
      elementFormDefault="qualified" targetNamespace="urn:aggateway:names:ws:docexchange">
      <xsd:element name="inboundData" type="inboundData"/>
      <xsd:complexType name="inboundData">
        <xsd:sequence>
          <!-- Identifies the business process -->
          <xsd:element minOccurs="0" name="businessProcess" type="aggatewayToken"/>
          <!-- Identifies the business process step -->
          <xsd:element minOccurs="0" name="processStep" type="aggatewayToken"/>
          <!-- Identifies the client -->
          <xsd:element minOccurs="0" name="partnerId" type="aggatewayToken"/>
          <!-- The partner Id qualifier. -->
          <xsd:element minOccurs="0" name="partnerType" type="aggatewayToken"/>
          <!-- Identifies the business process instance -->
          <xsd:element minOccurs="0" name="conversationId" type="aggatewayToken"/>
          <!-- Identifies the message (must be globally unique) -->
          <xsd:element minOccurs="0" name="messageId" type="aggatewayToken"/>
          <!-- The business document provided as the request -->
          <xsd:element minOccurs="1" name="xmlPayload" type="xmlPayload"/>
        </xsd:sequence>
      </xsd:complexType>
      <xsd:element name="outboundData" type="outboundData"/>
      <xsd:complexType name="outboundData">
        <xsd:sequence>
          <!-- Identifies the business process step -->
          <xsd:element minOccurs="0" name="processStep" type="aggatewayToken"/>
          <!-- Identifies the message (must be globally unique) -->
          <xsd:element minOccurs="0" name="messageId" type="aggatewayToken"/>
          <!-- The business document provided as the response -->
          <xsd:element minOccurs="0" name="xmlPayload" type="xmlPayload" maxOccurs="unbounded"/>
        </xsd:sequence>
      </xsd:complexType>
      <xsd:simpleType name="aggatewayToken">
        <xsd:restriction base="xsd:token">
          <xsd:pattern value="[a-zA-Z0-9_\-:\.]{0,128}"/>
        </xsd:restriction>
      </xsd:simpleType>
      <xsd:complexType name="xmlPayload">
        <xsd:sequence>
          <xsd:any namespace="##any" processContents="lax"/>
        </xsd:sequence>
      </xsd:complexType>
    </xsd:schema>
  </wsdl:types>
  <message name="DocExchangeInput">
    <part name="parameters" element="tns:inboundData"/>
  </message>
  <message name="DocExchangeOutput">
    <part name="result" type="tns:outboundData"/>
  </message>
  <message name="DocExchangeFault">
    <part name="problem" type="xsd:string"/>
  </message>
  <portType name="DocExchangePortType">
    <operation name="execute">
      <input message="tns:DocExchangeInput"/>
      <output message="tns:DocExchangeOutput"/>
      <fault name="DocExchangeProblem" message="tns:DocExchangeFault"/>
    </operation>
  </portType>
  <binding name="DocExchangeBinding" type="tns:DocExchangePortType">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="execute">
      <soap:operation soapAction="execute"/>
      <input>
        <soap:body use="literal"/>
        <wsp:Policy>
          <wsp:PolicyReference URI="policy:userNameTokenPolicy"/>
        </wsp:Policy>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
      <fault name="DocExchangeProblem">
        <soap:fault name="DocExchangeProblem" use="literal"/>
      </fault>
    </operation>
  </binding>
  <service name="AgGatewayDocumentExchange">
    <port name="AgGatewayDocumentExchangePort" binding="tns:DocExchangeBinding">
      <soap:address location="http://www.aggateway.org/samples/ws/AgGatewayDocumentExchange_1.0"/>
    </port>
  </service>
</definitions>

...