-
Dec 9th, 2008, 04:42 AM
#1
Simple Echo client with multiple arguments to server
Hi All,
Am a newbie in spring web service. Am able to run your echo example successfully. My problem is, how can i send more than one arguments in echoRequestElement ? ie i need to send username and password to the server app and if it authenticated the do something. But am able to send only one arg.
private SOAPMessage createEchoRequest() throws SOAPException {
SOAPMessage message = messageFactory.createMessage();
SOAPEnvelope envelope = message.getSOAPPart().getEnvelope();
Name echoRequestName = envelope.createName("echoRequest", PREFIX, NAMESPACE_URI);
SOAPBodyElement echoRequestElement = message.getSOAPBody().addBodyElement(echoRequestNa me);
echoRequestElement.setValue("username");
return message;
}
How can i send username and password from client app to the server app?
Thanks in advance,
Vipin
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules