axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thushantha De Alwis" <>
Subject [Axis2] Writing Axis2 Client
Date Fri, 24 Feb 2006 05:40:44 GMT
Hi All

I have successfully deployed a WebService called "Echo"

So I want to invoke that web service. For that I tried to write a client.
When writing it I used the following code
sample got from 0.93 release.

 EndpointReference targetEPR =3D new EndpointReference(

 // Make the request message
 OMFactory fac =3D OMAbstractFactory.getOMFactory();
 OMNamespace omNs =3D fac.createOMNamespace(
     "", "example");
 OMElement payload =3D fac.createOMElement("subscribe", omNs);

 // Send the request
 MessageSender msgSender =3D new MessageSender();
 msgSender.send("subscribe", payload);
 }catch (AxisFault axisFault) {

But Messagesender was depricated.

Is there any other way to write a client to invike the service. I went
through 0.94 release document also. If some
one have very simple code for cient to invike a service please send me.

Best Regards

View raw message