• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

UTFDataFormatException when executing transform on soapMessage content

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?

 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
If you settle for what they are giving you, you deserve what you get. Fight for this tiny ad!
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic