Hi Michele,
I had the same problem. You can follow the postings titled
"[Axis2][0.95] How can my service make call to another service? (More
details)".
P.S.: I haven't tried yet :)
Regards,
Ali Sadik Kumlali
--- Michele Mazzucco <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm using Axis2 1.0-RC3 and I'm having some problems with the
> addressing
> module (the module is engaged on the server side).
>
>
> Options options = new Options();
> options.setTo(new EndpointReference(TARGET_EPR));
> options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
> options.setAction("urn:isBookAvailable");
> options.setUseSeparateListener(true);
>
> ServiceClient sender = new ServiceClient();
> sender.setOptions(options);
>
> ConfigurationContext context =
> ConfigurationContextFactory.createConfigurationContextFromFileSystem(
> "D:/Programs/apache-tomcat-5.5.15/webapps/axis2/WEB-INF/",
> null);
>
>
> // Callback code omitted
>
> sender.sendReceiveNonBlocking(payload, callback);
>
>
> produces:
> Exception in thread "main" org.apache.axis2.AxisFault: In order to
> use
> two transport channels, WS-Addressing module must be engaged
> at
>
org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:80)
> at
>
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:243)
> at
>
org.apache.axis2.client.ServiceClient.sendReceiveNonBlocking(ServiceClient.java:483)
> at
>
org.apache.axis2.client.ServiceClient.sendReceiveNonBlocking(ServiceClient.java:464)
>
>
>
> while if I add
>
> sender.engageModule(new QName(Constants.MODULE_ADDRESSING));
>
>
> I get:
>
> Exception in thread "main" org.apache.axis2.AxisFault: Module not
> found
> at
>
org.apache.axis2.description.AxisService.engageModule(AxisService.java:396)
> at
>
org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:279)
>
>
> Any suggest?
>
>
> Michele
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com