JAXWS: Calling a web serivce with different character encodings causes errors
-----------------------------------------------------------------------------

                 Key: AXIS2-4702
                 URL: https://issues.apache.org/jira/browse/AXIS2-4702
             Project: Axis2
          Issue Type: Bug
          Components: jaxws
            Reporter: Rich Scheuerle
            Assignee: Rich Scheuerle


Background:
A JAX-WS web service should send a response that has the same character 
encoding as the request message.

Problem:
A JAX-WS web service that uses JAXB as a payload will fail in the following 
scenario:
     1) Client sends a UTF-8 message.  Service responds with a UTF-8 message.
     2) Client sends a UTF-16 message.  Service responds with a UTF-16 message.
     3) Client sends a UTF-8 message.  Service responds with a UTF-8 
message...but the data is encoded as UTF-16...This causes a failure.

Solution:
    The JAXB Marshaller in the JAX-WS runtime is not being reset correctly.  
This leads to a bad message.

     I am fixing the code and providing a small unit test that demonstrates the 
problem

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to