axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashutosh Shahi (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Commented: (AXIS-1817) MessageElement.getValue doesn't do XML decoding
Date Tue, 15 Feb 2005 07:12:11 GMT
     [ http://issues.apache.org/jira/browse/AXIS-1817?page=comments#action_59185 ]
     
Ashutosh Shahi commented on AXIS-1817:
--------------------------------------

While you are at this one, can you also look at AXIS-1417 which also is related to special
characters. I have already sumitted a patch for that one.
Ashutosh

> MessageElement.getValue doesn't do XML decoding
> -----------------------------------------------
>
>          Key: AXIS-1817
>          URL: http://issues.apache.org/jira/browse/AXIS-1817
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: 1.2RC2
>  Environment: XP / JDK 1.4.x / 
>     Reporter: Simon Fell
>     Assignee: Venkat Reddy

>
> This actually with the 1.2 RC3
> If the WSDL contains a <any> element, this is mapped to a MessageElement [], in
Axis 1.1 calling getValue on one of these MessageElement's would return the contents of the
element post XML processing, in Axis 1.2 RC3 it seems to be returning the raw data, e.g. if
the response element is
> <elem>A&gt;B</elem>
> In Axis 1.1, getValue() returns "A>B" but Axis 1.2 returns "A&gt;B"
> There's a test service at http://soap.4s4c.com/dotnet/any.wsdl
> here's some client code to call it.
> 		AnyServiceLocator loc = new AnyServiceLocator();
> 		Soap svc = loc.getSoap();
> 				
> 		QueryResult qr = svc.query("blah");
> 		
> 		for (int i =0; i < qr.getRecords().length; i++ ) {
> 			SObject s = qr.getRecords(i);
> 			MessageElement [] e= s.get_any();
> 			System.out.println("MessageElement array size is " + e.length);
> 			for (int j = 0; j < e.length; j++ ){
> 				System.out.print(" " + e[j].getValue());
> 			}
> 			System.out.println("");
> 		}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message