cancel
Showing results for 
Search instead for 
Did you mean: 

change element in soap header

Former Member
0 Kudos

hello,

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

- <!-- Call Adapter

-->

- <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SAP="http://sap.com/xi/XI/Message/30">

- <SOAP:Header>

- <SAP:Main xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsu="http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" versionMajor="003" versionMinor="000" SOAP:mustUnderstand="1" wsu:Id="wsuid-main-92ABE13F5C59AB7FE10000000A1551F7">

<SAP:MessageClass>ApplicationMessage</SAP:MessageClass>

<SAP:ProcessingMode>synchronous</SAP:ProcessingMode>

<SAP:MessageId>79630070-BC27-11DC-BD4F-0017A4106568</SAP:MessageId>

<SAP:TimeSent>2008-01-06T07:17:46Z</SAP:TimeSent>

i sent the message in HTTPS,

the problem is the target system can't get SOAP:mustUnderstand="1", the target system can get only SOAP:mustUnderstand="0"

how can i change SOAP:mustUnderstand="1" to SOAP:mustUnderstand="0"

thanks,

Shelly

View Entire Topic
Former Member
0 Kudos

Hi,

you could use the below alternative solution also as some Web services do not accept the message , if Content type is application/XML in the HTTP Header, it will accept only Text/XML. So While calling the Web service, the content has to be changed, This is possible using Module of the adapter as shown in the screen shot.

HTTP Header field values before using the module

User-Agent: SAP-Messaging-com.sap.aii.messaging/1.0505

content-id: payload-45A352A90948582CE1000000CDEFD4B7@sap.com

content-type: application/xml

Content-Length: 1280

Module name - localejbs/AF_Modules/MessageTranspormationBean

Type - Local Enterprise Bean Module - This is defined by the user, but the same name should be given in the module configuration for passing the parameters. In this case “transform” In the module configuration ,

Module key - In this case “transform”

Parameter name - Transform.ContenType

Parameter Value - text/xml;charset=utf-8

Here you could use the required parameters and pass the values....:-))

Thanks

Swarup