cancel
Showing results for 
Search instead for 
Did you mean: 

Passing SOAP Header fields from XI.

Former Member
0 Kudos

Hi

I need to pass a few SOAP Header fields from XI in the SOAP call to the external system.

Anything I pass is being treated as part of the SOAP Body only.

Appreciate any help.

Rajendra.

Accepted Solutions (1)

Accepted Solutions (1)

former_member206604
Active Contributor
0 Kudos

Hi,

Check out this thread

also this

Thanks,

Prakash

Former Member
0 Kudos

Thanks for the links to the threads.

Are there any other options besides using XSLT for this?

Rajendra.

former_member206604
Active Contributor
0 Kudos

Hi,

XSLT is the best option or you need to go for Java Mapping or ABAP Mapping. You can also try if you are ok with Adapter Module.

Thanks,

Prakash

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

Like mentioned use Java / XSLT or ABAP mapping .

If not use graphical + adapter module.

Regards,

Bhavesh

former_member206604
Active Contributor
0 Kudos

Hi,

If you are using Adapter Module you can go with any mapping. Yes you can live with Graphical mapping. But if you do XSLT mapping which makes life simpler and there is no need for Adapter module.

Thanks,

Prakash

Answers (7)

Answers (7)

Former Member
0 Kudos

True, but not likely, until the upgrade a few months later.

Any other possible alternates that can get the scenario to work?

Appreciate all help.

Rajendra.

former_member206604
Active Contributor
0 Kudos

Hi,

What is your target strucutre? Is id with those Envelope tags? please use only payload strucutre in the target and do the XSLT mapping properly

Thanks,

Prakash

Former Member
0 Kudos

If I remove the SOAP Envelope from XSLT mapping, it's showing the mapping has an error and is not valid.

Former Member
0 Kudos

By the way, I'm on (XI3.0) SP12.

Could that be a reason why I'm not seeing the 'Do not use SOAP...' checkbox?

Rajendra.

former_member206604
Active Contributor
0 Kudos

Hi,

Woww thats pretty older SP. Better try to bring atleast above SP14, you cannot do many thing under SP14 like Adapter Specific message attributes, Multimapping without BPM, etc...

Thanks,

Prakash

Former Member
0 Kudos

Yes, Prakash.

This SOAP Envelope is generated in the XSLT mapping.

Yes, this is the payload after request mapping stage in SXMB_MONI.

Appreciate your help.

Rajendra.

former_member206604
Active Contributor
0 Kudos

Hi,

Try generating only the payload structure in the XSLT mapping instead of the whole SOAP envelope. Remove that SOAP Envelope from the XSLT.

Thanks,

Prakash

Former Member
0 Kudos

Thanks, Prakash for the quick reply.

Under conversion parameters I'm only seeing (I'm on XI 3.0):

- Keep Headers

- Keep Attachments

- Use Encoded Headers

- Use Query String

Here's the XMl payload:

<?xml version="1.0"?>

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.approva.net/BizRights/Services">

<soapenv:Header>

<ns1:BRSoapHeader/>

</soapenv:Header>

<soapenv:Body>

<ns1:Enumerate>

<ns1:objType>ApprovalRequest</ns1:objType>

<ns1:pageObject>

<startIndex>0</startIndex>

<pageSize>10</pageSize>

<totalRows>0</totalRows>

<moreRecords>false</moreRecords>

<rowsReturned>0</rowsReturned>

</ns1:pageObject>

<searchObject>

<searchFields>

<string>status</string>

</searchFields>

<searchValues>

<string>all</string>

</searchValues>

</searchObject>

</ns1:Enumerate>

</soapenv:Body>

</soapenv:Envelope>

Thank you for the help.

Rajendra.

former_member206604
Active Contributor
0 Kudos

Hi,

Check out this link and look at under COnversion parameters

http://help.sap.com/saphelp_nw04/helpdata/en/29/5bd93f130f9215e10000000a155106/content.htm

How that SOAP Envelope is generated? Did you generate in the XSLT mapping. Is this the payload that you find after request mapping stage in SXMB_MONI?

Thanks,

Prakash

Former Member
0 Kudos

If I copy the payload (achieved through XSLT mapping) and paste in the SOAP client, the response is successful. XI gives an error, 'PARSING">ADAPTER.SOAP_EXCEPTION' with 'soap fault: Server was unable to process request. --> Object reference not set to an instance of an object.' in Additional Text.

Trying to get it to work.

Any help is appreciated.

former_member206604
Active Contributor
0 Kudos

Hi,

How is XML payload looking like ,did you add the SOAP envelope in XSLT mapping if so check 'Do Not Use SOAP Envelope'. Please post the XML playload

Thanks,

Prakash

Former Member
0 Kudos

Where do I uncheck the 'Do Not Use SOAP Envelope'?

Rajendra.

XI 3.0

former_member206604
Active Contributor
0 Kudos

Hi,

<i>>>>Where do I uncheck the 'Do Not Use SOAP Envelope'?</i>

You will find 'Do Not Use SOAP Envelope' under "Conversion Parameters" of SOAP Adapter.

Thanks,

Prakash