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

SOAP Sender Scenario with different Receivers

Hi,

I'm searching for a solution for the following scenario. SOAP Sender -> PI -> RFC (on System1 or System2) depending on a parameter which is not part of the message payload. As I already read, there must be some simple solution via the XHeaderName1 (namespace http://sap.com/XI/System/SOAP) Parameter of the Http Header.

I tried following:

SOAP Sender Adapter:

- checked Do Not Use SOAP Envelope

- checked Keep Headers

- checked Adapter Specific Message Attributes

- checked Variable Transport Binding

- set the name of the variable header to "system"

After this, I created a Receiver Rule with 2 conditions using

- left operator XHeaderName1, equals "System1" and added System1 as the receiving Communication Component.

- the same with "System2" and System2 as Communication Component

Then, I added this rule for my Standard Receiver Determination.

The SOAP request by the external partner got in its http header (not SOAP Header) "system: System1" respectivly "system: System2". However, no receiver is found!

What is wrong with this configuration? Does anyone have an idea or a solution for this scenario?

Thanks very much in advance!

regards

Harald

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Oct 11, 2012 at 06:50 AM

    Hello Harald,

    Out of curiosity I tried your scenario:

    1. Checked Keep Headers, ASMA and Variable Transport Binding

    added system in the XHeaderName1

    2. Added an additional Header Field in SOAP UI using a generated WSDL in ID

    3. Executed the request in SOAP UI and checked Dynamic Configuration for inbound message

    Check if you are getting these. If you are, then check your condition in receiver determination.

    It is also possible that you accidentally clicked the XHeaderName1 with the MAIL namespace instead of the SOAP.

    Hope this helps,

    Mark


    Test.JPG (14.7 kB)
    Test.JPG (167.0 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 11, 2012 at 02:27 AM

    Hi

    What's mean 'XHeaderName1 '?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 11, 2012 at 05:42 AM

    some clarity required,

    it seems you are using ASMA- variable binding --- if you have the identifier in soap call to determine system1 & 2...provide details dynamic configuration ...

    check the keep header checkbox, check note

    1470127

    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.