1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<!--
3  Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
4  DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5
6  This code is free software; you can redistribute it and/or modify it
7  under the terms of the GNU General Public License version 2 only, as
8  published by the Free Software Foundation.
9
10  This code is distributed in the hope that it will be useful, but WITHOUT
11  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13  version 2 for more details (a copy is included in the LICENSE file that
14  accompanied this code).
15
16  You should have received a copy of the GNU General Public License version
17  2 along with this work; if not, write to the Free Software Foundation,
18  Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19
20  Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21  or visit www.oracle.com if you need additional information or have any
22  questions.
23-->
24<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
25             xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
26             xmlns:tns="http://ws.somewhere.org/"
27             xmlns:xsd="http://www.w3.org/2001/XMLSchema"
28             xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata"
29             name="TestService"
30             targetNamespace="http://ws.somewhere.org/">
31
32    <types>
33        <xsd:schema targetNamespace="http://ws.somewhere.org/" version="1.0"
34                    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://ws.somewhere.org/">
35
36            <xsd:element type="tns:echoRequest" name="echoRequest"/>
37            <xsd:element type="tns:echoResponse" name="echoResponse"/>
38
39            <xsd:complexType name="echoRequest" mixed="true">
40                <xsd:sequence>
41                    <xsd:any namespace="##any" processContents="skip" minOccurs="1" maxOccurs="10"/>
42                </xsd:sequence>
43            </xsd:complexType>
44
45            <xsd:complexType name="echoResponse" mixed="true">
46                <xsd:sequence>
47                    <xsd:any namespace="##any" processContents="skip" minOccurs="1" maxOccurs="10"/>
48                </xsd:sequence>
49            </xsd:complexType>
50        </xsd:schema>
51    </types>
52
53    <message name="echoRequest">
54        <part element="tns:echoRequest" name="parameters"/>
55    </message>
56    <message name="echoResponse">
57        <part element="tns:echoResponse" name="parameters"/>
58    </message>
59
60    <portType name="TestPort">
61        <operation name="echo">
62            <input message="tns:echoRequest" wsam:Action="http://ws.somewhere.org/tester/echoRequest"/>
63            <output message="tns:echoResponse" wsam:Action="http://ws.somewhere.org/tester/echoResponse"/>
64        </operation>
65    </portType>
66
67    <binding name="TestServicePortBinding" type="tns:TestPort">
68        <soap:binding style="document"
69                      transport="http://schemas.xmlsoap.org/soap/http"/>
70
71        <operation name="echo">
72            <soap:operation soapAction=""/>
73            <input>
74                <soap:body use="literal"/>
75            </input>
76            <output>
77                <soap:body use="literal"/>
78            </output>
79        </operation>
80    </binding>
81
82    <service name="TestService">
83        <port binding="tns:TestServicePortBinding" name="TestPort">
84            <soap:address location="http://localhost/ws/tester"/>
85        </port>
86    </service>
87</definitions>
88