File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Web Services : --> There is an error in XML document, Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web Services : --> There is an error in XML document," Watch "Web Services : --> There is an error in XML document," New topic
Author

Web Services : --> There is an error in XML document,

Mythili Sathya
Greenhorn

Joined: Aug 04, 2008
Posts: 10
Am getting the following error :

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at com.blockbuster.onlinesub.central.service.CallWebServices.sendWaitingMessages(CallWebServices.java:237)
at com.blockbuster.onlinesub.central.service.CallWebServices.call(CallWebServices.java:141)
at com.blockbuster.onlinesub.central.service.AllocationService.getPickListForDC(AllocationService.java:117)
at com.blockbuster.onlinesub.central.batch.AllocationPushThread.run(AllocationPushThread.java:35)
Caused by: java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException: Server was unable to read request. --> There is an error in XML document (1, 24668). --> '_', hexadecimal value 0x16, is an invalid character. Line 1, position 24680.
Detail:
<detail>
</detail>; nested exception is:
javax.xml.rpc.soap.SOAPFaultException: Server was unable to read request. --> There is an error in XML document (1, 24668). --> '_', hexadecimal value 0x16, is an invalid character. Line 1, position 24680.
at com.blockbuster.onlinesub.central.webservices.client.DistributionCenterSoap_Stub.procurementFeed(DistributionCenterSoap_Stub.java:246)
... 9 more
Caused by: javax.xml.rpc.soap.SOAPFaultException: Server was unable to read request. --> There is an error in XML document (1, 24668). --> '_', hexadecimal value 0x16, is an invalid character. Line 1, position 24680.
at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:313)
at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:290)
at com.blockbuster.onlinesub.central.webservices.client.DistributionCenterSoap_Stub.procurementFeed(DistributionCenterSoap_Stub.java:242)
... 9 more

Can any one explain me the problem..........
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42367
    
  64
Welcome to JavaRanch.

Is the request you're sending valid (or at least well-formed) XML? A tool like tcpmon or SOAPUI can show you the XML in transit.


Ping & DNS - my free Android networking tools app
Mythili Sathya
Greenhorn

Joined: Aug 04, 2008
Posts: 10
We have not captured the response from the Webservice....
Any idea which character is not getting recognised......?

So that i can check teh DB values for the same
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42367
    
  64
If you look closely at the error message, it explicitly mentions that the ASCII code of the character is hex 16, which is a control character. (It's not the underscore character, though, as the message seems to imply.)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Web Services : --> There is an error in XML document,