3 Replies Latest reply on Feb 28, 2011 10:33 AM by davsclaus

    JAX-WS String return types

    rkozura

      Hello everyone.  I have a simple JAX-WS web service:

       

      @WebService(endpointInterface="com.example.SimpleSOAP")

      public class SimpleSOAPImpl implements SimpleSOAP

      {

           public String getMessage() {

                   return "<";

           }

      }

       

      When invoked, this will always return "&lt;".

       

      This is an escaped special character "<".  The String "<" changes to "&lt;" when it reaches the client as a SOAP response.

       

      Is there an easy fix for this?

       

      Thanks.