Announcement Announcement Module
No announcement yet.
Simple Echo client with multiple arguments to server Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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);
    return message;

    How can i send username and password from client app to the server app?
    Thanks in advance,