Okay guys I figured out what the issue is. We are generating the web service
client side classes via Apache CXF 2.2.2. Yet our platform is running JBoss
4.2.1 with a really old version of the Native JBoss web service stack 1.2.1
to be exact. Which isn't even a fully compliant JAX-WS release! So after a
little more searching I came across this JIRA issue regarding the UTF-8
encoding issue I was experiencing: 

https://jira.jboss.org/jira/browse/JBWS-1763

It seems upgrading the JBossWS stack took care of the issue. Thanks for all
you help and insight!

-Kyle


rdgrimes wrote:
> 
> Sorry if I'm way off base here, but are you sure this isn't a simple
> matter of the response being correct, but the console you're using to
> review the raw response is not set to the correct encoding? For example,
> in Eclipse, you must also set the Console encoding to UFT-8 by going to
> Run -> Run Configations -> Common tab.
> 
> In other words, the response may very well be correct, but the console is
> displaying it wrong.
> 
> Ron Grimes
> 
> 
> -----Original Message-----
> From: Benson Margulies [mailto:[email protected]] 
> Sent: Friday, July 24, 2009 2:28 PM
> To: [email protected]
> Subject: Re: UTF-8 Data Marshalling issue
> 
> And you are sure that the data is really UTF-8 and not CP1252 or
> something? I'd follow up on Dan's filter question.
> 
> On Fri, Jul 24, 2009 at 4:22 PM, Kyle.Bober<[email protected]> wrote:
>>
>> This is what I see in the RAW response ::
>>
>> HTTP/1.1 200 OK
>> Connection: close
>> Date: Fri, 24 Jul 2009 15:47:57 GMT
>> Server: Microsoft-IIS/6.0
>> X-Powered-By: ASP.NET
>> X-AspNet-Version: 2.0.50727
>> Cache-Control: private, max-age=0
>> Content-Type: text/xml; charset=utf-8
>> Content-Length: 22201
>>
>> <?xml version="1.0" encoding="utf-8"?> <soap:Envelope 
>> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
>>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>> xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
>>        <soap:Body>
>>                <getKATAnalysisResponse
>>                        
>> xmlns="http://appstaging.thesearchagency.com/KATServices/";>
>>                        <getKATAnalysisResult>
>>                                <exactMatchAnalysis>
>>                                        <aggregateAnalysis>
>>                                                <rootKeyword>turística 
>> bat</rootKeyword>
>>                                                <keywordAnalysis>
>>                                                        
>> <individualKeywordAnalysis>
>>                                                                
>> <rootKeyword>turística bat</rootKeyword>
>>                                                                
>> <keyword>turística bat</keyword>
>>                                                                   .
>>                                                                   .
>>                                                                   .
>>                                                        
>> </individualKeywordAnalysis>
>>                        </getKATAnalysisResult>
>>                </getKATAnalysisResponse>
>>        </soap:Body>
>> </soap:Envelope>
>>
>> Could this be a databinding issue?
>>
>> Thanks for your help,
>> Kyle
>>
>>
>>
>> bimargulies wrote:
>>>
>>> Look at the XML and see if it has a charset specified in the message.
>>>
>>> On Fri, Jul 24, 2009 at 2:03 PM, Kyle.Bober<[email protected]> wrote:
>>>>
>>>> I have consumed a WSDL from a .NET hosted service via Apache CXF 2.2.2.
>>>> Sadly
>>>> to my dismay when ever we receive a response from the service and it 
>>>> marshals the data into a string it doesn't convert the UTF-8 encoded 
>>>> characters properly.
>>>>
>>>> Such is an example.
>>>> We make a request with an xml element containing the string value :
>>>> turística
>>>> We receive the raw response with the following string value: 
>>>> turística and the following xml string value : turística
>>>>
>>>> But when the response data is marshaled in the code the java 
>>>> string's value is set to the follwoing : turística
>>>>
>>>> Why is this happening and how can I enforce the UTF-8 CharacterSet???
>>>>
>>>> Any help regarding this would be much appreciated!
>>>>
>>>> -Kyle
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/UTF-8-Data-Marshalling-issue-tp24649219p246492
>>>> 19.html Sent from the cxf-user mailing list archive at Nabble.com.
>>>>
>>>>
>>>
>>>
>>
>> --
>> View this message in context: 
>> http://www.nabble.com/UTF-8-Data-Marshalling-issue-tp24649219p24651346
>> .html Sent from the cxf-user mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/UTF-8-Data-Marshalling-issue-tp24649219p24681270.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to