Skip to Content

xml : space added when encoding is added to header

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Nov 29, 2017 at 04:56 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 29, 2017 at 12:25 PM

    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?

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 30, 2017 at 12:57 AM

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 29, 2017 at 07:10 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded