Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- ~ 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="http://schemas.xmlsoap.org/wsdl/"
- xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
- xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
- xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
- xmlns:tns="http://ode/bpel/test/blog"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:odex="http://www.apache.org/ode/type/extension/http"
- targetNamespace="http://ode/bpel/test/blog">
- <!-- ## USE CASE ## -->
- <!--
- Describe a REST service to access a blog article.
- The article is a resource available at http://ex.org/blog/article/42 (for instance)
- For demonstration purpose, some requests/responses will have a custom header: TimestampHeader.
- This header will be mapped to a part of the message.
- Also for demonstration, the User-agent header will be set in some requests.
- -->
- <wsdl:types>
- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://ode/bpel/test/blog">
- <xsd:element name="CUSTOMER" type="tns:CustomerType"/>
- <xsd:complexType name="CustomerType">
- <xsd:sequence>
- <xsd:element name="ID" type="xsd:string"/>
- <xsd:element name="FIRSTNAME" type="xsd:string"/>
- <xsd:element name="LASTNAME" type="xsd:string"/>
- <xsd:element name="STREET" type="xsd:string"/>
- <xsd:element name="CITY" type="xsd:string"/>
- </xsd:sequence>
- </xsd:complexType>
- </xsd:schema>
- </wsdl:types>
- <wsdl:message name="IdMessage">
- <wsdl:part name="customerId" type="xsd:string"/>
- </wsdl:message>
- <wsdl:message name="ArticleMessage">
- <wsdl:part name="CUSTOMER" element="tns:CUSTOMER"/>
- </wsdl:message>
- <wsdl:message name="NoPartMessage"/>
- <wsdl:portType name="BlogPortType">
- <wsdl:operation name="doGET">
- <wsdl:input message="tns:IdMessage"/>
- <wsdl:output message="tns:ArticleMessage"/>
- </wsdl:operation>
- </wsdl:portType>
- <wsdl:binding name="binding" type="tns:BlogPortType">
- <http:binding verb="GET" />
- <wsdl:operation name="doGET">
- <http:operation location="/sqlrest/CUSTOMER/{customerId}" />
- <odex:binding verb="GET" />
- <wsdl:input>
- <http:urlReplacement />
- </wsdl:input>
- <wsdl:output>
- <mime:content type="text/xml" part="article" />
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
- <wsdl:service name="BlogService">
- <wsdl:port name="BlogPort" binding="tns:binding">
- <http:address location="http://www.thomas-bayer.com"/>
- </wsdl:port>
- </wsdl:service>
- </wsdl:definitions>
Advertisement
Add Comment
Please, Sign In to add comment