Skip to content

Commit

Permalink
Initial commit of code files
Browse files Browse the repository at this point in the history
  • Loading branch information
lenhard committed Feb 5, 2014
1 parent 40fc073 commit 4c75e71
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Echo.bpel
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<process
name="Echo"
targetNamespace="http://dsg.wiai.uniba.de/bpel/echo"
xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
xmlns:ec="http://dsg.wiai.uniba.de/wsdl/echointerface">
<import namespace="http://dsg.wiai.uniba.de/wsdl/echointerface" location="EchoInterface.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
<partnerLinks>
<partnerLink name="MyRoleLink" partnerLinkType="ec:EchoInterfacePartnerLinkType" myRole="echoInterfaceRole"/>
</partnerLinks>
<variables>
<variable name="ReplyData" messageType="ec:echoResponseMessage"/>
<variable name="InitData" messageType="ec:echoRequestMessage"/>
</variables>
<sequence>
<receive name="InitialReceive" createInstance="yes" partnerLink="MyRoleLink" operation="echo" portType="ec:EchoInterfacePortType" variable="InitData"/>
<assign name="AssignReplyData">
<copy>
<from variable="InitData" part="inputPart"/>
<to variable="ReplyData" part="outputPart"/>
</copy>
</assign>
<reply name="ReplyToInitialReceive" partnerLink="MyRoleLink" operation="echo" portType="ec:EchoInterfacePortType" variable="ReplyData"/>
</sequence>
</process>
50 changes: 50 additions & 0 deletions EchoInterface.wsdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:plink="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop"
xmlns:tns="http://dsg.wiai.uniba.de/wsdl/echointerface"
name="EchoInterface"
targetNamespace="http://dsg.wiai.uniba.de/wsdl/echointerface">

<plink:partnerLinkType name="EchoInterfacePartnerLinkType">
<plink:role name="echoInterfaceRole" portType="tns:EchoInterfacePortType"/>
</plink:partnerLinkType>

<types>
<xsd:schema targetNamespace="http://dsg.wiai.uniba.de/wsdl/echointerface">
<xsd:element name="echoRequest" type="xsd:int"/>
<xsd:element name="echoResponse" type="xsd:int"/>
</xsd:schema>
</types>

<message name="echoRequestMessage">
<part name="inputPart" element="tns:echoRequest"/>
</message>
<message name="echoResponseMessage">
<part name="outputPart" element="tns:echoResponse"/>
</message>

<portType name="EchoInterfacePortType">
<operation name="echo">
<input name="echoInput" message="tns:echoRequestMessage"/>
<output name="echoOutput" message="tns:echoResponseMessage"/>
</operation>
</portType>

<binding name="EchoInterfacePortTypeBinding" type="tns:EchoInterfacePortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

<operation name="echo">
<soap:operation/>
<input name="echoInput">
<soap:body use="literal"/>
</input>
<output name="echoOutput">
<soap:body use="literal"/>
</output>
</operation>
</binding>

</definitions>
11 changes: 11 additions & 0 deletions deploy.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<deploy xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable">
<process xmlns:tns="http://dsg.wiai.uniba.de/bpel/echo"
name="tns:Echo">
<provide xmlns:tns="http://dsg.wiai.uniba.de/wsdl/echointerface"
partnerLink="MyRoleLink">
<service name="tns:EchoInterfaceService" port="EchoInterfacePort"/>
</provide>
</process>
</deploy>

0 comments on commit 4c75e71

Please sign in to comment.