aspose file tools*
The moose likes Web Services and the fly likes can anyone tell me why this exception occured.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "can anyone tell me why this exception occured.." Watch "can anyone tell me why this exception occured.." New topic
Author

can anyone tell me why this exception occured..

sampath kumar yanagandla
Greenhorn

Joined: Apr 29, 2007
Posts: 13
hi..
im new to SOAP..following is my code



here iam getting exception

javax.xml.soap.SOAPException: Could not get document from SOAPEnvelope
at org.apache.axis.SOAPPart.getContent(SOAPPart.java:896)
at test.SoapToXml.toDocument(SoapToXml.java:21)
at test.SoapMsg2.main(SoapMsg2.java:38)
Caused by: org.xml.sax.SAXException: Fatal Error: URI=null Line=1: Next character must be "=" after attribute name "Header".
at org.apache.axis.utils.XMLUtils$ParserErrorHandler.fatalError(XMLUtils.java:723)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3038)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3029)
at org.apache.crimson.parser.Parser2.nextChar(Parser2.java:2951)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1372)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:179)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
at org.apache.axis.message.MessageElement.getAsDocument(MessageElement.java:1082)
at org.apache.axis.SOAPPart.getContent(SOAPPart.java:894)
... 2 more
Process exited with exit code 0.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12825
    
    5
Line=1: Next character must be "=" after attribute name "Header".


Means your XML message is not formatted right. Use TCPMON or similar program to look at the exact text being transmitted and I bet the solution will become apparent.

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can anyone tell me why this exception occured..