[jboss-user] [JBossWS] - Encoding problem in jbossws-1.2.0

fheldt do-not-reply at jboss.com
Tue Mar 6 10:29:20 EST 2007


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?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025432#4025432

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025432




More information about the jboss-user mailing list