Skip to Content
0

xml : space added when encoding is added to header

Nov 27, 2017 at 07:26 PM

35

avatar image

Hi

I'm working on a SOAP scenario where the message that is created via proxy is adding a space in the header XML (space between " and ? )

<?xml version="1.0" encoding="UTF-8" ?>

The process that create the source message doesn't have this space and I think the 'Encoding=UTF-8' is added during the synchronous call. Wonder how this can be fixed.

Any suggestions please?

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

4 Answers

Mark Dihiansan Nov 29, 2017 at 04:56 AM
0

Hi Prabhu,

The xml should still be well-formed even if there is a space between the " and ?. What error are you getting?

Regards,

Mark

Share
10 |10000 characters needed characters left characters exceeded
Prabhu S Nov 29, 2017 at 12:25 PM
0

Hi Mark

The XML is wel formd and no issues with it but the service providers insists the space between the " and ? is causing the issue in their side of validation. So wondering how this can be fixed?

Share
10 |10000 characters needed characters left characters exceeded
Prabhu S Nov 30, 2017 at 12:57 AM
0

Thkx for everyone who helped here. I will use an xslt and see if that works.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Nov 29, 2017 at 07:10 PM
0

Hi Prabhu,

Try using module parameters to modify the encoding to see whether the space is still there.

Or you can choose not use soap envelope of soap adapter and use xslt mapping or java mapping to generate soap envelope.

Share
10 |10000 characters needed characters left characters exceeded