Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Content is not allowed in prolog & Unable to create envelope from given src

843834Mar 31 2009 — edited Apr 5 2009
Hello,

I have a method in my java appl which calls a web service with a soap message and the web service (jsp) sends another soap message as response to the calling method. When getSOAPBody() method is invoked on the SOAPMessage returned by the jsp, the following error occured:
ERROR:  'Content is not allowed in prolog.'
Mar 31, 2009 4:27:24 PM com.sun.xml.internal.messaging.saaj.soap.EnvelopeFactory createEnvelope
SEVERE: SAAJ0511: Unable to create envelope from given source
Mar 31, 2009 4:27:24 PM FileStr.FileSystemSOAPInterface createFileStrFromSoapMsg
Please tell me how to overcome this. Thank you.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 3 2009
Added on Mar 31 2009
4 comments
513 views