hi, For the async calls to work WS-Addressing needs to be there. Basically you have to have the addressing module in your modules directory (or in your class path if you don't have a repo) to be engaged.
Ajith On 7/7/06, Jean-Michel PATER <[EMAIL PROTECTED]> wrote:
Hi all, I'm trying to call a web service with the Non-Blocking API My code is : > OMElement payload = doc; > Options options = new Options(); > options.setTo(targetEPR); > options.setAction("printHello"); > options.setTransportInProtocol(Constants.TRANSPORT_HTTP); > options.setUseSeparateListener(true); > > > //Callback to handle the response > org.apache.axis2.client.async.Callback callback = > new org.apache.axis2.client.async.Callback() { > public void onComplete(AsyncResult result) > { > try { > > > System.out.println(result.getResponseEnvelope()); > } > catch(Exception e) { > e.printStackTrace(); > } > } > > public void onError(Exception e) { > e.printStackTrace(); > } > }; > > //Non-Blocking Invocation > sender = new ServiceClient(); > sender.setOptions(options); > sender.engageModule(new QName(Constants.MODULE_ADDRESSING)); > sender.sendReceiveNonBlocking(payload, callback); And I get the following exception : > org.apache.axis2.AxisFault: Module not found > at > org.apache.axis2.description.AxisService.engageModule(AxisService.java:427) > at > org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:270) Whats' wrong ? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Ajith Ranabahu --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]