ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthieu Riou" <matth...@offthelip.org>
Subject Re: wsa:ActionNotSupported reply when passing session
Date Thu, 12 Jun 2008 17:33:17 GMT
On Thu, Jun 12, 2008 at 8:29 AM, "Christoph M. Pflügler" <
christoph.pfluegler@heigl-service.de> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Update:
>
> I added wsaw:Action attributes to the wsdl:input and wsdl:output tags in
> wsdl:operation (see wsdl-snippet below). Nevertheless I get the same
> error. ODE is calling the WebService with an empty wsa:Action which
> results in a fault.
>
> The only difference: If I take exactly the same message as ODE uses and
> add the wsa:Action's name by hand, I get the desired response now.
>
> Any ideas what could be the problem? Where does ODE get the information
> about wsa:Actions from??
>

Checking the code and the specs, it seems we're doing the right thing and so
the explicit values you provide should get picked up. I'll try to add a
testcase t make sure we don't have a small bug there, can you check on your
side and confirm that the wsa:Action is still really empty?

I don't think we can disable SOAP addressing on a per service basis yet,
I'll see with Alexis if he can confirm. But you can deactivate it for the
whole engine by editing conf/axis2.xml. Just comment out the
SessionOutHandler in the ProcessHeader phase of OutFlow.

Cheers,
Matthieu


>
> If there is a possibility to disable the Addressing feature (as
> indicated by a former response) I would be glad to know how.
>
> Thanks,
> Christoph
>
> ### WSDL ####
>
> ~ <wsdl:portType name="quotationPT">
> ~    <wsdl:operation name="getQuotation">
> ~      <wsdl:input message="common_msg:requestForQuotation"
> wsaw:Action="quotationPT_getQuotationInput"/>
> ~      <wsdl:output message="common_msg:quotation"
> wsaw:Action="quotationPT_getQuotationInput"/>
> ~    </wsdl:operation>
> ~  </wsdl:portType>
>
>
>
> Christoph M. Pflügler schrieb:
>
> | Hi,
> |
> | yes I can reproduce the problem sending exactly the message ODE sends.
> |
> | The soap:action in my service WSDL is empty:
> | ...
> | ~ <wsdl:binding name="quotationBinding" type="common:quotationPT">
> | ~    <soap:binding style="document"
> | transport="http://schemas.xmlsoap.org/soap/http"/>
> | ~    <wsdl:operation name="getQuotation">
> |
> | ~      <soap:operation soapAction="" style="document"/>
> |
> | ~      <wsdl:input>
> | ~        <soap:body use="literal" namespace="orchestration:test"/>
> | ~      </wsdl:input>
> | ...
> |
> | Greets,
> | Christoph
> |
> | Matthieu Riou schrieb:
> | | On Wed, Jun 11, 2008 at 2:24 AM, "Christoph M. Pflügler" <
> | | christoph.pfluegler@heigl-service.de> wrote:
> | |
> | | Hi,
> | |
> | | I'm actually facing an error (see error message below) when calling an
> | | external Service from a BPEL process.
> | |
> | | The call chain is:
> | |
> | | tcpmon -> bpel1 -> bpel2 -> service
> | |
> | | All processes/services work when tested seperatly, but they throw the
> | | error below when tested together.
> | |
> | | Any ideas how to solve the problem?
> | |
> | |
> | |> This sounds like the empty wsa:Action that we send is not accepted by
> | the
> | |> service. Can you try to invoke it with the exact same message ODE is
> | sending
> | |> to see if you can reproduce? Also can you check the soap:action
> | defined in
> | |> your service WSDL and see what it is?
> | |
> | |> Thanks,
> | |> Matthieu
> | |
> | |
> | | If more source is needed, please tell me! To keep things short for now,
> | | I only post the things I consider relevant.
> | |
> | | Thanks for your help,
> | | Christoph
> | |
> | | ##### ERROR ######
> | |
> | | 10:56:08 :: DEBUG - GeronimoLog.debug(66) |
> | | org.apache.ode.axis2.SoapExternalService$CachedOptions$1@c4ef1 has
> been
> | | modified
> | | 10:56:08 :: DEBUG - GeronimoLog.debug(66) | Translating IL Properties
> | | for Axis2
> | | 10:56:08 :: DEBUG - GeronimoLog.debug(66) | replyAsync
> | | mex=hqejbhcnphr3cfnmm3enww
> | | 10:56:08 :: DEBUG - GeronimoLog.debug(66) | Setting execution state on
> | | instance 2602
> | | 10:56:08 :: DEBUG - GeronimoLog.debug(66) | Sending stateful TO epr in
> | | message header using session null
> | | 10:56:08 :: DEBUG - GeronimoLog.debug(66) | Sending a message
> containing
> | | wsa endpoints in headers for session passing.
> | | 10:56:08 :: DEBUG - GeronimoLog.debug(66) | <?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://192.168.1.101:8080/axis2/services/quotationService
> | | </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:hqejbhcnphr3cfnmm3enwx</addr:MessageID></soapenv:Header><soapenv:Body><RequestForQuotationMSG
>
> |
> | | xmlns="orchestration:test:docs">
> | | ~            <RequestForQuotation
> | |
> |
> xmlns="urn:oasis:names:specification:ubl:schema:xsd:RequestForQuotation-2"
> | |
> | |
> |
>
> xmlns:urn="urn:oasis:names:specification:ubl:schema:xsd:RequestForQuotation-2">
>
> |
> | | ~               <CustomizationID
> | |
> | |
> |
>
> xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
>
> |
> | |
> | |
> |
>
> xmlns:urn1="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
>
> |
> | | schemeAgencyID="LSPI" schemeAgencyName="Lehrstuhl fuer PI"
> | | schemeVersionID="33ff5" />
> | | ~               <UUID
> | |
> | |
> |
>
> xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
>
> |
> | |
> | |
> |
>
> xmlns:urn1="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
>
> |
> | | schemeAgencyID="kkk" />
> | | ~               <RequestForQuotationLine
> | |
> | |
> |
>
> xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
>
> |
> | |
> | |
> |
>
> xmlns:urn1="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2">
>
> |
> | | ~                  <LineItem>
> | | ~                     <ID
> | |
> | |
> |
>
> xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
>
> |
> | |
> | |
> |
>
> xmlns:urn2="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">8888</ID>
>
> |
> | | ~                     <MinimumQuantity
> | |
> | |
> |
>
> xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
>
> |
> | |
> | |
> |
>
> xmlns:urn2="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
>
> |
> | | unitCode="A82">500</MinimumQuantity>
> | | ~                     <Item>
> | | ~                        <Name
> | |
> | |
> |
>
> xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
>
> |
> | |
> | |
> |
>
> xmlns:urn2="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">Getraenkepulver</Name>
>
> |
> | | ~                        <BrandName
> | |
> | |
> |
>
> xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
>
> |
> | |
> | |
> |
>
> xmlns:urn2="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">Coca
>
> |
> | | Cola</BrandName>
> | | ~                     </Item>
> | | ~                  </LineItem>
> | | ~               </RequestForQuotationLine>
> | | ~            </RequestForQuotation>
> | | ~         </RequestForQuotationMSG></soapenv:Body></soapenv:Envelope>
> | | 10:56:08 :: DEBUG - GeronimoLog.debug(66) | Found a header in incoming
> | | message, checking if there are endpoints there.
> | | 10:56:08 :: DEBUG - GeronimoLog.debug(66) | Service response:
> | | <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope
> | |
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header
> | | xmlns:wsa="http://www.w3.org/2005/08/addressing"><wsa:Action>
> | | http://www.w3.org/2005/08/addressing/fault
> | | </wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault
> | | xmlns:wsa="http://www.w3.org/2005/08/addressing
> | | "><faultcode>wsa:ActionNotSupported</faultcode><faultstring>The
> | | [action] cannot be processed at the receiver.</faultstring><detail
> | | /></soapenv:Fault></soapenv:Body></soapenv:Envelope>
> | | 10:56:08 :: DEBUG - GeronimoLog.debug(66) | Received response for MEX
> | | {PartnerRoleMex#hqejbhcnphr3cfnmm3enww [PID
> | | {orchestration:test:seller:bpel}seller-21] calling
> | null.getQuotation(...)}
> | | 10:56:08 :: DEBUG - GeronimoLog.debug(66) | Reply is a fault, found
> | | type: null
> | | 10:56:08 :: WARN - GeronimoLog.warn(92) | Fault response:
> | | faultType=(unkown)
> | | <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope
> | |
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header
> | | xmlns:wsa="http://www.w3.org/2005/08/addressing"><wsa:Action>
> | | http://www.w3.org/2005/08/addressing/fault
> | | </wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault
> | | xmlns:wsa="http://www.w3.org/2005/08/addressing
> | | "><faultcode>wsa:ActionNotSupported</faultcode><faultstring>The
> | | [action] cannot be processed at the receiver.</faultstring><detail
> | | /></soapenv:Fault></soapenv:Body></soapenv:Envelope>
> | | 10:56:08 :: DEBUG - GeronimoLog.debug(66) | replyWithFailure
> | | mex=hqejbhcnphr3cfnmm3enww failureType=OTHER description=
> details=[Body:
> | | null]
> | | 10:56:08 :: DEBUG - GeronimoLog.debug(66) | create work event for
> | | mex=hqejbhcnphr3cfnmm3enww
> | | 10:56:08 :: DEBUG - GeronimoLog.debug(66) |
> Thread[ODEServer-22,5,main]:
> | | lock(iid=2602, time=1MICROSECONDS)
> | | 10:56:08 :: DEBUG - GeronimoLog.debug(66) |
> Thread[ODEServer-22,5,main]:
> | | lock(iid=2602, time=1MICROSECONDS)-->GRANTED
> | | 10:56:08 :: DEBUG - GeronimoLog.debug(66) | >>
> | | handleWorkEvent(jobData={type=INVOKE_RESPONSE,
> | | mexid=hqejbhcnphr3cfnmm3enww, channel=17, iid=2602})
> | | 10:56:08 :: DEBUG - GeronimoLog.debug(66) | BpelRuntimeContextImpl
> | | created for instance 2602. INDEXED
> | | STATE={OInvoke#19-invoke-activity-line-54::9=[ACTIVITYGUARD(...)],
> | | {OScope '__PROCESS_SCOPE:seller' id=3}::0=[ACTIVE(...)],
> | | OInvoke#19-invoke-activity-line-54::10=[INVOKE(...)], {OScope
> | | 'invoke-implicit-scope-line-54' id=18}::7=[ACTIVITYGUARD(...)],
> | |
> | |
> |
>
> OSequence#14-sequence-activity-line-45::2=[SEQUENCE(self=(OSequence#14-sequence-activity-line-45,TerminationChannel#3,ParentScopeChannel#5),
>
> |
> | | linkframe=org.apache.ode.bpel.runtime.LinkFrame@caa79c,
> | | remaining=[{OScope 'invoke-implicit-scope-line-54' id=18},
> | | OReply#25-reply-activity-line-59])], {OScope
> | | 'invoke-implicit-scope-line-54' id=18}::8=[SCOPE(...)],
> | | OSequence#14-sequence-activity-line-45::1=[ACTIVITYGUARD(...)], {OScope
> | | '__PROCESS_SCOPE:seller' id=3}::0=[SCOPE(...)], {OScope
> | | 'invoke-implicit-scope-line-54' id=18}::8=[ACTIVE(...)]}
> | | 10:56:08 :: DEBUG - GeronimoLog.debug(66) | InvokeResponse event for
> iid
> | | 2602
> | | 10:56:08 :: DEBUG - GeronimoLog.debug(66) | Invoking message response
> | | for mexid hqejbhcnphr3cfnmm3enww and channel 17
> | | 10:56:08 :: DEBUG - GeronimoLog.debug(66) | Triggering response
> | | 10:56:08 :: ERROR - GeronimoLog.error(104) | Failure during invoke:
> | | 10:56:08 :: INFO - GeronimoLog.info(79) | ActivityRecovery: Registering
> | | activity 9, failure reason:  on channel 18
> | | 10:56:08 :: DEBUG - GeronimoLog.debug(66) | Setting execution state on
> | | instance 2602
> | | 10:56:08 :: DEBUG - GeronimoLog.debug(66) |
> Thread[ODEServer-22,5,main]:
> | | unlock(iid=2602)
> | |
> | |
> | | ##### service WSDL #####
> | |
> | | <?xml version="1.0" encoding="UTF-8"?>
> | | <wsdl:definitions targetNamespace="orchestration:test:quotationService"
> | |
> | |
> |
>
> xmlns:BD_3A1_Quote="urn:oasis:names:specification:ubl:schema:xsd:Quotation-2"
>
> |
> | |
> | | xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
> | | xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
> | | xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
> | | xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
> | | xmlns:pos="orchestration:test:quotationService"
> | | xmlns:common="orchestration:test:seller_common"
> | | xmlns:docs="orchestration:test:docs"
> | | xmlns:xs="http://www.w3.org/2001/XMLSchema"
> | |
> | |
> |
>
> xmlns:BD_3A1_RequestQuote="urn:oasis:names:specification:ubl:schema:xsd:RequestForQuotation-2"
>
> |
> | |
> | |
> | xmlns:BD_3A10_NotifyOfQuoteAck="
> http://www.example.org/MY_NotifyOfQuoteAck
> | | "
> | | xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> | | xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
> | |
> | | ~  <wsdl:import location="seller_common.wsdl"
> | | namespace="orchestration:test:seller_common"></wsdl:import>
> | |
> | | ~  <wsdl:binding name="quotationBinding" type="common:quotationPT">
> | | ~    <soap:binding style="document"
> | | transport="http://schemas.xmlsoap.org/soap/http"/>
> | | ~    <wsdl:operation name="getQuotation">
> | | ~      <soap:operation soapAction="" style="document"/>
> | | ~      <wsdl:input>
> | | ~        <soap:body use="literal" namespace="orchestration:test"/>
> | | ~      </wsdl:input>
> | | ~      <wsdl:output>
> | | ~        <soap:body use="literal" namespace="orchestration:test"/>
> | | ~      </wsdl:output>
> | | ~    </wsdl:operation>
> | | ~  </wsdl:binding>
> | | ~  <wsdl:service name="quotationService">
> | | ~    <wsdl:port name="quotationPort" binding="pos:quotationBinding">
> | | ~      <soap:address
> | | location="http://192.168.1.101:8080/axis2/services/quotationService"/>
> | | ~    </wsdl:port>
> | | ~  </wsdl:service>
> | | ~  </wsdl:definitions>
> | |
> | |
> | | ##### seller_common WSDL #####
> | |
> | | <?xml version="1.0" encoding="UTF-8"?>
> | | <wsdl:definitions targetNamespace="orchestration:test:seller_common"
> | | xmlns:common_msg="orchestration:test:seller_common_msgs"
> | |
> | |
> |
>
> xmlns:BD_3A1_Quote="urn:oasis:names:specification:ubl:schema:xsd:Quotation-2"
>
> |
> | |
> | | xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
> | | xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
> | | xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
> | | xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
> | | xmlns:pos="orchestration:test:seller_common"
> | | xmlns:xs="http://www.w3.org/2001/XMLSchema"
> | | xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
> | |
> | |
> |
>
> xmlns:BD_3A1_RequestQuote="urn:oasis:names:specification:ubl:schema:xsd:RequestForQuotation-2"
>
> |
> | |
> | |
> | xmlns:BD_3A10_NotifyOfQuoteAck="
> http://www.example.org/MY_NotifyOfQuoteAck
> | | "
> | | xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> | | xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
> | |
> | | <wsdl:import location="seller_common_msgs.wsdl"
> | | namespace="orchestration:test:seller_common_msgs"></wsdl:import>
> | |
> | |
> | | ~  <wsdl:portType name="quotationPT">
> | | ~    <wsdl:operation name="getQuotation">
> | | ~      <wsdl:input message="common_msg:requestForQuotation">
> | | ~    </wsdl:input>
> | | ~      <wsdl:output message="common_msg:quotation">
> | | ~    </wsdl:output>
> | | ~    </wsdl:operation>
> | | ~  </wsdl:portType>
> | |
> | | <plnk:partnerLinkType name="quotationLT">
> | |        <plnk:role name="quoter" portType="pos:quotationPT" />
> | | </plnk:partnerLinkType>
> | |
> | | </wsdl:definitions>
> | |>
> |
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFIUUD00Do4wUHmzBsRAk8MAJ4oqX/6ydOG2wKA34RKPX3h3ybU5QCguNR2
> NyDplF7+werF3LZzpNG7VPw=
> =e+BK
> -----END PGP SIGNATURE-----
>

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