• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error In Asynchronous BPEL Process

 
Ranch Hand
Posts: 300
Eclipse IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 300
Eclipse IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i got the answer for my above query that is when the application does not get deployed properly it shows such error.
 
My first bit of advice is that if you are going to be a mime, you shouldn't talk. Even the tiny ad is nodding:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic