This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Error while consuming .Net webservice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Error while consuming .Net webservice" Watch "Error while consuming .Net webservice" New topic

Error while consuming .Net webservice

Astria Bothello

Joined: Mar 12, 2012
Posts: 11
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

Rob Spoor

Joined: Oct 27, 2005
Posts: 19656

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.

How To Ask Questions How To Answer Questions
Astria Bothello

Joined: Mar 12, 2012
Posts: 11
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.
I agree. Here's the link:
subject: Error while consuming .Net webservice
Similar Threads
WebLogic8.1 jax-rpc invoke problem
low disk space problem caused by AXIS2 temp files
Webservices Problem : Invalid XML char
Apache AXIS error
How to handle .Net Dataset in Java