ws-soap-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Pedder" <>
Subject Re: SOAP Help Building Request With Nested Tags
Date Tue, 13 Jan 2004 12:13:50 GMT

Thanks alot for your response. 

Let me ask this. I still don't understand how the tags <> <> are created for WSCredentials
Do they automatically get created based on the class name  and members or would I need to
do something
like this within the WSCredentials class?

public class _WSCredentials {

    public string UserName 
    public string Password;

    public void setUsername( String username ) {
              UserName = "<Username>" +username +"</Username>;

   public void setPassword( String password ) {
              UserName = "<Password>" +password +"</Password>;



  ----- Original Message ----- 
  From: Greg Pedder 
  Sent: Sunday, January 11, 2004 11:43 PM
  Subject: SOAP Help Building Request With Nested Tags

  I have been struggling with Apache SOAP to try and build a request. Specifically, I don't
understand how to embed these elements into the Header and Body sections. More specifically,
how to do this nested tags. 
  Thanks for any advice you can provide.

  Below, is a sample of the request I need to send to the server. 

  <SOAP-ENV:Envelope xmlns:SOAP-ENC="" xmlns:SOAP-ENV=""
xmlns:xsd="" xmlns:xsi="">
  <ContinueHeader xmlns="">
  <subscribe xmlns="http://xxxx/xxxx/xxxx/service">

  I can add the <UserName>xxxxxxx</UserName> <Password>xxxxxxxx</Password>
to the body of the request using:

  Vector parms = new Vector();
  parms.addElement(new Parameter("UserName", String.class, username, null));
  parms.addElement(new Parameter("Token", String.class, password, null));

  I just don't know how to add those tags within the <comHdr> and <WSCredentials>

View raw message