Skip to Content
avatar image
Former Member

SOAP receiver non xml payload

Hi

I would to post a non xml message created by Java mapping using SOAP receiver adapter, however it is giving below error .

SOAP: Call failed: java.io.IOException: Parsing Error: org.xml.sax.SAXParseException: Content is not allowed in prolog

Any clues how to fix this ?

Regards

John

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Jan 19, 2017 at 03:03 AM

    Hello John,

    Ensure the non-xml is formed matching the format of SOAP.As far as I know Soap supports only XML format.

    Alternatively you can check the data using SOAP UI.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 19, 2017 at 05:26 AM

    Hi,

    Your question it self its answer. SOAP Adapter only support XML, and you are sending a non-XML payload to it. Payload parsed by SOAP Adapter when it receive it, so adapter not able to parse this non-XML payload. That's the error you are getting man. I hope there is no solution for it, except than to maintain it into a proper XML format.
    And why you don't want a non-XML payload?

    Regards,

    Anoop Rai

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 19, 2017 at 05:37 AM

    Use HTTP /HTTP_AAE adapter to post non-XML data.

    Br,

    Manoj

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 19, 2017 at 08:56 AM

    Hi John,

    Why don't send it like attachment?. Talk with the SOAP receiver system support to share an example to you, because as the other SCN members said you can send a message non-XML in SOAP adapter. Are you sure that the format is not XML, for example the can wait a json format ans you could use the Rest adapter.

    Regards.

    Add comment
    10|10000 characters needed characters exceeded