File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Error In Asynchronous BPEL  Process Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Error In Asynchronous BPEL  Process" Watch "Error In Asynchronous BPEL  Process" New topic
Author

Error In Asynchronous BPEL Process

carina caoor
Ranch Hand

Joined: Jun 23, 2007
Posts: 300

Hi, i modified the Asynchronous sample file.I added a if loop in the AsynchronousSample.bpel so that when AsynchronousSampleClient.bpl calls the AsynchronousSample.bpl it goes through if loop and give the required result my file AsynchronousSample.bpl is
<process name="AsynchronousSample"
targetNamespace="http://enterprise.netbeans.org/bpel/AsynchronousSample"
xmlns:wsdlNS="http://enterprise.netbeans.org/bpel/AsynchronousSample"
xmlns:xs="http://enterprise.netbeans.org/bpel/AsynchronousSampleSchemaNamespace"
xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable">

<import namespace="http://enterprise.netbeans.org/bpel/AsynchronousSampleSchemaNamespace"
location="AsynchronousSample.xsd"
importType="http://www.w3.org/2001/XMLSchema" />
<import namespace="http://enterprise.netbeans.org/bpel/AsynchronousSample"
location="AsynchronousSample.wsdl"
importType="http://schemas.xmlsoap.org/wsdl/"/>

<partnerLinks>
<partnerLink name="partnerLinkA"
partnerLinkType="wsdlNS:AsyncPartnerLinkType"
myRole="serviceProvider"
partnerRole="serviceRequestor"/>
</partnerLinks>

<variables>
<variable name="inputVar" messageType="wsdlNS:requestMessage"/>
<variable name="outputVar" messageType="wsdlNS:responseMessage"/>
</variables>

<sequence>
<receive
name="start"
partnerLink="partnerLinkA"
portType="wsdlNS:MyPortType"
operation="asyncOperation"
variable="inputVar"
createInstance="yes">
</receive>
<if name="If1">
<condition> ( $inputVar.inputType/id > 20 ) </condition>
<assign name="Assign1">
<copy>
<from>concat($inputVar.inputType/id, 'Leaves Cannot be Availed')</from>
<to>$outputVar.resultType/id</to>
</copy>
<copy>
<from>$inputVar.inputType/paramA</from>
<to>$outputVar.resultType/paramA</to>
</copy>
</assign>
<else>
<assign name="Assign2">
<copy>
<from>concat($inputVar.inputType/id, 'Leaves can be availed')</from>
<to>$outputVar.resultType/id</to>
</copy>
<copy>
<from>$inputVar.inputType/paramA</from>
<to>$outputVar.resultType/paramA</to>
</copy>
</assign>
</else>
</if>

<invoke name="end"
partnerLink="partnerLinkA"
portType="wsdlNS:MyCallbackPortType"
operation="onResult"
inputVariable="outputVar"/>
</sequence>
</process>



But i am getting error while running the test
No test passed,1 test failed
org.netbeans.modules.comapp.catd.ConfiguredTest Failed
Passed thread count Success<0>Error<0>NotCompleted <1>Detail:Concurrent test thread did not complete Success rate 0/1
Junit.Framework.AssertionFailedError
at org.netbeans.modules.comapp.catd.ConfiguredTest.testConcurrentSOAPRequest(ConfiguredTest.java:781)
carina caoor
Ranch Hand

Joined: Jun 23, 2007
Posts: 300

i got the answer for my above query that is when the application does not get deployed properly it shows such error.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Error In Asynchronous BPEL Process
 
Similar Threads
How to consume this asynchronous web service?
"org.xml.sax.SAXException: Bad types "
Using BPEL to relay a web service
invoke remote webservice APACHE ODE
http post with bpel