-
Apr 11th, 2008, 04:06 AM
#1
Newbie question on PayloadTransformingIntercep
Hi All,
Thanks for all the help so far.
I have an unusual problem, I receive messages from a contract 1st web-service which I can not affect, and unfortunatelly they send ISO-8859-1 but the header of the document is UTF-8.
How could I use the PayloadTransformingInterceptor to REPLACE the xml header of the incomming document ?
is it the right approach to manipulate the document ?
OR I could not find in the documentation to ask SAAJ NOT TO use the xml file encoding, but use a property instead. is this something that can be done ?
ps: They consistent in sending wrongly encoded document, and I am not able to affect that end of theconversation 
any help is highly appreciated.
Actually, this is the exception I see in my logs: which is correct and reported by SAAJ:
2008-04-11 10:12:42,737 DEBUG [org.springframework.ws.transport.http.WebServiceMe ssageReceiverHandlerAdapter] - Accepting incoming [org.springframework.ws.transport.http.HttpServletC onnection@1c1cfc1] to [http://localhost:8080/services]
ERROR: 'Invalid byte 2 of 4-byte UTF-8 sequence.'
11-Apr-2008 10:12:42 com.sun.xml.messaging.saaj.soap.EnvelopeFactory createEnvelope
SEVERE: SAAJ0511: Unable to create envelope from given source
Last edited by istvano; Apr 11th, 2008 at 04:27 AM.
Reason: adding example
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules