Document Style Binding and Initalizing Variables Question [message #9644] |
Fri, 31 August 2007 15:09 |
Eclipse User |
|
|
|
Originally posted by: gregbluntzer.maximus.com
Hello Im trying to get a simple copy variable from input to output to work
from eclipse bpel m3 to ODE 1.1
my soap binding style is "document". It was suggested to me that I need to
initalize the variables. But I dont know how to do that correctly.
Can anyone point me to a wiki or guide on Eclipse BPEL ? Or just tell me
how to fix my bpel
Thanks,
Greg
### ERROR ####
ERROR - GeronimoLog.error(108) | Error processing response for MEX
{MyRoleMex#hqejbhcnphr2jrxh4xvf4x
[Client hqejbhcnphr2jrxh4xvf4w] calling {Test4}Test4Service.process(...)}
org.apache.axis2.AxisFault:
{http://docs.oasis-open.org/wsbpel/2.0/process/executable}se lectionFailu
re No results for expression: {OXPath10Expression /tns:result}
### WSDL ###
<?xml version="1.0"?>
<definitions name="Test4"
targetNamespace="Test4"
xmlns:tns="Test4"
xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~
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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~ -->
<types>
<schema attributeFormDefault="unqualified"
elementFormDefault="qualified"
targetNamespace="Test4"
xmlns="http://www.w3.org/2001/XMLSchema">
<element name="Test4Request">
<complexType>
<sequence>
<element name="input" type="string"/>
</sequence>
</complexType>
</element>
<element name="Test4Response">
<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="Test4RequestMessage">
<part name="payload" element="tns:Test4Request"/>
</message>
<message name="Test4ResponseMessage">
<part name="payload" element="tns:Test4Response"/>
</message>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~
PORT TYPE DEFINITION - A port type groups a set of operations into
a logical service unit.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~ -->
<!-- portType implemented by the Test4 BPEL process -->
<portType name="Test4">
<operation name="process">
<input message="tns:Test4RequestMessage" />
<output message="tns:Test4ResponseMessage"/>
</operation>
</portType>
<binding name="Test4SOAPBinding" type="tns:Test4">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" />
<operation name="process">
<soap:operation soapAction="Test4/process" />
<input>
<soap:body use="literal" namespace="Test4" />
</input>
<output>
<soap:body use="literal" namespace="Test4" />
</output>
</operation>
</binding>
<service name="Test4Service">
<port name="Test4Port" binding="tns:Test4SOAPBinding">
<soap:address
location="http://localhost:8080/ode/processes/Test4"/>
</port>
</service>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~
PARTNER LINK TYPE DEFINITION
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~ -->
<plnk:partnerLinkType name="Test4">
<plnk:role name="Test4Provider" portType="tns:Test4"/>
</plnk:partnerLinkType>
</definitions>
### BPEL ###
!-- Test4 BPEL Process [Generated by the Eclipse BPEL Designer] -->
<process name="Test4"
targetNamespace="Test4"
suppressJoinFailure="yes"
xmlns:tns="Test4"
xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
>
<!-- Import the client WSDL -->
<import location="Test4.wsdl" namespace="Test4"
importType="http://schemas.xmlsoap.org/wsdl/" />
<!--
============================================================ ===== -->
<!--
-->
<!-- List of services participating in this BPEL
-->
<!--
============================================================ ===== -->
<partnerLinks>
<!-- The 'client' role represents the requester of this service. -->
<partnerLink name="client"
partnerLinkType="tns:Test4"
myRole="Test4Provider"
/>
</partnerLinks>
<!--
============================================================ ===== -->
<!--
-->
<!-- List of messages and XML documents used within this BPEL
rocess -->
<!--
============================================================ ===== -->
<variables>
<!-- Reference to the message passed as input during initiation -->
<variable name="input"
messageType="tns:Test4RequestMessage"/>
<!--
Reference to the message that will be returned to the requester
-->
<variable name="output"
messageType="tns:Test4ResponseMessage"/>
</variables>
<!--
============================================================ ===== -->
<!-- ORCHESTRATION
-->
<!-- Set of activities coordinating the flow of messages across
-->
<!-- services integrated within this business
-->
<!--
============================================================ ===== -->
<sequence name="main">
<!-- Receive input from requester.
Note: This maps to operation defined in Test4.wsdl
-->
<receive name="receiveInput" partnerLink="client"
portType="tns:Test4"
operation="process" variable="input"
createInstance="yes"/>
<!-- Generate reply to synchronous request -->
<reply name="replyOutput"
partnerLink="client"
portType="tns:Test4"
operation="process"
variable="output"
/>
</sequence>
</process>
### DEPLOY ###
<deploy xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
xmlns:pns="Test4"
xmlns:wns="Test4">
<process name="pns:Test4">
<active>true</active>
<provide partnerLink="client">
<service name="wns:Test4Service" port="Test4Port"/>
</provide>
</process>
</deploy>
#####SOAP######
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tes="Test4">
<soapenv:Header/>
<soapenv:Body>
<tes:Test4Request>
<tes:input>Hello</tes:input>
</tes:Test4Request>
</soapenv:Body>
</soapenv:Envelope>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03042 seconds