ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Avo Jenk <avo.j...@gmail.com>
Subject Re: Using SOAP Headers without dynamic headers
Date Wed, 16 Sep 2009 08:24:35 GMT
Thanks, but that example uses dynamic headers.

Has anyone tested using SOAP headers without dynamic headers?
Or can you perhaps spot a fault in my BPEL process.

<!-- bpelTest BPEL Process [Generated by the Eclipse BPEL Designer] -->
<bpel:process name="bpelTest"
         targetNamespace="http://sample.bpel.org/bpel/sample"
         suppressJoinFailure="yes"
         xmlns:tns="http://sample.bpel.org/bpel/sample"
         xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
         xmlns:ns="http://www.aktors.ee/bpel/HelloWorld">

    <!-- Import the client WSDL -->
    <bpel:import namespace="http://www.aktors.ee/bpel/HelloWorld"
location="HelloWorldService.wsdl"
importType="http://schemas.xmlsoap.org/wsdl/"/>
    <bpel:import location="bpelTestArtifacts.wsdl"
namespace="http://sample.bpel.org/bpel/sample"
	        importType="http://schemas.xmlsoap.org/wsdl/" />

    <!-- =================================================================
-->
    <!-- PARTNERLINKS                                                      -->
    <!-- List of services participating in this BPEL process               -->
    <!-- =================================================================
-->
    <bpel:partnerLinks>
        <!-- The 'client' role represents the requester of this service. -->
        <bpel:partnerLink name="client"
                     partnerLinkType="tns:bpelTest"
                     myRole="bpelTestProvider" />
        <bpel:partnerLink name="helloLink"
        			 partnerLinkType="tns:helloPLT"
        			 partnerRole="helloProvider" />
    </bpel:partnerLinks>

    <!-- =================================================================
-->
    <!-- VARIABLES                                                         -->
    <!-- List of messages and XML documents used within this BPEL process  -->
    <!-- =================================================================
-->
    <bpel:variables>
        <bpel:variable name="input" messageType="tns:bpelTestRequestMessage"/>
        <bpel:variable name="output" messageType="tns:bpelTestResponseMessage"/>
        <bpel:variable name="helloLinkResponse"
messageType="ns:HelloWorldResponseMessage"/>
        <bpel:variable name="helloLinkRequest"
messageType="ns:HelloWorldRequestMessage"/>
    </bpel:variables>

    <!-- =================================================================
-->
    <!-- ORCHESTRATION LOGIC                                               -->
    <!-- Set of activities coordinating the flow of messages across the    -->
    <!-- services integrated within this business process                  -->
    <!-- =================================================================
-->
    <bpel:sequence name="main">

        <!-- Receive input from requester.
             Note: This maps to operation defined in bpelTest.wsdl
             -->
        <bpel:receive name="receiveInput" partnerLink="client"
                 portType="tns:bpelTest"
                 operation="process" variable="input"
                 createInstance="yes"/>
        <!-- Generate reply to synchronous request -->

        <bpel:assign validate="no" name="Assign">
            <bpel:copy>
                <bpel:from>
                    <bpel:literal xml:space="preserve">
                    	<tns:HelloWorldRequest
xmlns:tns="http://www.aktors.ee/bpel/HelloWorld"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  							<tns:input/>
						</tns:HelloWorldRequest>
					</bpel:literal>
                </bpel:from>
                <bpel:to variable="helloLinkRequest" part="payload"/>
            </bpel:copy>
            <bpel:copy>
                <bpel:from>
                    <bpel:literal xml:space="preserve">
                    	<xtee:asutus
xmlns:tns="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xtee="http://x-tee.riik.ee/xsd/xtee.xsd"/>
					</bpel:literal>
                </bpel:from>
                <bpel:to variable="helloLinkRequest" part="asutus"/>
            </bpel:copy>
            <bpel:copy>
                <bpel:from>
                    <bpel:literal xml:space="preserve">
                    	<xtee:andmekogu
xmlns:tns="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xtee="http://x-tee.riik.ee/xsd/xtee.xsd"/>
					</bpel:literal>
                </bpel:from>
                <bpel:to variable="helloLinkRequest" part="andmekogu"/>
            </bpel:copy>
            <bpel:copy>
                <bpel:from>
                    <bpel:literal xml:space="preserve">
                    	<xtee:nimi
xmlns:tns="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xtee="http://x-tee.riik.ee/xsd/xtee.xsd"/>
					</bpel:literal>
                </bpel:from>
                <bpel:to variable="helloLinkRequest" part="nimi"/>
            </bpel:copy>
            <bpel:copy>
                <bpel:from>
                    <bpel:literal xml:space="preserve">
                    	<xtee:id
xmlns:tns="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xtee="http://x-tee.riik.ee/xsd/xtee.xsd"/>
					</bpel:literal>
                </bpel:from>
                <bpel:to variable="helloLinkRequest" part="id"/>
            </bpel:copy>
            <bpel:copy>
                <bpel:from>
                    <bpel:literal xml:space="preserve">
                    	<xtee:isikukood
xmlns:tns="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xtee="http://x-tee.riik.ee/xsd/xtee.xsd"/>
					</bpel:literal>
                </bpel:from>
                <bpel:to variable="helloLinkRequest" part="isikukood"/>
            </bpel:copy>
            <bpel:copy>
                <bpel:from part="asutus" variable="input"/>
                <bpel:to part="asutus" variable="helloLinkRequest"/>
            </bpel:copy>
			<bpel:copy>
                <bpel:from part="andmekogu" variable="input"/>
                <bpel:to part="andmekogu" variable="helloLinkRequest"/>
            </bpel:copy>
            <bpel:copy>
                <bpel:from part="isikukood" variable="input"/>
                <bpel:to part="isikukood" variable="helloLinkRequest"/>
            </bpel:copy>
            <bpel:copy>
                <bpel:from part="id" variable="input"/>
                <bpel:to part="id" variable="helloLinkRequest"/>
            </bpel:copy>
            <bpel:copy>
                <bpel:from part="nimi" variable="input"/>
                <bpel:to part="nimi" variable="helloLinkRequest"/>
            </bpel:copy>
            <bpel:copy>
                <bpel:from>
                    $input.payload1/tns:input
                </bpel:from>
                <bpel:to>
                    $helloLinkRequest.payload/ns:input
                </bpel:to>
			</bpel:copy>
        </bpel:assign>
        <bpel:invoke name="Invoke" partnerLink="helloLink"
operation="process" portType="ns:HelloWorld"
inputVariable="helloLinkRequest" outputVariable="helloLinkResponse"/>
		<bpel:assign validate="no" name="Assign1">
            <bpel:copy>
                <bpel:from>
                    <bpel:literal xml:space="preserve">
                    	<tns:bpelTestResponse
xmlns:tns="http://sample.bpel.org/bpel/sample"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  							<tns:result/>
						</tns:bpelTestResponse>
					</bpel:literal>
                </bpel:from>
                <bpel:to variable="output" part="payload1"/>
            </bpel:copy>
            <bpel:copy>
                <bpel:from>
                    <bpel:literal xml:space="preserve">
                    	<xtee:asutus
xmlns:tns="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xtee="http://x-tee.riik.ee/xsd/xtee.xsd"/>
					</bpel:literal>
                </bpel:from>
                <bpel:to variable="output" part="asutus"/>
            </bpel:copy>
            <bpel:copy>
                <bpel:from>
                    <bpel:literal xml:space="preserve">
                    	<xtee:andmekogu
xmlns:tns="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xtee="http://x-tee.riik.ee/xsd/xtee.xsd"/>
					</bpel:literal>
                </bpel:from>
                <bpel:to variable="output" part="andmekogu"/>
            </bpel:copy>
            <bpel:copy>
                <bpel:from>
                    <bpel:literal xml:space="preserve">
                    	<xtee:nimi
xmlns:tns="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xtee="http://x-tee.riik.ee/xsd/xtee.xsd"/>
					</bpel:literal>
                </bpel:from>
                <bpel:to variable="output" part="nimi"/>
            </bpel:copy>
            <bpel:copy>
                <bpel:from>
                    <bpel:literal xml:space="preserve">
                    	<xtee:id
xmlns:tns="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xtee="http://x-tee.riik.ee/xsd/xtee.xsd"/>
					</bpel:literal>
                </bpel:from>
                <bpel:to variable="output" part="id"/>
            </bpel:copy>
            <bpel:copy>
                <bpel:from>
                    <bpel:literal xml:space="preserve">
                    	<xtee:isikukood
xmlns:tns="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xtee="http://x-tee.riik.ee/xsd/xtee.xsd"/>
					</bpel:literal>
                </bpel:from>
                <bpel:to variable="output" part="isikukood"/>
            </bpel:copy>
            <bpel:copy>
                <bpel:from part="asutus" variable="helloLinkResponse"/>
                <bpel:to part="asutus" variable="output"/>
            </bpel:copy>
            <bpel:copy>
                <bpel:from part="isikukood" variable="helloLinkResponse"/>
                <bpel:to part="isikukood" variable="output"/>
            </bpel:copy>
            <bpel:copy>
                <bpel:from part="id" variable="helloLinkResponse"/>
                <bpel:to part="id" variable="output"/>
            </bpel:copy>
            <bpel:copy>
                <bpel:from part="nimi" variable="helloLinkResponse"/>
                <bpel:to part="nimi" variable="output"/>
            </bpel:copy>
            <bpel:copy>
                <bpel:from part="andmekogu" variable="helloLinkResponse"/>
                <bpel:to part="andmekogu" variable="output"/>
            </bpel:copy>
            <bpel:copy>
                <bpel:from>
                    concat($helloLinkResponse.payload/ns:result, "
(lisame bpel-s ka miskit)")
                </bpel:from>
                <bpel:to>
                    $output.payload1/tns:result
                </bpel:to>
            </bpel:copy>
        </bpel:assign>
        <bpel:reply name="replyOutput"
               partnerLink="client"
               portType="tns:bpelTest"
               operation="process"
               variable="output"
               />
    </bpel:sequence>
</bpel:process>

Also adding console output:
DEBUG - GeronimoLog.debug(66) | Received request message for
bpelTest.{http://sample.bpel.org/bpel/sample}process
DEBUG - GeronimoLog.debug(66) | Starting transaction.
DEBUG - GeronimoLog.debug(66) | Routed: svcQname
{http://sample.bpel.org/bpel/sample}bpelTestService -->
[BpelProcess[{http://sample.bpel.org/bpel/sample}bpelTest-10]]
DEBUG - GeronimoLog.debug(66) | ODE routed to operation Operation: name=process
style=REQUEST_RESPONSE,1
Input: name=null
Message: name={http://sample.bpel.org/bpel/sample}bpelTestRequestMessage
Part: name=payload1
elementName={http://sample.bpel.org/bpel/sample}bpelTestRequest
Part: name=asutus
elementName={http://x-tee.riik.ee/xsd/xtee.xsd}asutus
Part: name=isikukood
elementName={http://x-tee.riik.ee/xsd/xtee.xsd}isikukood
Part: name=andmekogu
elementName={http://x-tee.riik.ee/xsd/xtee.xsd}andmekogu
Part: name=nimi
elementName={http://x-tee.riik.ee/xsd/xtee.xsd}nimi
Part: name=id
elementName={http://x-tee.riik.ee/xsd/xtee.xsd}id
Output: name=null
Message: name={http://sample.bpel.org/bpel/sample}bpelTestResponseMessage
Part: name=payload1
elementName={http://sample.bpel.org/bpel/sample}bpelTestResponse
Part: name=asutus
elementName={http://x-tee.riik.ee/xsd/xtee.xsd}asutus
Part: name=isikukood
elementName={http://x-tee.riik.ee/xsd/xtee.xsd}isikukood
Part: name=andmekogu
elementName={http://x-tee.riik.ee/xsd/xtee.xsd}andmekogu
Part: name=nimi
elementName={http://x-tee.riik.ee/xsd/xtee.xsd}nimi
Part: name=id
elementName={http://x-tee.riik.ee/xsd/xtee.xsd}id from service
{http://sample.bpel.org/bpel/sample}bpelTestService
DEBUG - GeronimoLog.debug(66) | SET MEX property isTwoWay = true
DEBUG - GeronimoLog.debug(66) | Invoking ODE using MEX
{MyRoleMex#hqejbhcnphr4lifh71ohuj [Client hqejbhcnphr4lifh71ohui]
calling {http://sample.bpel.org/bpel/sample}bpelTestService.process(...)}
DEBUG - GeronimoLog.debug(66) | Message content:  <?xml version="1.0"
encoding="UTF-8"?>
<message><payload1><bpelTestRequest
xmlns="http://sample.bpel.org/bpel/sample"
xmlns:q0="http://x-tee.riik.ee/xsd/xtee.xsd"
xmlns:q1="http://sample.bpel.org/bpel/sample"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<input>test3</input>
</bpelTestRequest></payload1></message>
DEBUG - GeronimoLog.debug(66) | invoke() EPR= null ==>
BpelProcess[{http://sample.bpel.org/bpel/sample}bpelTest-10]
DEBUG - GeronimoLog.debug(66) | Commiting ODE MEX
{MyRoleMex#hqejbhcnphr4lifh71ohuj [Client hqejbhcnphr4lifh71ohui]
calling {http://sample.bpel.org/bpel/sample}bpelTestService.process(...)}
DEBUG - GeronimoLog.debug(66) | Commiting transaction.
DEBUG - GeronimoLog.debug(66) | handleWorkEvent: InvokeInternal event
for mexid hqejbhcnphr4lifh71ohuj
DEBUG - GeronimoLog.debug(66) | >>
handleWorkEvent(jobData={type=INVOKE_INTERNAL,
mexid=hqejbhcnphr4lifh71ohuj,
pid={http://sample.bpel.org/bpel/sample}bpelTest-10})
DEBUG - GeronimoLog.debug(66) | InvokeInternal event for mexid
hqejbhcnphr4lifh71ohuj
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: client.process: MSG RCVD
keys=[] mySessionId=null partnerSessionId=null
DEBUG - GeronimoLog.debug(66) | INPUTMSG: client.process: routing
failed, CREATING NEW INSTANCE
DEBUG - GeronimoLog.debug(66) | BpelRuntimeContextImpl created for
instance 1308. INDEXED STATE={}
DEBUG - GeronimoLog.debug(66) | SELECT: PickResponseChannel#9: USING
CORRELATOR client.process
DEBUG - GeronimoLog.debug(66) | SELECT: PickResponseChannel#9:
CHECKING for NEW INSTANCE match
DEBUG - GeronimoLog.debug(66) | INPUTMSGMATCH: Changing process
instance state from ready to active
DEBUG - GeronimoLog.debug(66) | SELECT: PickResponseChannel#9: FOUND
match for NEW instance mexRef={MyRoleMex#hqejbhcnphr4lifh71ohuj
[Client hqejbhcnphr4lifh71ohui] calling
{http://sample.bpel.org/bpel/sample}bpelTestService.process(...)}
DEBUG - GeronimoLog.debug(66) | INVOKING PARTNER:
partnerLink={PartnerLinkInstance
partnerLinkDecl=OPartnerLink#46,scopeInstanceId=1365}, op=process
channel=InvokeResponseChannel#20)
DEBUG - GeronimoLog.debug(66) | INVOKE PARTNER (SEP): sessionId=null
partnerSessionId=null
DEBUG - GeronimoLog.debug(66) | SET MEX property activityId = 92
DEBUG - GeronimoLog.debug(66) | Routed: svcQname
{http://www.aktors.ee/bpel/HelloWorld}HelloWorldService --> null
DEBUG - GeronimoLog.debug(66) | Creating invocation check event in
180000ms for mexid hqejbhcnphr4lifh71ohum
DEBUG - GeronimoLog.debug(66) | SET MEX property invokeCheckJobId =
hqejbhcnphr4lifh71ohun
DEBUG - GeronimoLog.debug(66) | Invoking a partner operation: process
DEBUG - GeronimoLog.debug(66) | The service to invoke is the external
service {http://www.aktors.ee/bpel/HelloWorld}HelloWorldService:HelloWorldPort
DEBUG - GeronimoLog.debug(66) | Resolving endpoint reference <?xml
version="1.0" encoding="UTF-8"?>
<service-ref xmlns="http://docs.oasis-open.org/wsbpel/2.0/serviceref"><EndpointReference
xmlns="http://www.w3.org/2005/08/addressing"><Metadata><ServiceName
xmlns="http://www.w3.org/2006/05/addressing/wsdl"
EndpointName="HelloWorldPort"
xmlns:servicens="http://www.aktors.ee/bpel/HelloWorld">servicens:HelloWorldService</ServiceName></Metadata><Address>http://localhost:8080/axis2/services/HelloWorldService</Address></EndpointReference></service-ref>
DEBUG - GeronimoLog.debug(66) | GET MEX property
org.apache.ode.bpel.partnerRoleSessionId = null
DEBUG - GeronimoLog.debug(66) | GET MEX property
org.apache.ode.bpel.myRoleSessionId = null
DEBUG - GeronimoLog.debug(66) | My-Role EPR not specified, SEP will not be used.
ERROR - GeronimoLog.error(108) | Error sending message to Axis2 for
ODE mex {PartnerRoleMex#hqejbhcnphr4lifh71ohum [PID
{http://sample.bpel.org/bpel/sample}bpelTest-10] calling
org.apache.ode.bpel.epr.WSAEndpoint@bc78ed.process(...)}
org.apache.ode.axis2.OdeFault: Message is missing required part: asutus
	at org.apache.ode.axis2.util.SoapMessageConverter.handleSoapHeaderDef(SoapMessageConverter.java:247)
	at org.apache.ode.axis2.util.SoapMessageConverter.createSoapHeaders(SoapMessageConverter.java:212)
	at org.apache.ode.axis2.util.SoapMessageConverter.createSoapRequest(SoapMessageConverter.java:168)
	at org.apache.ode.axis2.SoapExternalService.invoke(SoapExternalService.java:151)
	at org.apache.ode.axis2.MessageExchangeContextImpl.invokePartner(MessageExchangeContextImpl.java:52)
	at org.apache.ode.bpel.engine.BpelRuntimeContextImpl.invoke(BpelRuntimeContextImpl.java:781)
	at org.apache.ode.bpel.runtime.INVOKE.run(INVOKE.java:100)
	at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
	at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
	at org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(BpelRuntimeContextImpl.java:875)
	at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:206)
	at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:237)
	at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:408)
	at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:439)
	at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:441)
	at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:411)
	at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:405)
	at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:218)
	at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:404)
	at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:401)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
	at java.util.concurrent.FutureTask.run(FutureTask.java:123)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
	at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.IllegalArgumentException: Message is missing
required part: asutus
	at org.apache.ode.utils.wsdl.Messages.msgOdeMessageMissingRequiredPart(Messages.java:168)
	... 28 more
DEBUG - GeronimoLog.debug(66) | replyWithFailure
mex=hqejbhcnphr4lifh71ohum failureType=COMMUNICATION_ERROR
description=Error sending message to Axis2 for ODE mex
{PartnerRoleMex#hqejbhcnphr4lifh71ohum [PID
{http://sample.bpel.org/bpel/sample}bpelTest-10] calling
org.apache.ode.bpel.epr.WSAEndpoint@bc78ed.process(...)} details=null
DEBUG - GeronimoLog.debug(66) | Invoking message response for mexid
hqejbhcnphr4lifh71ohum and channel 20
DEBUG - GeronimoLog.debug(66) | Triggering response
ERROR - GeronimoLog.error(104) | Failure during invoke: Error sending
message to Axis2 for ODE mex {PartnerRoleMex#hqejbhcnphr4lifh71ohum
[PID {http://sample.bpel.org/bpel/sample}bpelTest-10] calling
org.apache.ode.bpel.epr.WSAEndpoint@bc78ed.process(...)}
INFO - GeronimoLog.info(79) | ActivityRecovery: Registering activity
11, failure reason: Error sending message to Axis2 for ODE mex
{PartnerRoleMex#hqejbhcnphr4lifh71ohum [PID
{http://sample.bpel.org/bpel/sample}bpelTest-10] calling
org.apache.ode.bpel.epr.WSAEndpoint@bc78ed.process(...)} on channel 21
DEBUG - GeronimoLog.debug(66) | Setting execution state on instance 1308
DEBUG - GeronimoLog.debug(66) | Received myrole mex response callback
DEBUG - GeronimoLog.debug(66) | Handling response for MEX
{MyRoleMex#hqejbhcnphr4lifh71ohuj [Client hqejbhcnphr4lifh71ohui]
calling {http://sample.bpel.org/bpel/sample}bpelTestService.process(...)}
DEBUG - GeronimoLog.debug(66) | Starting transaction.
DEBUG - GeronimoLog.debug(66) | Failure response message: null
WARN - GeronimoLog.warn(96) | MEX produced a fault
{MyRoleMex#hqejbhcnphr4lifh71ohuj [Client hqejbhcnphr4lifh71ohui]
calling {http://sample.bpel.org/bpel/sample}bpelTestService.process(...)}
org.apache.ode.axis2.OdeFault: Message exchange failure due to: Error
sending message to Axis2 for ODE mex
{PartnerRoleMex#hqejbhcnphr4lifh71ohum [PID
{http://sample.bpel.org/bpel/sample}bpelTest-10] calling
org.apache.ode.bpel.epr.WSAEndpoint@bc78ed.process(...)}
	at org.apache.ode.axis2.util.SoapMessageConverter.createOdeFault(SoapMessageConverter.java:570)
	at org.apache.ode.axis2.ODEService.onResponse(ODEService.java:282)
	at org.apache.ode.axis2.ODEService.onAxisMessageExchange(ODEService.java:189)
	at org.apache.ode.axis2.hooks.ODEMessageReceiver.invokeBusinessLogic(ODEMessageReceiver.java:69)
	at org.apache.ode.axis2.hooks.ODEMessageReceiver.invokeBusinessLogic(ODEMessageReceiver.java:52)
	at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
	at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
	at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
	at java.lang.Thread.run(Thread.java:595)
DEBUG - GeronimoLog.debug(66) | Releasing mex hqejbhcnphr4lifh71ohuj
DEBUG - GeronimoLog.debug(66) | Comitting transaction.



> I think this test process might help you:
> http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestSoapHeader2/
>
> The corresponding java test case to run is:
> http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/SoapHeader2Test.java
>
> Cheers,
>
> Alexis
>
> On Fri, Sep 4, 2009 at 3:09 AM, Avo Jenk <avo.jenk@gmail.com> wrote:
>
>> Hello,
>> Having problems with SOAP headers. I need to send the headers from a
>> received message with every outgoing message. Dynamic headers works fine,
>> but is an ODE specific solution so I can't use that. The other option of
>> defining them as message parts of every message isn't fun either, but i
>> guess it'll have to do. The problem is I can't get the variable
>> initialization right. How to initialize a variable of messageType that has
>> several parts? (Can't use literal because then I have to specify a single
>> part.)
>>
>> Here's the message:
>>    <message name="bpelTestRequestMessage">
>>        <part element="tns:bpelTestRequest" name="payload1"/>
>>        <part name="asutus" element="xtee:asutus" />
>>        <part name="andmekogu" element="xtee:andmekogu" />
>>        <part name="isikukood" element="xtee:isikukood" />
>>        <part name="nimi" element="xtee:nimi" />
>>        <part name="id" element="xtee:id" />
>>    </message>
>>
>> Types:
>>    <element name="bpelTestRequest">
>>        <complexType>
>>            <sequence>
>>                <element name="input" type="string"/>
>>            </sequence>
>>        </complexType>
>>    </element>
>>    <element name="asutus" type="string" />
>>    ... (the other header parts are the same)
>>
>> Bindings:
>>    <soap:body parts="payload1" use="literal" />
>>    <soap:header message="tns:bpelTestRequestMessage" part="asutus"
>> use="literal" namespace="http://x-tee.riik.ee/xsd/xtee.xsd" />
>>    <soap:header message="tns:bpelTestRequestMessage" part="andmekogu"
>> use="literal" namespace="http://x-tee.riik.ee/xsd/xtee.xsd" />
>>    <soap:header message="tns:bpelTestRequestMessage" part="isikukood"
>> use="literal" namespace="http://x-tee.riik.ee/xsd/xtee.xsd" />
>>    <soap:header message="tns:bpelTestRequestMessage" part="nimi"
>> use="literal" namespace="http://x-tee.riik.ee/xsd/xtee.xsd" />
>>    <soap:header message="tns:bpelTestRequestMessage" part="id"
>> use="literal" namespace="http://x-tee.riik.ee/xsd/xtee.xsd" />
>>
>> BPEL variable is defined as:
>>        <bpel:variable name="input"
>> messageType="tns:bpelTestRequestMessage"/>
>>
>> Can't use this cause then it has to be a message:
>> <bpel:copy>
>>    <bpel:from>
>>        <bpel:literal xml:space="preserve">
>>            <tns:HelloWorldRequest xmlns:tns="
>> http://www.aktors.ee/bpel/HelloWorld" xmlns:xtee="
>> http://x-tee.riik.ee/xsd/xtee.xsd" xmlns:xsi="
>> http://www.w3.org/2001/XMLSchema-instance">
>>                <tns:input></tns:input>
>>                <xtee:asutus></xtee:asutus>
>>                <xtee:andmekogu></xtee:andmekogu>
>>                <xtee:isikukood></xtee:isikukood>
>>                <xtee:nimi></xtee:nimi>
>>                <xtee:id></xtee:id>
>>            </tns:HelloWorldRequest>
>>        </bpel:literal>
>>    </bpel:from>
>> <bpel:to variable="helloLinkRequest" />
>>
>> Some examples on using SOAP headers (without dynamic headers) and variable
v> initialization (of a message that has more than one part) would be much
>> appreciated.
>> Thanks.
>>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message