I updated the user guide with the way this should be done. Until Chatra publishes the new one, you can do the following.
Put the addressing-<version>.mar to your classpath and you are done. -- Chinthaka Michele Mazzucco 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 > >
signature.asc
Description: OpenPGP digital signature