You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Todd Chisholm <to...@gmail.com> on 2011/07/29 04:31:20 UTC
Setting action for ServiceClient Receiver in Async Client?
Hi all,
I'm trying to develop an Axis2 client that calls an asynchronous BPEL
process. There is a problem with the callback receiver though:
[java] WARN [org.apache.axis2.addressing.AddressingFaultsHelper]
triggerActionNotSupportedFault: messageContext: [MessageContext:
logID=urn:uuid:8A82155AEF614372A21311896082485] problemAction:
AsyncEchoLower/onResult
[java] ERROR [org.apache.axis2.engine.AxisEngine] The [action] cannot
be processed at the receiver.
The BPEL process needs to be able to use the 'AsyncEchoLower/onResult'
action (since other BPEL processes also use this process). The receiver
seems to default to 'anonOutInOp' for the needed action. Is there a way to
set the action on the receiver? Here's the meat of the call (pretty
standard stuff):
Options options = new Options();
options.setTo(targetEPR);
options.setAction("initiate");
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
options.setUseSeparateListener(true);
ServiceClient sender = new ServiceClient();
sender.engageModule(Constants.MODULE_ADDRESSING);
sender.setOptions(options);
sender.sendReceiveNonBlocking(payload, callback);
Thanks for any help!
Todd