cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Issue with XML Declaration in SOAP response message

das_sappo
Participant
0 Likes
985

Hi Experts,

I have a SOAP to proxy Synchronous interface in CPI and the sender is receiving the response message without the XML Declaration. Could you please suggest how to keep the declaration as I can see that the declaration getting removed during SOAP call back to the sender.

End Step

SOAP Step

Br,

Arvik

Accepted Solutions (0)

Answers (2)

Answers (2)

MortenWittrock
SAP Mentor
SAP Mentor

Hi Arvik

You can always add a Content Modifier step with the following body (expression, not constant):

<?xml version="1.0"?>
${body}

Regards,

Morten

das_sappo
Participant
0 Likes

Thanks for your response Morten .

I am adding the xml declaration through Content Modifier and the same is appearing till END step . After that getting lost at SOAP adapter level. Please advise how can I resolve this

END Step

SOAP Step: Wrapped under envelope & XML declaration get removed

MortenWittrock
SAP Mentor
SAP Mentor
0 Likes

Hi das.sappo

Some SOAP libraries remove the XML prolog and that might be what you are seeing here. Is it causing any actual errors? The XML prolog is not mandatory, so the response should always be accepted with or without the XML prolog.

Regards,

Morten

das_sappo
Participant
0 Likes

Thanks Morten .

We have migrated that interface from PI and the sender system used to receive the response with the XML Declaration from PI.

Now CPI is sending the same with out the xml declaration that's why failing at their end.

Is there any way to fix that at our end ?

former_member678720
Discoverer
0 Likes

Could you solve the problem?