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!

InputStream does not represent a valid SOAP 1.1 Message

843834Mar 15 2006 — edited Aug 10 2010
I am trying to create a simple java application to communicate with
flickr via SOAP. Ihave managed to send a request and receive a response, but when trying to get the SOAP body of the response I get this error:

Mar 15, 2006 2:39:44 PM
com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl
createEnvelopeFromSource
SEVERE: SAAJ0304: InputStream does not represent a valid SOAP 1.1 Message

The response I am receiving looks like this:

<?xml version="1.0" encoding="utf-8" ?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope">
<s:Body>
<FlickrResponse xmlns="http://flickr.com/ns/api#">
<method>flickr.test.echo</method>
<api_key>********************************</api_key>
<format>soap2</format>
<echothis>Echo Me</echothis>
</FlickrResponse>
</s:Body>
</s:Envelope>

I think this is a valid soap 1.2 message but my application is trying to read it as a soap 1.1 message and failing. Does anyone know how I can successfully get the soap body of this message?
Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 7 2010
Added on Mar 15 2006
3 comments
9,872 views