blob: 5656b3ff9a6d3edc2d7117bf6ccdb201dd6239d0 [file] [log] [blame]
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You 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:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://camel.apache.org/order"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="http://camel.apache.org/order">
<!-- Type definitions for input- and output parameters for webservice -->
<wsdl:types>
<xs:schema targetNamespace="http://camel.apache.org/order">
<xs:element type="xs:string" name="partName" />
<xs:element type="xs:int" name="amount" />
<xs:element type="xs:string" name="customerName" />
<xs:element type="xs:string" name="resultCode" />
</xs:schema>
</wsdl:types>
<!-- Message definitions for input and output -->
<wsdl:message name="purchaseOrder">
<wsdl:part name="partName" element="tns:partName" />
<wsdl:part name="amount" element="tns:amount"/>
<wsdl:part name="customerName" element="tns:customerName"/>
</wsdl:message>
<wsdl:message name="orderResult">
<wsdl:part name="resultCode" element="tns:resultCode" />
</wsdl:message>
<!-- Port (interface) definitions -->
<wsdl:portType name="OrderEndpoint">
<wsdl:operation name="order">
<wsdl:input message="tns:purchaseOrder" />
<wsdl:output message="tns:orderResult" />
</wsdl:operation>
</wsdl:portType>
<!-- Port bindings to transports and encoding - HTTP, document literal encoding is used -->
<wsdl:binding name="OrderBinding" type="tns:OrderEndpoint">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="order">
<soap:operation soapAction="http://camel.apache.org/order/Order" style="document" />
<wsdl:input>
<soap:body parts="in" use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body parts="out" use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<!-- Service definition -->
<wsdl:service name="MyOrderEndpointService">
<wsdl:port name="OrderService" binding="tns:OrderBinding">
<soap:address location="http://localhost:9000/order" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>