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 Murach's Java Servlets and JSP this week in the Servlets 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: 19649

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.
Consider Paul's rocket mass heater.
subject: Error while consuming .Net webservice
Similar Threads
low disk space problem caused by AXIS2 temp files
WebLogic8.1 jax-rpc invoke problem
Webservices Problem : Invalid XML char
Apache AXIS error
How to handle .Net Dataset in Java