This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can anyone tell me why this exception occured..

 
sampath kumar yanagandla
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic