Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
- <definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
- xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
- xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
- xmlns:tns="http://rest.bpel.tps" xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop"
- xmlns:wsdl="http://ode/bpel/test/blog" name="BPEL_Rest"
- targetNamespace="http://rest.bpel.tps">
- <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- TYPE DEFINITION - List of types participating in this BPEL process
- The BPEL Designer will generate default request and response types
- but you can define or import any XML Schema type and use them as part
- of the message types.
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
- <plnk:partnerLinkType name="RestPLT">
- <plnk:role name="RestPLRole" portType="wsdl:BlogPortType"/>
- </plnk:partnerLinkType>
- <import location="RestAsWS.wsdl" namespace="http://ode/bpel/test/blog"/>
- <types>
- <schema xmlns="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://rest.bpel.tps">
- <element name="BPEL_RestRequest">
- <complexType>
- <sequence>
- <element name="input" type="string"/>
- </sequence>
- </complexType>
- </element>
- <element name="BPEL_RestResponse">
- <complexType>
- <sequence>
- <element name="result" type="string"/>
- </sequence>
- </complexType>
- </element>
- </schema>
- </types>
- <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- MESSAGE TYPE DEFINITION - Definition of the message types used as
- part of the port type defintions
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
- <message name="BPEL_RestRequestMessage">
- <part element="tns:BPEL_RestRequest" name="payload"/>
- </message>
- <message name="BPEL_RestResponseMessage">
- <part element="tns:BPEL_RestResponse" name="payload"/>
- </message>
- <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- PORT TYPE DEFINITION - A port type groups a set of operations into
- a logical service unit.
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
- <!-- portType implemented by the BPEL_Rest BPEL process -->
- <portType name="BPEL_Rest">
- <operation name="process">
- <input message="tns:BPEL_RestRequestMessage"/>
- <output message="tns:BPEL_RestResponseMessage"/>
- </operation>
- </portType>
- <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- PARTNER LINK TYPE DEFINITION
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
- <plnk:partnerLinkType name="BPEL_Rest">
- <plnk:role name="BPEL_RestProvider" portType="tns:BPEL_Rest"/>
- </plnk:partnerLinkType>
- <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- BINDING DEFINITION - Defines the message format and protocol details
- for a web service.
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
- <binding name="BPEL_RestBinding" type="tns:BPEL_Rest">
- <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
- <operation name="process">
- <soap:operation soapAction="http://rest.bpel.tps/process"/>
- <input>
- <soap:body use="literal"/>
- </input>
- <output>
- <soap:body use="literal"/>
- </output>
- </operation>
- </binding>
- <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- SERVICE DEFINITION - A service groups a set of ports into
- a service unit.
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
- <service name="BPEL_Rest">
- <port binding="tns:BPEL_RestBinding" name="BPEL_RestPort">
- <soap:address location="http://localhost:8080/ode/processes/BPEL_Rest"/>
- </port>
- </service>
- </definitions>
Advertisement
Add Comment
Please, Sign In to add comment