axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "insoo lee" <in...@netwizers.com>
Subject preserving angle brackets in returning String value
Date Tue, 27 Apr 2004 20:05:58 GMT



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>


 

 

Mime
View raw message