axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thushantha De Alwis" <r...@opensource.lk>
Subject [Axis2] Writing Axis2 Client
Date Fri, 24 Feb 2006 10:30:29 GMT
Hi All

When I tried to write a client to invoke axis2 as follows.

try{

            EndpointReference targetEPR = new
EndpointReference("http://localhost:8080/axis2/services/echo/echo");
            Options options = new Options();
            options.setTo(targetEPR);
            options.setTransportInProtocol(Constants.TRANSPORT_HTTP);

            options.setUseSeparateListener(false);

            ServiceClient serviceClient = new ServiceClient();

            serviceClient.setOptions(options);


            OMFactory fac = OMAbstractFactory.getOMFactory();


            OMNamespace omNs =
fac.createOMNamespace("http://www.developerworks.com/example",
"example");
            OMElement payload = fac.createOMElement("name", omNs);
            payload.setText("IBM");

            OMElement result  = serviceClient.sendReceive(payload);
            System.out.println("After Send");
            StringWriter writer = new StringWriter();
            result.serialize(writer);
            writer.flush();


         }catch(Exception error){
            error.printStackTrace();
        }


I got the following error

 Module validation failed  module.xml not found  for the module :  
addressing; nested exception is:
	org.apache.axis2.deployment.DeploymentException: module.xml not found 
for the module :   addressing


Can Some one help me.

Best Regards
Thushantha





Mime
View raw message