File: simplecontent.wsdl

package info (click to toggle)
ruby-soap4r 2.0.5-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,032 kB
  • sloc: ruby: 52,729; xml: 266; sh: 42; javascript: 20; makefile: 13; perl: 10
file content (84 lines) | stat: -rw-r--r-- 2,919 bytes parent folder | download | duplicates (5)
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
75
76
77
78
79
80
81
82
83
84
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
  name="simpleContent"
  targetNamespace="urn:www.example.org:simpleContent"
  xmlns="http://schemas.xmlsoap.org/wsdl/"
  xmlns:tns="urn:www.example.org:simpleContent"
  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
  xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema">

  <wsdl:types>
    <schema targetNamespace="urn:www.example.org:simpleContent"
      xmlns="http://www.w3.org/2001/XMLSchema">

      <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>

      <element name="Address">
        <complexType>
          <sequence>
            <element name="list" type="tns:PhoneList"/>
            <element name="blah" type="xsd:string"/>
          </sequence>
        </complexType>
      </element>

      <complexType name="PhoneList">
        <sequence>
          <element name="phone" type="tns:PhoneNumber" minOccurs="0"
            maxOccurs="unbounded" />
        </sequence>
        <attribute name="default" type="xsd:string" />
      </complexType>

      <element name="PhoneNumberElement" type="tns:PhoneNumber" />
      <complexType name="PhoneNumber">
        <simpleContent>
          <extension base="xsd:string">
            <attribute name="type" type="tns:PhoneNumberType" use="required" />
          </extension>
        </simpleContent>
      </complexType>

      <simpleType name="PhoneNumberType">
        <restriction base="xsd:string">
          <enumeration value="Fax" />
          <enumeration value="Home" />
          <enumeration value="Mobile" />
          <enumeration value="Office" />
          <enumeration value="Pager" />
        </restriction>
      </simpleType>
    </schema>
  </wsdl:types>

  <wsdl:message name="echoIn">
    <wsdl:part name="parameters" element="tns:Address" />
  </wsdl:message>
  <wsdl:message name="echoOut">
    <wsdl:part name="parameters" element="tns:Address" />
  </wsdl:message>

  <wsdl:portType name="simpleContentService">
    <wsdl:operation name="echo">
      <wsdl:input message="tns:echoIn" />
      <wsdl:output message="tns:echoOut" />
    </wsdl:operation>
  </wsdl:portType>

  <wsdl:binding name="simpleContentBinding" type="tns:simpleContentService">
    <wsdlsoap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
    <wsdl:operation name="echo">
      <wsdlsoap:operation soapAction="urn:www.example.org:simpleContent:echo" style="document" />
      <wsdl:input><wsdlsoap:body use="literal" /></wsdl:input>
      <wsdl:output><wsdlsoap:body use="literal" /></wsdl:output>
    </wsdl:operation>
  </wsdl:binding>

  <wsdl:service>
    <wsdl:port name="simpleContentPort" binding="tns:simpleContentBinding">
      <wsdlsoap:address location="http://localhost:17171/" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>