You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Joost Fleuren <jo...@fleuren.org> on 2001/11/22 17:38:56 UTC
I can't seem to quit this list!!!!!????
Can anyone please telle me how I unsubscribe from this mailinglist????
For some reason it is quite complicated with this specific mailinglist...
I just can't find it out.
Regards,
Joost.
> -----Oorspronkelijk bericht-----
> Van: Tim Wei [mailto:timwei@yahoo.com]
> Verzonden: Thursday, November 22, 2001 5:27 PM
> Aan: soap-user@xml.apache.org
> CC: brian.viveiros@telus.com; chris.glynne@telus.com
> Onderwerp: Soap element order with Appache Soap for Java Package
>
>
> 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