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

Reply via email to