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)