You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by insoo lee <in...@netwizers.com> on 2004/04/27 22:05:58 UTC
preserving angle brackets in returning String value
Hello,
I'm returning String from axis service, but this String value has angle
brackets
e.g)
StringBuffer sb = new StringBuffer( "<Response>" );
sb.append( "<ReturnCode>" );
sb.append( returnCode );
sb.append( "</ReturnCode>" );
sb.append( "<Description>" );
sb.append( message );
sb.append( "</Description>" );
sb.append( "</Response>" );
return sb.toString();
However, on a client side, this String comes back with > and <...
anyway to preserve angle brackets?
Thanks
e.g)
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:processMessageResponse
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="http://www.gs.com/am/funds/ws/wss4j">
<processMessageReturn
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="soapenc:string">
<Response><ReturnCode>1</ReturnCode><Description>SUC
CESSFULLY PROCESSED </Description></Response>
</processMessageReturn>
</ns1:processMessageResponse>
</soapenv:Body>