Thankyou for the resolution.
I will try with the SAAJ and get back with the result.
Thanking you,
Vittal
--- Joe Nathan <[EMAIL PROTECTED]> wrote:
>
> Use SAAJ for client side. You do not need stub in
> SAAJ!
> The following is a fully-tested code example. You
> can copy it and
> change for your purpose;
> =======================
> SOAPConnectionFactory connectionFactory =
> SOAPConnectionFactory.newInstance();
> SOAPConnection connection =
> connectionFactory.createConnection();
>
> MessageFactory mf = MessageFactory.newInstance();
> SOAPMessage smsg = mf.createMessage();
> SOAPBody body = smsg.getSOAPBody();
>
> QName bodyName = new
> QName("http://ws.apache.org/axis2/xsd",
> "YourServiceMethodName", "m");
> SOAPBodyElement bodyElement =
> body.addBodyElement(bodyName);
>
> // build arguments: three in this case;
> QName name = new QName("inputarg");
> SOAPElement symbol =
> bodyElement.addChildElement(name);
> symbol.addTextNode("your input data");
>
> name = new QName("user");
> symbol = bodyElement.addChildElement(name);
> symbol.addTextNode("your userid");
>
> name = new QName("password");
> symbol = bodyElement.addChildElement(name);
> symbol.addTextNode("blashblah");
>
> // call the service;
> URL endpoint = new
>
URL("http://localhost/axis2/services/YOURsoapServiceName");
>
> SOAPMessage sresponse = connection.call(smsg,
> endpoint);
> connection.close();
>
> // Get the return text;
> SOAPBody soapBody = sresponse.getSOAPBody();
> SOAPElement node =
>
(SOAPElement)soapBody.getFirstChild().getFirstChild();
> String msg = node.getValue();
>
> --
> View this message in context:
>
http://www.nabble.com/-Axis2-How-to-invoke-web-service-from-another-tf4055013.html#a11530555
> Sent from the Axis - User mailing list archive at
> Nabble.com.
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
____________________________________________________________________________________
Park yourself in front of a world of choices in alternative vehicles. Visit the
Yahoo! Auto Green Center.
http://autos.yahoo.com/green_center/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]