5 Replies Latest reply on Jul 26, 2007 9:25 AM by dammog

    charset encoding problem with the jsr181pojo sample : echo(

    smalbequi

      Hello,

      1 - I have deployed jaxws-samples-jsr181pojo.war in a jboss-4.0.5.GA + jbossws-1.2.0.GA container

      2 - I have generated ws client with the wsconsume ant task

      <wsconsume wsdl="http://localhost:8080/jaxws-samples-jsr181pojo?wsdl" package="com.test"
       sourcedestdir="${src-gen.dir}" keep="true" verbose="true"/>
      

      3 - I test the web service with the code below
      System.out.println(new TestService().getEndpointInterfacePort().echo("Français"));
      

      I get: Fran�§ais
      

      Any idea ?
      Thanks in advance

      LOG :
      578 [main] DEBUG javax.xml.soap.FactoryLoader - Load from Service API META-INF/services/javax.xml.ws.spi.Provider: org.jboss.ws.core.jaxws.spi.ProviderImpl
      1047 [main] TRACE jbossws.SOAPMessage - Remoting meta data: {HEADER={SOAPAction="", Content-Type=text/xml; charset=UTF-8}, NoThrowOnError=true}
      1047 [main] TRACE jbossws.SOAPMessage - Outgoing SOAPMessage
      <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
       <env:Header/>
       <env:Body>
       <ns1:echo xmlns:ns1='http://org.jboss.ws/samples/jsr181pojo'>
       <String_1>Français</String_1>
       </ns1:echo>
       </env:Body>
      </env:Envelope>
      1110 [main] TRACE jbossws.SOAPMessage - Incoming Response SOAPMessage
      <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
       <env:Header/>
       <env:Body>
       <ns1:echoResponse xmlns:ns1='http://org.jboss.ws/samples/jsr181pojo'>
       <result xmlns=''>Français</result>
       </ns1:echoResponse>
       </env:Body>
      </env:Envelope>