aspose file tools*
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "Error while consuming .Net webservice" Watch "Error while consuming .Net webservice" New topic
Author

Error while consuming .Net webservice

Astria Bothello
Greenhorn

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

Joined: Oct 27, 2005
Posts: 19761
    
  20

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Astria Bothello
Greenhorn

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.
 
Don't get me started about those stupid light bulbs.
 
subject: Error while consuming .Net webservice