Skip to Content
author's profile photo Former Member
Former Member

SOAP Header XSLT mapping

Hi,

I am working on Proxy to SOAP synchronous scenario. How to create SOAP header message in XSLT mapping...I am trying but no sauces becz receiver side SOAP header and Body in different message types please see below.

Header part is message type 1

http://reuters.com/datascopeselect/ExtractionService/v1/">

<Username>string</Username>

<Password>string</Password>

<AuthenticationToken>string</AuthenticationToken>

</CredentialsHeader>

Body part is

message type 2

<soap:Body>

http://reuters.com/datascopeselect/ExtractionService/v1/">

<request>

<OutputFields>

<string>string</string>

<string>string</string>

</OutputFields>

</request>

</Extract>

</soap:Body>

</soap:Envelope>

But source is single.. I try ed multi mapping but synchronous scenario it will not working.

I am trying to generate both message types as single message type in XSLT mapping target side and will give service interface as dummy in ESR.

Please guide how to generate 2 message types as single message type in XSLT mapping...

Thanks,

Venkat

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 18, 2011 at 11:31 AM

    Hi Venkat,

    I suggest to produce a complete SOAP message in message mapping. Import the SOAP XSD from [http://schemas.xmlsoap.org/soap/envelope/] as external definition and use it as target message in message mapping. You need at 2 mapping programs in order to produce the message. The first mapping creates header and body. In the second mapping use "Return as XML" to map the header and body nodes to the SOAP envelope.

    In the SOAP receiver communication channel, you need to activate the parameter "Do Not Use SOAP Envelope", see [Configuring the Receiver SOAP Adapter|http://help.sap.com/saphelp_nw04/helpdata/en/29/5bd93f130f9215e10000000a155106/content.htm].

    Regards, Martin

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Martin,

      Thanks for your reply.

      But my issues is I have wsdl file with total SOAP message request and response. for request I should use above structure.

      Both are in different message types, in single message mapping I can not give both because its synchronous scenario. Thats why I am using XSL mapping. In XSLT mapping I need to include both message types in single message type.

  • author's profile photo Former Member
    Former Member
    Posted on Nov 18, 2011 at 11:45 AM

    Check my blog page:

    http://simonlesflex.wordpress.com/2011/01/26/sap-pi-customize-message-with-xslt-mapping/

    Here, there's an example that could be completely fit to your requirements.

    Put this xslt mapping in Message Mapping's 2° step, and check flag "Do not use Soap Envelope" in your Communication Channel.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.