File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

UTFDataFormatException when executing transform on soapMessage content

 
Marko Tekavc
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to transform soap message I get from webservice call to pretty printed xml string (using javax.xml.transformer.Transformer). I have this method:


I get java.xml.transform.Source object from calling web service (I don't have direct control on soap response):


This code works just fine on my test server (Glassfish V2) but it throws exception in line (transformer.transform(src, streamResult)) on BEA Weblogic Server:


How can I properly transform soapMessage with javax.xml.transformer?

 
Dan Drillich
Ranch Hand
Posts: 1183
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The same exact error - Invalid byte 1 of 1-byte UTF-8 sequence is looked at XML and Invalid byte UTF-8.

Regards,
Dan

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic