This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 12759
    
    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..
 
Similar Threads
Geting Errors while Loading the Server
startup errors with Websphere Application Server 3.5
Exception while calling the _call.invoke(), please Help
javax.xml.transform.TransformerConfigurationException: String index out of range: 20
ayyappa1