• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error while consuming .Net webservice

 
Astria Bothello
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Need help with the following.

We are consuming a .net webservice in Java which returns us customer information. Occassionaly, we encounter the following error - which indicates that some special characters (maybe hex) are not valid.

org.apache.cxf.interceptor.Fault: Unmarshalling Error: [com.ctc.wstx.exc.WstxLazyException] Illegal character entity: expansion character (code 0x1) not a valid XML character

Is there anything we can do about it as the consumer? Or should the producer take care of it?

Appreciate any help

Thanks
 
Rob Spoor
Sheriff
Pie
Posts: 20494
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using the same encoding for producing and consuming the XML document? If so, then I would first check out what the producer is outputting. Make sure that's correct before moving your focus to the consumer.
 
Astria Bothello
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Rob. I will check it out.

As the consumer we are placing the WSDL url in the pom file that generates the stubs during compile time.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic