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?
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.