Forum Stats

  • 3,827,255 Users
  • 2,260,751 Discussions


javax.xml.soap.SOAPException: Unable to read response: HTTP Bindings Adapter

Abhinav Mittal
Abhinav Mittal Member Posts: 119

Hi Experts

I am using HTTP Bindings Adapter ( VERB : POST, Operation type Request-Response, Payload : XML and have specified the Request schema element from the schema of the end system(input type) and have considered Response as Schema element of a String type.

Now, when I invoke the adapter to do an HTTP POST I receive following error :
javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Unable to read
response: org.xml.sax.SAXParseException: Content is not allowed in prolog.

I have checked the content type and it is UTF-8. I am not able to figure out what could be the issue.

The service is supposed to respond with 200 OK message. I am not sure whether the HTTP Bindings adapter is capable of handling such response at header level.

Please help it's too urgent and important

Thanks in advance




  • Can someone please help me?

    I am still stuck

    Thanks in advance

  • S.Ananth
    S.Ananth Member Posts: 105

    Can you post the request/response xml? Is the error occurring when sending the request or receiving the response? May be you can try with content type as UTF-16. Also check if there is any whitespace or other character before the xml declaration tag at the beginning in the request/response xml.

  • Hi

    Thanks for your reply, I am using a file adapter to write the xml at a folder location to validate whether the generated XML has any special characters or white spaces.

    The XML which is generated can be opened in the browser without any issues.

    In addition, the encoding type is in compliance with the Input type expected by the end system.

    Also, I have confirmed from the other team that the requests are getting processed, it is just the response which is not getting parsed.

    There is no return type of the HTTP service which is being invoked but it just returns 200 OK response at transport layer.

    Would appreciate if you can help

    Still struggling


  • Hi All

    Just wanted to update the thread in case someone faces the same issue.

    SOA doesn't support Complex type XSDs for HTTP POST in HTTP Bindings Adapter. You can either consider upgrading to to get it fixed ( I would recommend testing it another environment of before upgrading) or create a java class to perform the POST( and use Java Embedding activity to make a call to the Java class.

    I hope it helps someone facing similar problem.



This discussion has been closed.