<?xml version="1.0" encoding="UTF-8"?>

<!--
  ~ Copyright 2005-2007 WSO2, Inc. (http://wso2.com)
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                  xmlns:axis2="http://ws.apache.org/axis2"
                  xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
                  xmlns:ns1="http://org.apache.axis2/xsd"
                  xmlns:xs="http://www.w3.org/2001/XMLSchema"
                  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
                  targetNamespace="http://ws.apache.org/axis2">
    <wsdl:types>
        <xs:schema xmlns:ns="http://org.apache.axis2/xsd"
                   targetNamespace="http://org.apache.axis2/xsd"
                   elementFormDefault="unqualified"
                   attributeFormDefault="unqualified">
            <xs:element name="echoRequest">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element type="xs:anyType" name="echo"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="echoResponse">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element type="xs:anyType" name="return"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:schema>
    </wsdl:types>

    <wsdl:message name="echoRequestMessage">
        <wsdl:part element="ns1:echoRequest" name="part1"/>
    </wsdl:message>
    <wsdl:message name="echoResponseMessage">
        <wsdl:part element="ns1:echoResponse" name="part1"/>
    </wsdl:message>

    <wsdl:portType name="JavascriptServicePortType">
        <wsdl:operation name="echo">
            <wsdl:input message="axis2:echoRequestMessage"/>
            <wsdl:output message="axis2:echoResponseMessage"/>
        </wsdl:operation>
    </wsdl:portType>

    <wsdl:binding type="axis2:JavascriptServicePortType"
                  name="JavascriptServicePortTypeSOAP11Binding">
        <soap:binding style="document"
                      transport="http://schemas.xmlsoap.org/soap/http"/>

        <wsdl:operation name="echo">
            <soap:operation style="document" soapAction="urn:echo"/>
            <wsdl:input>
                <soap:body namespace="http://ws.apache.org/axis2"
                           use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body namespace="http://ws.apache.org/axis2"
                           use="literal"/>
            </wsdl:output>
        </wsdl:operation>

    </wsdl:binding>

    <wsdl:service name="JavascriptService">
        <wsdl:port binding="axis2:JavascriptServicePortTypeSOAP11Binding" name="echoSOAP11port1">
            <soap:address location="http://127.0.0.1:9762/axis2/services/echo"/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>