3 Replies Latest reply on Mar 8, 2007 5:36 AM by fheldt

    Encoding problem in jbossws-1.2.0

    fheldt

      Hi folks,

      i gave jboss-2.4.0.CR1 with jbossws-1.2.0 a try and it started without any problems. Then i build a simple Webservice SB

      @Remote
      public interface HelloWS
      {
       public String hello(String s);
      }
      


      @Stateless
      @WebService(
       name="Hello",
       serviceName="HelloService"
      )
      @SOAPBinding(
       style=SOAPBinding.Style.RPC,
       use=SOAPBinding.Use.LITERAL
      )
      public class HelloEJB implements HelloWS
      {
       @WebMethod
       public String hello(@WebParam(name="name") String s) {
       return "Hallöchen " + s;
       }
      }
      


      After deploying (The WSDL looks fine under http://127.0.0.1:8080/HelloService/HelloEJB?wsdl), i can call the hello method from eg a .NET client or the "Web Services Explorer" in eclipse and get the following result:
      calling hello("Müller"):
      
      return (string): Hallöchen Müller
      


      As you can see, there's a problem with utf-8 encoding.

      Did i miss something or is this a known problem?