cancel
Showing results for 
Search instead for 
Did you mean: 

Attaching Header to SOAP Message

Former Member
0 Kudos

Hi Guys,

Can anybody tell me how to attach the Header to the message body in case of SOAP messages?

My SOAP Message is as follows( in XML format):

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

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:p1="http://sup/bpmscenarios">

<soap:Body>

<p1:mt_source_SOAP>

<row>

<EmpNo>10</EmpNo>

</row>

</p1:mt_source_SOAP>

</soap:Body>

</soap:Envelope>

And SOAP action is :

http://sap.com/xi/WebService/soap1.1

Regards,

Supriya.

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Any comments?

Former Member
0 Kudos

Hi,

SOAP header is a part of SOAP Body.

Correct me if I am wrong.

If this is the case, we can always have full SOAP message with its header and pasting this message in XML Spy,

should fulfill the requirement.

Regards,

Supriya.

Former Member
0 Kudos

Hi Guys,

Any help on this?

former_member187339
Active Contributor
0 Kudos

Hi,

This is a bug with XMLSPY, try this with another soap gui. Also you can check the XMLSPY forum for this error

Use soap UI and test your interface

Regards

Suraj

Former Member
0 Kudos

Hi,

My scenario is without Sender SOAP communication channel.

I want to add header to the SOAP message coming from Altova Spy.

If header is there, then the message will be successful at PI end.

Regards,

Supriya.

Former Member
0 Kudos

Hi,

My client is Altova XML Spy, is sending the message without header.

So, at PI end message is getting failed.

I want to send the message by Altova only, so want to modify the message by adding header to it.

But I am not able to understand how to add header.

Regards,

Supriya.

Shabarish_Nair
Active Contributor
0 Kudos

have you checked the option do not use soap envelop in the soap adapter by any chance?

if so, uncheck that option and try again

prateek
Active Contributor
0 Kudos

Don't you have a soap client sending you the headers?

Or is it http client? If yes, you may write some xsl program to add headers.

Regards,

Prateek