Guest User

BPEL_RestArtifacts.wsdl

a guest
Jul 12th, 2011
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.27 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
  3. xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
  4. xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
  5. xmlns:tns="http://rest.bpel.tps" xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop"
  6. xmlns:wsdl="http://ode/bpel/test/blog" name="BPEL_Rest"
  7.  targetNamespace="http://rest.bpel.tps">
  8.  
  9. <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  10.     TYPE DEFINITION - List of types participating in this BPEL process
  11.     The BPEL Designer will generate default request and response types
  12.     but you can define or import any XML Schema type and use them as part
  13.     of the message types.
  14.     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->    
  15.     <plnk:partnerLinkType name="RestPLT">
  16.     <plnk:role name="RestPLRole" portType="wsdl:BlogPortType"/>
  17.   </plnk:partnerLinkType>
  18.     <import location="RestAsWS.wsdl" namespace="http://ode/bpel/test/blog"/>
  19.     <types>
  20.         <schema xmlns="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://rest.bpel.tps">
  21.  
  22.             <element name="BPEL_RestRequest">
  23.                 <complexType>
  24.                     <sequence>
  25.                         <element name="input" type="string"/>
  26.                     </sequence>
  27.                 </complexType>
  28.             </element>
  29.  
  30.             <element name="BPEL_RestResponse">
  31.                 <complexType>
  32.                     <sequence>
  33.                         <element name="result" type="string"/>
  34.                     </sequence>
  35.                 </complexType>
  36.             </element>
  37.         </schema>
  38.     </types>
  39.  
  40.  
  41. <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  42.     MESSAGE TYPE DEFINITION - Definition of the message types used as
  43.     part of the port type defintions
  44.     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->    
  45.     <message name="BPEL_RestRequestMessage">
  46.         <part element="tns:BPEL_RestRequest" name="payload"/>
  47.     </message>
  48.     <message name="BPEL_RestResponseMessage">
  49.         <part element="tns:BPEL_RestResponse" name="payload"/>
  50.     </message>
  51.  
  52. <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  53.     PORT TYPE DEFINITION - A port type groups a set of operations into
  54.     a logical service unit.
  55.     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->    
  56.  
  57.     <!-- portType implemented by the BPEL_Rest BPEL process -->
  58.     <portType name="BPEL_Rest">
  59.         <operation name="process">
  60.             <input message="tns:BPEL_RestRequestMessage"/>
  61.             <output message="tns:BPEL_RestResponseMessage"/>
  62.         </operation>
  63.     </portType>  
  64. <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  65.     PARTNER LINK TYPE DEFINITION
  66.     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->    
  67.     <plnk:partnerLinkType name="BPEL_Rest">
  68.         <plnk:role name="BPEL_RestProvider" portType="tns:BPEL_Rest"/>
  69.     </plnk:partnerLinkType>
  70.    
  71.  
  72. <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  73.     BINDING DEFINITION - Defines the message format and protocol details
  74.     for a web service.
  75.     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  76.     <binding name="BPEL_RestBinding" type="tns:BPEL_Rest">
  77.         <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
  78.         <operation name="process">
  79.             <soap:operation soapAction="http://rest.bpel.tps/process"/>
  80.             <input>
  81.                 <soap:body use="literal"/>
  82.             </input>
  83.             <output>
  84.                 <soap:body use="literal"/>
  85.             </output>
  86.         </operation>
  87.     </binding>
  88.  
  89. <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  90.     SERVICE DEFINITION - A service groups a set of ports into
  91.     a service unit.
  92.     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  93.     <service name="BPEL_Rest">
  94.         <port binding="tns:BPEL_RestBinding" name="BPEL_RestPort">
  95.             <soap:address location="http://localhost:8080/ode/processes/BPEL_Rest"/>
  96.         </port>
  97.     </service>
  98. </definitions>
Advertisement
Add Comment
Please, Sign In to add comment