Hi, 

This my Password.java code:

public class Password
{
  private String      value;
  private String      type;

  public Password()
  {
  }

  public Password(String value, String type)
  {
    this.value = value;
    this.type = type;
  }

  public void setValue(String value)
  {
    this.value = value;
  }

  public String getValue()
  {
    return value;
  }

  public void setType(String type)
  {
    this.type = type;
  }

  public String getType()
  {
    return type;
  }

  public String toString()
  {
    return value + " \n" +
           type;
  }
}

And this is the request string I get with Appache Soap for Java
Package:

POST /RegisterUser HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: 672
SOAPAction: ""

<SOAP-ENV:Envelope 
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
    xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"; 
    xmlns:xsd="http://www.w3.org/1999/XMLSchema";>
<SOAP-ENV:Body>
<ns1:RegisterUser 
    xmlns:ns1="urn:RegistrationService" 
   
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
<user xsi:type="ns1:user">
<password xsi:type="ns1:password">
<type xsi:type="xsd:string">NONE</type>
<value xsi:type="xsd:string">timpass</value>
</password>
<name xsi:type="xsd:string">timuser</name>
<domain xsi:type="xsd:string">localhost</domain>
</user>
</ns1:RegisterUser>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

The problem is that it does not matter how I manipulate the
Password.java code, I can not changed the element order of 

<type xsi:type="xsd:string">NONE</type>
<value xsi:type="xsd:string">timpass</value>

I want it other way round like this:

<value xsi:type="xsd:string">timpass</value>
<type xsi:type="xsd:string">NONE</type>


How can solve this problem? Please help.

Thanks.

Tim




=====
Tim's home page: 
http://www.geocities.com/timwei

__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

Reply via email to