why this webservices not works? what lead to the xml parse error?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Lynn_Chi
Posted On:   Wednesday, November 12, 2003 07:04 AM

I what to invoke a web services method in my program. but when i invoke it, it output like this: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1d) was found in the element content of the document. faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1d) was found in the element content of the document. at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at org.apache.axis.encoding.DeserializationContextImpl   More>>


I what to invoke a web services method in my program. but when i invoke it, it output like this:


AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode:
faultString: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1d) was found in the element content of the document.
faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1d) was found in the element content of the document.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:242)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:375)
at org.apache.axis.client.Call.invokeEngine(Call.java:2545)
at org.apache.axis.client.Call.invoke(Call.java:2515)
at org.apache.axis.client.Call.invoke(Call.java:2210)
at org.apache.axis.client.Call.invoke(Call.java:2133)
at org.apache.axis.client.Call.invoke(Call.java:1656)
at localhost.kjbwebservices.services.GlobalUserAuthen.GlobalUserAuthenSoapBindingStub.getUserAuthens(GlobalUserAuthenSoapBindingStub.java:180)
at localhost.kjbwebservices.services.GlobalUserAuthen.GlobalUserAuthenServiceTestCase.test2GlobalUserAuthenGetUserAuthens(GlobalUserAuthenServiceTestCase.java:55)
at java.lang.reflect.Method.invoke(Native Method)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at com.borland.jbuilder.unittest.JBTestRunner.run(JBTestRunner.java:210)
at com.borland.jbuilder.unittest.JBTestRunner.initiateTest(JBTestRunner.java:252)
at com.borland.jbuilder.unittest.JBTestRunner.main(JBTestRunner.java:558)org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1d) was found in the element content of the document.org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1d) was found in the element content of the document.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:242)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:375)
at org.apache.axis.client.Call.invokeEngine(Call.java:2545)
at org.apache.axis.client.Call.invoke(Call.java:2515)
at org.apache.axis.client.Call.invoke(Call.java:2210)
at org.apache.axis.client.Call.invoke(Call.java:2133)
at org.apache.axis.client.Call.invoke(Call.java:1656)
at localhost.kjbwebservices.services.GlobalUserAuthen.GlobalUserAuthenSoapBindingStub.getUserAuthens(GlobalUserAuthenSoapBindingStub.java:180)
at localhost.kjbwebservices.services.GlobalUserAuthen.GlobalUserAuthenServiceTestCase.test2GlobalUserAuthenGetUserAuthens(GlobalUserAuthenServiceTestCase.java:55)
at java.lang.reflect.Method.invoke(Native Method)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at com.borland.jbuilder.unittest.JBTestRunner.run(JBTestRunner.java:210)
at com.borland.jbuilder.unittest.JBTestRunner.initiateTest(JBTestRunner.java:252)
at com.borland.jbuilder.unittest.JBTestRunner.main(JBTestRunner.java:558)


I want to know why this happened and how to resolve it.

   <<Less
About | Sitemap | Contact