Skip to Content
0

SOAP receiver non xml payload

Jan 18, 2017 at 11:40 PM

65

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Raghuraman S Jan 19, 2017 at 03:03 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded
Anoop Rai Jan 19, 2017 at 05:26 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Manoj K Jan 19, 2017 at 05:37 AM
0

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

Br,

Manoj

Share
10 |10000 characters needed characters left characters exceeded
Iñaki Vila Jan 19, 2017 at 08:56 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded