ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ytrewq2002@libero.it" <ytrewq2...@libero.it>
Subject problem invoking a real java webservice
Date Thu, 24 Sep 2009 08:28:45 GMT
sorry but  now

i think it's strange..my web service was called but it return 
"Hello" + null  instead "Hello"+pippo where pippo is the variable valure of my 
invoke! 
As you can see in the log the Helloin value is set to pippo and i know 
that this value is passed to web service input method hello(String name) that 
it should give(return)
me the string Hello pippo but it isn't true..Then when i 
try to copy the value of HelloOut (the response variable of invoke) it give me 
a selection failure (as you can see). it's strange because the response of Web 
service doesn't contain namespace selection (as you can see the <return> is not 
<myxsd:return> and the name space xlms="" (is empty why?))
So maybe when i try 
to read myxsd:return it give me a fault! maybe? why can resolve my problem, 
what's wrong..any kind of you have understand my problem and can help me or 
give a suggestion, please?? thank you very much

p.s: before invoking web 
service i have in ode processes a bpel processes that implementing the 
webservice Hellows and then calling it, and it was working. Why not now with a 
real webservice??? Maybe that was because i change the wsdl generated with 
netbeans adding namespace and adding parameters  elementFormDefault="qualified" 
to xsd??


.....:(


This is the ode log and then the bpel process instead:

09:
49:19,268 DEBUG [ScopeFrame] Initialize variable: name={Variable 
__PROCESS_SCOPE:Caller.ProcessIn:OMessageVarType#18} value=<?xml version="1.0" 
encoding="UTF-8"?>
<message><payload><CallerRequest xmlns="http://MyTest.
com/Test" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><input xmlns="
http://MyTest.com/Test">pippo</input></CallerRequest></payload></message>
09:49:
19,268 DEBUG [EMPTY] <empty name=OEmpty#25>
09:49:19,300 DEBUG [ASSIGN] Assign.
copy({OCopy {VarRef {Variable __PROCESS_SCOPE:Caller.HelloIn:
OMessageVarType#14}.parameters}={Literal <?xml version="1.0" encoding="UTF-8"?>

<literal xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable">

                        <wshello:hello xmlns:wshello="http://wsdl.hello.
netbureau.it/">
                            <myxsd:name xmlns:myxsd="http:
//hello.netbureau.it/"/>
                        </wshello:hello>

                    </literal>}})
09:49:19,362 DEBUG [ASSIGN] Evaluating FROM 
expression "{Literal <?xml version="1.0" encoding="UTF-8"?>
<literal xmlns="
http://docs.oasis-open.org/wsbpel/2.0/process/executable">

                        <wshello:hello xmlns:wshello="http://wsdl.hello.
netbureau.it/">
                            <myxsd:name xmlns:myxsd="http:
//hello.netbureau.it/"/>
                        </wshello:hello>

                    </literal>}".
09:49:19,362 DEBUG [ASSIGN] lvalue after eval 
[message: null]
09:49:19,362 DEBUG [ASSIGN] content <?xml version="1.0" 
encoding="UTF-8"?>
<message><parameters><hello xmlns="http://hello.netbureau.
it/"/></parameters></message>
09:49:19,362 DEBUG [ASSIGN] ASSIGN Writing 
variable 'HelloIn' value '<?xml version="1.0" encoding="UTF-8"?>

<message><parameters><hello xmlns="http://hello.netbureau.it/">

                            <myxsd:name xmlns:myxsd="http://hello.netbureau.it/"
/>
                        </hello></parameters></message>'
09:49:19,471 DEBUG 
[ScopeFrame] Write variable: name={Variable __PROCESS_SCOPE:Caller.HelloIn:
OMessageVarType#14} value=<?xml version="1.0" encoding="UTF-8"?>

<message><parameters><hello xmlns="http://hello.netbureau.it/">

                            <myxsd:name xmlns:myxsd="http://hello.netbureau.it/"
/>
                        </hello></parameters></message>
09:49:19,471 DEBUG 
[ASSIGN] Assign.copy({OCopy {OXPath10Expression $HelloIn.parameters/myxsd:name}=
{OXPath10Expression $ProcessIn.payload/tns:input}})
09:49:19,565 DEBUG [ASSIGN] 
Evaluating FROM expression "{OXPath10Expression $ProcessIn.payload/tns:input}".

09:49:19,565 DEBUG [JaxenNamespaceContextAdapter] 
translateNamespacePrefixToUri()=http://docs.oasis-open.org/wsbpel/2.
0/process/executable
09:49:19,565 DEBUG [JaxenNamespaceContextAdapter] 
translateNamespacePrefixToUri(tns)=http://MyTest.com/Test
09:49:19,565 DEBUG 
[ASSIGN] lvalue after eval [message: null]
09:49:19,565 DEBUG [ASSIGN] content 
<?xml version="1.0" encoding="UTF-8"?>
<message><parameters><hello xmlns="http:
//hello.netbureau.it/">
                            <myxsd:name xmlns:myxsd="
http://hello.netbureau.it/"/>
                        
</hello></parameters></message>
09:49:19,675 DEBUG 
[JaxenNamespaceContextAdapter] translateNamespacePrefixToUri()=http://docs.
oasis-open.org/wsbpel/2.0/process/executable
09:49:19,675 DEBUG 
[JaxenNamespaceContextAdapter] translateNamespacePrefixToUri(myxsd)=http:
//hello.netbureau.it/

09:49:19,675 DEBUG [ASSIGN] lvaluePtr expr res [myxsd:
name: null]
09:49:19,675 DEBUG [ASSIGN] ASSIGN Writing variable 'HelloIn' value 
'<?xml version="1.0" encoding="UTF-8"?>
<message><parameters><hello xmlns="http:
//hello.netbureau.it/">
                            <myxsd:name xmlns:myxsd="
http://hello.netbureau.it/">pippo</myxsd:name>
                        
</hello></parameters></message>'
09:49:19,768 DEBUG [ScopeFrame] Write 
variable: name={Variable __PROCESS_SCOPE:Caller.HelloIn:OMessageVarType#14} 
value=<?xml version="1.0" encoding="UTF-8"?>
<message><parameters><hello xmlns="
http://hello.netbureau.it/">
                            <myxsd:name xmlns:
myxsd="http://hello.netbureau.it/">pippo</myxsd:name>
                        
</hello></parameters></message>
09:49:19,800 DEBUG [BpelProcess] INVOKING 
PARTNER: partnerLink={PartnerLinkInstance partnerLinkDecl=OPartnerLink#20,
scopeInstanceId=1305}, op=hello channel=InvokeResponseChannel#20)
09:49:19,878 
DEBUG [BpelRuntimeContextImpl] INVOKE PARTNER (SEP): sessionId=null 
partnerSessionId=null
09:49:19,878 DEBUG [MessageExchangeImpl] SET MEX property 
activityId = 37
09:49:19,878 DEBUG [BpelEngineImpl] Routed: svcQname {http:
//wsdl.hello.netbureau.it/}HellonameService --> null
09:49:19,893 DEBUG 
[ProcessConfImpl] Properties for service {http://wsdl.hello.netbureau.it/}
HellonameService, port HellonamePort: {}
09:49:19,893 DEBUG 
[BpelRuntimeContextImpl] Creating invocation check event in 180000ms for mexid 
hqejbhcnphr4m9q315sm4x
09:49:19,987 DEBUG [SimpleScheduler] scheduling 
{mexid=hqejbhcnphr4m9q315sm4x, inmem=false, pid={http://MyTest.com/Test}Caller-
3, type=INVOKE_CHECK} for Thu Sep 24 09:52:19 CEST 2009


..
..
09:49:20,300 
DEBUG [EndpointReferenceContextImpl] 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="HellonamePort" xmlns:servicens="http:
//wsdl.hello.netbureau.it/">servicens:
HellonameService</ServiceName></Metadata><Address>http://localhost:
8080/HelloWs/Helloname</Address></EndpointReference></service-ref>
09:49:20,393 
DEBUG [MessageExchangeImpl] GET MEX property org.apache.ode.bpel.
partnerRoleSessionId = null
09:49:20,393 DEBUG [MessageExchangeImpl] GET MEX 
property org.apache.ode.bpel.myRoleSessionId = null
09:49:20,393 DEBUG 
[ExternalService] My-Role EPR not specified, SEP will not be used.
09:49:20,393 
DEBUG [ExternalService] Axis2 sending message to http://localhost:
8080/HelloWs/Helloname using MEX {PartnerRoleMex#hqejbhcnphr4m9q315sm4x [PID 
{http://MyTest.com/Test}Caller-3] calling org.apache.ode.bpel.epr.
WSAEndpoint@7fa3f6.hello(...)}
09:49:20,393 DEBUG [ExternalService] Message: <?
xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http:
//schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><hello xmlns="http://hello.
netbureau.it/">
                            <myxsd:name xmlns:myxsd="http:
//hello.netbureau.it/">pippo</myxsd:name>
                        
</hello></soapenv:Body></soapenv:Envelope>


..
09:49:24,190 DEBUG 
[SessionOutHandler] <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><addr:
To xmlns:addr="http://www.w3.org/2005/08/addressing">http://localhost:
8080/HelloWs/Helloname</addr:To><addr:Action xmlns:addr="http://www.w3.
org/2005/08/addressing"></addr:Action><addr:ReplyTo xmlns:addr="http://www.w3.
org/2005/08/addressing"><addr:Address>http://www.w3.
org/2005/08/addressing/anonymous</addr:Address></addr:ReplyTo><addr:MessageID

xmlns:addr="http://www.w3.org/2005/08/addressing">uuid:
hqejbhcnphr4m9q315sm52</addr:MessageID></soapenv:Header><soapenv:Body><hello

xmlns="http://hello.netbureau.it/">
                            <myxsd:name 
xmlns:myxsd="http://hello.netbureau.it/">pippo</myxsd:name>

                        </hello></soapenv:Body></soapenv:Envelope>
09:49:24,519 
DEBUG [ExternalService] Service response:
<?xml version='1.0' encoding='utf-8'?
><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns2:
helloResponse xmlns:ns2="http://hello.netbureau.it/"><return>Hello 
null</return></ns2:helloResponse></S:Body></S:Envelope>


..
09:49:24,597 DEBUG 
[ExternalService] Received response for MEX 
{PartnerRoleMex#hqejbhcnphr4m9q315sm4x [PID {http://MyTest.com/Test}Caller-3] 
calling null.hello(...)}
09:49:24,690 INFO  [ExternalService] Response:
<?xml 
version="1.0" encoding="UTF-8"?>
<message><parameters><helloResponse xmlns="
http://hello.netbureau.it/" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:ns2="http://hello.netbureau.it/"><return xmlns="">Hello 
null</return></helloResponse></parameters></message>


09:49:25,909 DEBUG 
[BpelRuntimeContextImpl] BpelRuntimeContextImpl created for instance 1252. 
INDEXED STATE={{OScope '__PROCESS_SCOPE:Caller' id=3}::0=[SCOPE(...)], {OScope 
'InvokeHelloname' id=36}::10=[SCOPE(...)], OSequence#22-sequence-activity-line-
29::1=[ACTIVITYGUARD(...)], OInvoke#37-InvokeHelloname::12=[INVOKE(...)], 
{OScope 'InvokeHelloname' id=36}::9=[ACTIVITYGUARD(...)], {OScope 
'__PROCESS_SCOPE:Caller' id=3}::0=[ACTIVE(...)], {OScope 'InvokeHelloname' 
id=36}::10=[ACTIVE(...)], OSequence#22-sequence-activity-line-29::2=[SEQUENCE
(self=(OSequence#22-sequence-activity-line-29,TerminationChannel#3,
ParentScopeChannel#5), linkframe=org.apache.ode.bpel.runtime.LinkFrame@1ecb654, 
remaining=[{OScope 'InvokeHelloname' id=36}, {OAssign : Assign2, 
joinCondition=null}, OReply#52-ReplyToClient])], OInvoke#37-InvokeHelloname::11=
[ACTIVITYGUARD(...)]}
09:49:26,019 DEBUG [BpelProcess] InvokeResponse event for 
iid 1252
09:49:26,019 DEBUG [BpelRuntimeContextImpl] Invoking message response 
for mexid hqejbhcnphr4m9q315sm4x and channel 20
09:49:26,019 DEBUG [JacobVPU] 
injecting (...)
09:49:26,019 DEBUG [BpelRuntimeContextImpl] Triggering response

..
..
09:49:26,128 DEBUG [ScopeFrame] Initialize variable: name={Variable 
__PROCESS_SCOPE:Caller.HelloOut:OMessageVarType#10} value=<?xml version="1.0" 
encoding="UTF-8"?>
<message><parameters><helloResponse xmlns="http://hello.
netbureau.it/" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns2="
http://hello.netbureau.it/"><return xmlns="">Hello 
null</return></helloResponse></parameters></message>
09:49:26,222 DEBUG [sql] 
getConnection (tx=2)
09:49:26,222 DEBUG [sql] Set isolation level to 2
09:49:
26,222 DEBUG [sql] prepareStatement: SELECT t0.MODEL_ID, t0.SCOPE_NAME,
...
..


09:49:26,534 DEBUG [ASSIGN] Assign.copy({OCopy {VarRef {Variable 
__PROCESS_SCOPE:Caller.CallerOut:OMessageVarType#6}.payload}={Literal <?xml 
version="1.0" encoding="UTF-8"?>
<literal xmlns="http://docs.oasis-open.
org/wsbpel/2.0/process/executable">
                        <tns:CallerResponse 
xmlns:tns="http://MyTest.com/Test">
                            <tns:result/>

                        </tns:CallerResponse>
                    </literal>}})

09:49:26,628 DEBUG [ASSIGN] Evaluating FROM expression "{Literal <?xml version="
1.0" encoding="UTF-8"?>
<literal xmlns="http://docs.oasis-open.org/wsbpel/2.
0/process/executable">
                        <tns:CallerResponse xmlns:tns="
http://MyTest.com/Test">
                            <tns:result/>

                        </tns:CallerResponse>
                    </literal>}".

09:49:26,628 DEBUG [ASSIGN] lvalue after eval [message: null]
09:49:26,628 
DEBUG [ASSIGN] content <?xml version="1.0" encoding="UTF-8"?>

<message><payload><CallerResponse xmlns="http://MyTest.com/Test"
/></payload></message>
09:49:26,628 DEBUG [ASSIGN] ASSIGN Writing variable 
'CallerOut' value '<?xml version="1.0" encoding="UTF-8"?>

<message><payload><CallerResponse xmlns="http://MyTest.com/Test">

                            <tns:result xmlns:tns="http://MyTest.com/Test"/>

                        </CallerResponse></payload></message>'
09:49:26,722 
DEBUG [ScopeFrame] Write variable: name={Variable __PROCESS_SCOPE:Caller.
CallerOut:OMessageVarType#6} value=<?xml version="1.0" encoding="UTF-8"?>

<message><payload><CallerResponse xmlns="http://MyTest.com/Test">

                            <tns:result xmlns:tns="http://MyTest.com/Test"/>

                        </CallerResponse></payload></message>
09:49:26,737 
DEBUG [ASSIGN] Assign.copy({OCopy {OXPath10Expression $CallerOut.payload/tns:
result}={OXPath10Expression $HelloOut.parameters/myxsd:return}})
09:49:26,831 
DEBUG [ASSIGN] Evaluating FROM expression "{OXPath10Expression $HelloOut.
parameters/myxsd:return}".
09:49:26,831 DEBUG [JaxenNamespaceContextAdapter] 
translateNamespacePrefixToUri()=http://docs.oasis-open.org/wsbpel/2.
0/process/executable
09:49:26,831 DEBUG [JaxenNamespaceContextAdapter] 
translateNamespacePrefixToUri(myxsd)=http://hello.netbureau.it/
09:49:26,831 
DEBUG [ASSIGN] {OXPath10Expression $HelloOut.parameters/myxsd:return}: R-Value 
expression "{OXPath10Expression $HelloOut.parameters/myxsd:return}" did not 
select any nodes.
09:49:26,831 INFO  [ASSIGN] Assignment Fault: {http://docs.
oasis-open.org/wsbpel/2.0/process/executable}selectionFailure,lineNo=69,
faultExplanation=R-Value expression "{OXPath10Expression $HelloOut.
parameters/myxsd:return}" did not select any nodes.
09:49:26,925 DEBUG [SCOPE] 
({OScope '__PROCESS_SCOPE:Caller' id=3},TerminationChannel#1,
ParentScopeChannel#2): has a fault handler for {http://docs.oasis-open.
org/wsbpel/2.0/process/executable}selectionFailure: {OCatch faultName=null, 
faultVariable=null}

this is the bpel process :

<?xml version="1.0" encoding="
UTF-8"?>
<process
    name="Caller"
    targetNamespace="http://MyTest.
com/Test"
    xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"

    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:sxt="http://www.sun.
com/wsbpel/2.0/process/executable/SUNExtension/Trace" 
    xmlns:sxed="http:
//www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
    xmlns:tns="
http://MyTest.com/Test"
    xmlns:wshello="http://wsdl.hello.netbureau.it/"
    
xmlns:myxsd="http://hello.netbureau.it/"
    >
     <!-- wsdl Caller + 
partnerLink defintion-->
    <import namespace="http://MyTest.com/Test" 
location="Caller.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
     <!
-- wsdl Ws Helloname + PartenrLinkType definition-->
    <import namespace="
http://wsdl.hello.netbureau.it/" location="Helloname.wsdl" importType="http:
//schemas.xmlsoap.org/wsdl/"/>
    <!-- xsd xhema for HellonameWs -->
    
<import namespace="http://hello.netbureau.it/" location="Helloname.xsd_1.xsd" 
importType="http://www.w3.org/2001/XMLSchema"/>
    <partnerLinks>
        
<partnerLink name="HelloWs" partnerLinkType="wshello:Helloname" partnerRole="
WriteHelloMsgRole"/>
        <partnerLink name="Caller" partnerLinkType="tns:
Caller" myRole="CallerProvider"/>
    </partnerLinks>
    <variables>
        
<variable name="CallerOut" messageType="tns:CallerResponseMessage"/>
        
<variable name="HelloOut" messageType="wshello:helloResponse"/>
        
<variable name="HelloIn" messageType="wshello:hello"/>
        <variable name="
ProcessIn" messageType="tns:CallerRequestMessage"/>
    </variables>
    
<sequence>
        <receive name="ReceiveFromclient"
        createInstance="
yes"
        partnerLink="Caller"
        operation="process" xmlns:tns="http:
//MyTest.com/Test"
        portType="tns:Caller"
        variable="ProcessIn"/>

        <assign name="Assign1">
            <copy>
                <from>

                    <literal>
                        <wshello:hello>

                            <myxsd:name/>
                        </wshello:
hello>
                    </literal>
                </from>
                
<to variable="HelloIn" part="parameters"></to>
            </copy>
            
<copy>
                <from>$ProcessIn.payload/tns:input</from>

                <to>$HelloIn.parameters/myxsd:name</to>
            </copy>

        </assign>
        <invoke name="InvokeHelloname"
        partnerLink="
HelloWs"
        operation="hello"
        portType="wshello:Helloname"
        
inputVariable="HelloIn"
        outputVariable="HelloOut"/>
        <assign 
name="Assign2">
            <copy>
                <from>
                    
<literal>
                        <tns:CallerResponse>

                            <tns:result/>
                        </tns:
CallerResponse>
                    </literal>
                </from>

                <to part="payload" variable="CallerOut"/>
            </copy>

            <copy>
                <from>$HelloOut.parameters/myxsd:
return</from>
                <to>$CallerOut.payload/tns:result</to>

            </copy>
        </assign>
        <reply name="ReplyToClient" 
partnerLink="Caller" operation="process" portType="tns:Caller" variable="
CallerOut"/>
    </sequence>
   
</process>
>----Messaggio originale----
>Da: 
ytrewq2002@libero.it
>Data: 23/09/2009 17.39
>A: "user"<user@ode.apache.org>

>Ogg: Re: problem invoking a real java webservice
>
>thanks but.. i suppose 
that because i have another bpel process that take a string(receive) and return 
the same string taken (reply) with the same Service and port name (like the web 
service i try to call) and this bpel is under ode/process maybe ode call this 
bpel instead the webservice hellows! so i remove the bpel process but now give 
me a select fault about the Output variable of invoke process! I have to 
initialize it??? Ode when call the webservice with <invoke> didin't make the 
initialization directly before setting it with the result of webservice? Or i 
have to place the the web service under ode/process (like the process place 
now)?? mmm...this is the log (as you can see in the last lines, the web service 
give me a Hello null...why null and not Hello pippo?? :(), thanks:
>
>17:22:
58,484 DEBUG [ScopeFrame] Write variable: name={Variable __PROCESS_SCOPE:Caller.
HelloIn:OMessageVarType#14} value=<?xml version="1.0" encoding="UTF-8"?>

><message><parameters><hello xmlns="http://hello.netbureau.it/">

>                            <myxsd:name xmlns:myxsd="http://hello.netbureau.
it/">pippo</myxsd:name>
>                        
</hello></parameters></message>
>17:22:58,609 DEBUG [BpelProcess] INVOKING 
PARTNER: partnerLink={PartnerLinkInstance partnerLinkDecl=OPartnerLink#20,
scopeInstanceId=301}, op=hello channel=InvokeResponseChannel#20)
>17:22:58,609 
DEBUG [BpelRuntimeContextImpl] INVOKE PARTNER (SEP): sessionId=null 
partnerSessionId=null
>17:22:58,609 DEBUG [MessageExchangeImpl] SET MEX 
property activityId = 37
>17:22:58,609 DEBUG [BpelEngineImpl] Routed: svcQname 
{http://wsdl.hello.netbureau.it/}HellonameService --> null
>17:22:58,609 DEBUG 
[ProcessConfImpl] Properties for service {http://wsdl.hello.netbureau.it/}
HellonameService, port HellonamePort: {}
>17:22:58,687 DEBUG 
[BpelRuntimeContextImpl] Creating invocation check event in 180000ms for mexid 
hqejbhcnphr4m7n8cl7ruo
>17:22:58,687 DEBUG [SimpleScheduler] scheduling 
{mexid=hqejbhcnphr4m7n8cl7ruo, inmem=false, pid={http://MyTest.com/Test}Caller-
1, type=INVOKE_CHECK} for Wed Sep 23 17:25:58 CEST 2009
>....
>..
>17:22:58,890 
DEBUG [EndpointReferenceContextImpl] 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="HellonamePort" xmlns:servicens="http:
//wsdl.hello.netbureau.it/">servicens:
HellonameService</ServiceName></Metadata><Address>http://localhost:
8080/HelloWs/Helloname</Address></EndpointReference></service-ref>
>17:22:
58,999 DEBUG [MessageExchangeImpl] GET MEX property org.apache.ode.bpel.
partnerRoleSessionId = null
>17:22:58,999 DEBUG [MessageExchangeImpl] GET MEX 
property org.apache.ode.bpel.myRoleSessionId = null
>17:22:58,999 DEBUG 
[ExternalService] My-Role EPR not specified, SEP will not be used.
>17:22:
58,999 DEBUG [ExternalService] Axis2 sending message to http://localhost:
8080/HelloWs/Helloname using MEX {PartnerRoleMex#hqejbhcnphr4m7n8cl7ruo [PID 
{http://MyTest.com/Test}Caller-1] calling org.apache.ode.bpel.epr.
WSAEndpoint@6fdc0c.hello(...)}
>17:22:59,109 DEBUG [ExternalService] Message: <?
xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http:
//schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><hello xmlns="http://hello.
netbureau.it/">
>                            <myxsd:name xmlns:myxsd="http:
//hello.netbureau.it/">pippo</myxsd:name>
>                        
</hello></soapenv:Body></soapenv:Envelope>
>17:22:59,124 DEBUG 
[PartnerRoleMessageExchangeImpl] replyAsync mex=hqejbhcnphr4m7n8cl7ruo
>17:22:
59,124 DEBUG [BpelRuntimeContextImpl] Setting execution state on instance 251

>17:22:59,218 DEBUG [ExecutionQueueImpl] ReplacmentMap: getReplacement({OScope 
'__PROCESS_SCOPE:Caller' id=3}) = org.apache.ode.bpel.engine.
ReplacementMapImpl$OBaseReplacementImpl@158d74b
>17:22:59,234 DEBUG 
[ExecutionQueueImpl] ReplacmentMap: getReplacement(OSequence#22-sequence-
activity-line-29) = org.apache.ode.bpel.engine.
ReplacementMapImpl$OBaseReplacementImpl@13503e5
>17:22:59,234 DEBUG 
[ExecutionQueueImpl] ReplacmentMap: getReplacement(OProcess#0) = org.apache.ode.
bpel.engine.ReplacementMapImpl$OBaseReplacementImpl@c6b7ee
>17:22:59,296 DEBUG 
[ExecutionQueueImpl] ReplacmentMap: getReplacement({OScope 'InvokeHelloname' 
id=36}) = org.apache.ode.bpel.engine.
ReplacementMapImpl$OBaseReplacementImpl@1db0f40
>17:22:59,296 DEBUG 
[ExecutionQueueImpl] ReplacmentMap: getReplacement({OAssign : Assign2, 
joinCondition=null}) = org.apache.ode.bpel.engine.
ReplacementMapImpl$OBaseReplacementImpl@1e54e00
>17:22:59,296 DEBUG 
[ExecutionQueueImpl] ReplacmentMap: getReplacement(OReply#52-ReplyToClient) = 
org.apache.ode.bpel.engine.ReplacementMapImpl$OBaseReplacementImpl@bbaccd
>17:
22:59,405 DEBUG [ExecutionQueueImpl] ReplacmentMap: getReplacement(OInvoke#37-
InvokeHelloname) = org.apache.ode.bpel.engine.
ReplacementMapImpl$OBaseReplacementImpl@4f7b4c
>17:23:03,234 DEBUG 
[SessionOutHandler] <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><addr:
To xmlns:addr="http://www.w3.org/2005/08/addressing">http://localhost:
8080/HelloWs/Helloname</addr:To><addr:Action xmlns:addr="http://www.w3.
org/2005/08/addressing"></addr:Action><addr:ReplyTo xmlns:addr="http://www.w3.
org/2005/08/addressing"><addr:Address>http://www.w3.
org/2005/08/addressing/anonymous</addr:Address></addr:ReplyTo><addr:MessageID

xmlns:addr="http://www.w3.org/2005/08/addressing">uuid:
hqejbhcnphr4m7n8cl7rur</addr:MessageID></soapenv:Header><soapenv:Body><hello

xmlns="http://hello.netbureau.it/">
>                            <myxsd:name 
xmlns:myxsd="http://hello.netbureau.it/">pippo</myxsd:name>

>                        </hello></soapenv:Body></soapenv:Envelope>
>17:23:
03,796 DEBUG [ExternalService] Service response:
><?xml version='1.0' 
encoding='utf-8'?><S:Envelope xmlns:S="http://schemas.xmlsoap.
org/soap/envelope/"><S:Body><ns2:helloResponse xmlns:ns2="http://hello.
netbureau.it/"><return>Hello null</return></ns2:helloResponse></S:Body></S:
Envelope>
>
>
>---------- Initial Header -----------
>
>>From      : "Wenfeng 
ZHAO" zhaowenfeng@gmail.com
>To          : "user@ode.apache.org" user@ode.
apache.org
>Cc          :
>Date      : Wed, 23 Sep 2009 22:35:02 +0800
>Subject 
: Re: problem invoking a real java webservice
>
>
>
>
>
>
>
>> Hello 
ytrewq2002\,
>>
>> 	Are you sure what the invoked java service returned is 
"Hello pippo" rather than "pipo"?  See the record:
>>
>> 14:28:42,875 DEBUG 
[ASSIGN] ASSIGN Writing variable 'Out' value '<?xml version="1.0" encoding="UTF-
8"?>
>> <message><parameters><helloResponse xmlns="http://hello.netbureau.it/">

>>                             <myxsd:return xmlns:myxsd="http://hello.
netbureau.it/">pippo</myxsd:return>
>>                         
</helloResponse></parameters></message>'
>>
>>
>> Regards,
>> Wenfeng
>>
>>
>> 
=======On 2009-09-23 at 21:23:49 ytrewq2002\ wrote: =======
>>
>> >hi,
>> >
>> 
>i want to call a webservice HelloWs using the <invoke> bpel statment
>> >I 
have a process Caller.bpel that receive a soap message from a client (a coplex 
type with string called name)
>> >It copies this string to input variable and 
invoke the webservices passing this variable. The webservice take
>> >the 
string "name" and return a string "Hello" + name, where name is the content of 
string passed.
>> >The output of invoke is passed to the <reply>
>> >
>> >Why i 
passed name="pippo" and the reply give to me "pippo"?? that is wrong because 
The invoke has to call the
>> >web service and copy the output's variable value 
into the reply variable and the result would be "Hello pippo"
>> >(not pippo!!
**)
>> >why doesn't work?
>> >
>> >this is the bpel process (i attached as 
ascii text file the ode's log)
>> >
>> >help please, give me an advice, thank 
you
>> >
>> >here is the bpel:
>> >
>> >
>> ><process
>> >    name="Caller"
>> 
>    targetNamespace="http://MyTest.com/Test"
>> >    xmlns="http://docs.oasis-
open.org/wsbpel/2.0/process/executable"
>> >    xmlns:xsd="http://www.w3.
org/2001/XMLSchema"
>> >    xmlns:sxt="http://www.sun.com/wsbpel/2.
0/process/executable/SUNExtension/Trace"
>> >    xmlns:sxed="http://www.sun.
com/wsbpel/2.0/process/executable/SUNExtension/Editor"
>> >    xmlns:tns="http:
//MyTest.com/Test"
>> >    xmlns:wshello="http://wsdl.hello.netbureau.it/"
>> 
>    xmlns:myxsd="http://hello.netbureau.it/"
>> >    >
>> >     <!-- wsdl 
Caller + partnerLink defintion-->
>> >    <import namespace="http://MyTest.
com/Test" location="Caller.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"
/>
>> >     <!-- wsdl Ws Helloname + PartenrLinkType definition-->
>> >    
<import namespace="http://wsdl.hello.netbureau.it/" location="Helloname.wsdl" 
importType="http://schemas.xmlsoap.org/wsdl/"/>
>> >    <!-- xsd xhema for 
HellonameWs -->
>> >    <import namespace="http://hello.netbureau.it/" 
location="Helloname.xsd_1.xsd" importType="http://www.w3.org/2001/XMLSchema"/>

>> >    <partnerLinks>
>> >        <partnerLink name="HelloWs" partnerLinkType="
wshello:Helloname" partnerRole="WriteHelloMsgRole"/>
>> >        <partnerLink 
name="Caller" partnerLinkType="tns:Caller" myRole="CallerProvider"/>
>> >    
</partnerLinks>
>> >    <variables>
>> >        <variable name="CallerOut" 
messageType="tns:CallerResponseMessage"/>
>> >        <variable name="HelloOut" 
messageType="wshello:helloResponse"/>
>> >        <variable name="HelloIn" 
messageType="wshello:hello"/>
>> >        <variable name="ProcessIn" 
messageType="tns:CallerRequestMessage"/>
>> >    </variables>
>> >    
<sequence>
>> >        <receive name="ReceiveFromclient"
>> >        
createInstance="yes"
>> >        partnerLink="Caller"
>> >        operation="
process" xmlns:tns="http://MyTest.com/Test"
>> >        portType="tns:Caller"

>> >        variable="ProcessIn"/>
>> >        <assign name="Assign1">
>> 
>            <copy>
>> >                <from>
>> >                    
<literal>
>> >                        <wshello:hello>
>> 
>                            <myxsd:name/>
>> >                        
</wshello:hello>
>> >                    </literal>
>> >                </from>

>> >                <to variable="HelloIn" part="parameters"></to>
>> 
>            </copy>
>> >            <copy>
>> >                
<from>$ProcessIn.payload/tns:input</from>
>> >                <to>$HelloIn.
parameters/myxsd:name</to>
>> >            </copy>
>> >        </assign>
>> 
>        <invoke name="InvokeHelloname"
>> >        partnerLink="HelloWs"
>> 
>        operation="hello"
>> >        portType="wshello:Helloname"
>> >        
inputVariable="HelloIn"
>> >        outputVariable="HelloOut"/>
>> >        
<assign name="Assign2">
>> >        <copy>
>> >                <from>
>> 
>                    <literal>
>> >                        <tns:CallerResponse>

>> >                            <tns:result/>
>> >                        </tns:
CallerResponse>
>> >                    </literal>
>> >                </from>

>> >                <to part="payload" variable="CallerOut"/>
>> >            
</copy>
>> >            <copy>
>> >                <from>$HelloOut.
parameters/myxsd:return</from>
>> >                <to>$CallerOut.payload/tns:
result</to>
>> >            </copy>
>> >        </assign>
>> >        <reply 
name="ReplyToClient" partnerLink="Caller" operation="process" portType="tns:
Caller" variable="CallerOut"/>
>> >    </sequence>
>> >
>> ></process>
>> >
>> 
>
>> >
>> >deploy.xml:
>> >
>> ><deploy xmlns="http://www.apache.
org/ode/schemas/dd/2007/03"
>> >	xmlns:pns="http://MyTest.com/Test"
>> >	xmlns:
wns="http://wsdl.hello.netbureau.it/"
>> >    xmlns:schemaLocation = 
"deploySchema.xsd">
>> >
>> >	<process name="pns:Caller">
>> >		
<active>true</active>
>> >		<provide partnerLink="Caller">
>> >			<service 
name="pns:CallerService" port="CallerPort"/>
>> >		</provide>
>> >        
<invoke partnerLink="HelloWs">
>> >            <service name="wns:
HellonameService" port="HellonamePort"/>
>> >        </invoke>
>> >	</process>

>> ></deploy>
>>
>> = = = = = = = = = = = = = = = = = = = =
>> ZHAO Wenfeng 
(???)
>> Ph.D. Candidate
>> http://www.bupt.edu.cn
>>
>>
>
>



Mime
View raw message