summaryrefslogtreecommitdiff
path: root/test/wsdl/document/document.wsdl
blob: fbf03fae8bf97c9f65cb86ca81f9df1112c2f4ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?xml version="1.0" encoding="utf-8"?>
<definitions
    name="echo"
    targetNamespace="urn:docrpc"
    xmlns:tns="urn:docrpc"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns="http://schemas.xmlsoap.org/wsdl/">
  <types>
    <xsd:schema elementFormDefault="unqualified" targetNamespace="urn:docrpc">
      <xsd:complexType name="echo_struct">
        <xsd:sequence>
          <xsd:element minOccurs="0" maxOccurs="1" name="m_string" type="xsd:string" />
          <xsd:element minOccurs="0" maxOccurs="1" name="m_datetime" type="xsd:dateTime" />
        </xsd:sequence>
        <xsd:attribute name="m_attr" type="xsd:string" />
      </xsd:complexType>

      <xsd:element name="echoele">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element minOccurs="0" maxOccurs="1" name="struct1" type="tns:echo_struct" />
            <xsd:element minOccurs="0" maxOccurs="1" name="struct-2" type="tns:echo_struct" />
          </xsd:sequence>
          <xsd:attribute name="attr_string" type="xsd:string" />
          <xsd:attribute name="attr-int" type="xsd:int" />
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="echo_response">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element minOccurs="0" maxOccurs="1" name="struct1" type="tns:echo_struct" />
            <xsd:element minOccurs="0" maxOccurs="1" name="struct-2" type="tns:echo_struct" />
          </xsd:sequence>
          <xsd:attribute name="attr_string" type="xsd:string" />
          <xsd:attribute name="attr-int" type="xsd:int" />
        </xsd:complexType>
      </xsd:element>
    </xsd:schema>
  </types>

  <message name="echo_in">
    <part name="parameters" element="tns:echoele" />
  </message>
  <message name="echo_out">
    <part name="parameters" element="tns:echo_response" />
  </message>

  <portType name="docrpc_porttype">
    <operation name="echo">
      <input message="tns:echo_in" />
      <output message="tns:echo_out" />
    </operation>
  </portType>

  <binding name="docrpc_binding" type="tns:docrpc_porttype">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
    <operation name="echo">
      <soap:operation soapAction="urn:docrpc:echo" style="document" />
      <input>
        <soap:body use="literal" />
      </input>
      <output>
        <soap:body use="literal" />
      </output>
    </operation>
  </binding>

  <service name="docrpc_service">
    <port name="docprc_service_port" binding="tns:docrpc_binding">
      <soap:address location="http://localhost:17171/" />
    </port>
  </service>
</definitions>