Hi Thushantha,

are you using 0.94 release? If yes then create a
'.axis2' directory inside your home folder and copy
the addressing.mar to a subdirectory called 'modules'.

Ted


--- Thushantha De Alwis <[EMAIL PROTECTED]> schrieb:

> 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
> 
> 
> 
> 
> 



        

        
                
___________________________________________________________ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de

Reply via email to