Hi.
i did some experiments with bpel.
first example is the asyncronous example provided by eclipse, with the
adding of an external webservice. this web service has as endpoint one of my
jsp (the jsp works as endpoint, receive the data an trasform it in a json
object).
now, the code is here: http://bako.interfree.it/bpelex/TestMyCalls.zip
and the log of ode is here: http://bako.interfree.it/bpelex/LogWORKS.txt
as you can read the output said:

name 73774D456E384339436D387359474775336A
operation update
json value {"in":"prova"}

so it WORKS FINE.
you can check that the output message is sended:

DEBUG - GeronimoLog.debug(66) | Axis2 sending message to
http://localhost:8080/RestServices/services/provaApps/test.jsp using
MEX {PartnerRoleMex#hqejbhcnphr4tjt8wfvk2o [PID
{http://eclipse.org/bpel/sample}Test-27] calling
[email protected](...)}

DEBUG - GeronimoLog.debug(66) | Message: <?xml version='1.0'
encoding='utf-8'?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Body><update
xmlns="http://www.example.org/searchPos/";>

  <in xmlns="">prova</in>
</update></soapenv:Body></soapenv:Envelope>



The other one bpel project is similar at the previous one, but the start
message (the input message) is taken from another wsdl.
i'll explain better: the wsdl that is used for the output contains 2
partnerLink one for the invoke and one for the receive. so i construct a
receive over this wsdl setted with myRole and externalRole. I put all in the
deploy.xml with 2 different endpoint and i deploy it. (it's strange to
explain, but is similar of what eclipse does in a asyncronous example)
the process receive the message but nothing is sent.

i think the problem might be "the correlation" or smt mistake in the
services or port.

the code is here: http://bako.interfree.it/bpelex/BPELTOFIXALL.zip
the log there: http://bako.interfree.it/bpelex/logDoesntwork.txt

DEBUG - GeronimoLog.debug(66) | Message content:  <?xml version="1.0"
encoding="UTF-8"?>

<message><parameters><search xmlns="http://www.example.org/searchPos/";
xmlns:sear="http://www.example.org/searchPos/";
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>

         <where xmlns="">asd</where>
         <what xmlns="">sad</what>
      </search></parameters></message>
DEBUG - GeronimoLog.debug(66) | Routed: svcQname
{http://www.example.org/searchPos/}MyService -->
BpelProcess[{http://eclipse.org/bpel/sample}Test2Instances-29]

DEBUG - GeronimoLog.debug(66) | invoke() EPR= null ==>
BpelProcess[{http://eclipse.org/bpel/sample}Test2Instances-29]
DEBUG - GeronimoLog.debug(66) | Commiting ODE MEX
{MyRoleMex#hqejbhcnphr4tjt8wfvk4r [Client hqejbhcnphr4tjt8wfvk4q]
calling {http://www.example.org/searchPos/}MyService.search(...)}

DEBUG - GeronimoLog.debug(66) | Commiting transaction.
DEBUG - GeronimoLog.debug(66) | Releasing mex hqejbhcnphr4tjt8wfvk4r
DEBUG - GeronimoLog.debug(66) | >>
handleWorkEvent(jobData={mexid=hqejbhcnphr4tjt8wfvk4r,
pid={http://eclipse.org/bpel/sample}Test2Instances-29,
type=INVOKE_INTERNAL})

DEBUG - GeronimoLog.debug(66) | InvokeInternal event for mexid
hqejbhcnphr4tjt8wfvk4r
DEBUG - GeronimoLog.debug(66) | GET MEX property
org.apache.ode.bpel.myRoleSessionId = null
DEBUG - GeronimoLog.debug(66) | GET MEX property
org.apache.ode.bpel.myRoleSessionId = null

DEBUG - GeronimoLog.debug(66) | GET MEX property
org.apache.ode.bpel.partnerRoleSessionId = null
DEBUG - GeronimoLog.debug(66) | INPUTMSG: 12.search: MSG RCVD keys=[]
mySessionId=null partnerSessionId=null
DEBUG - GeronimoLog.debug(66) | INPUTMSG: 12.search: SAVING to DB (no match)

DEBUG - GeronimoLog.debug(66) | Releasing mex hqejbhcnphr4tjt8wfvk4r



as you can see receive the message but nothing is sent.

any idea?

Reply via email to