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

Reading parameters from Query string : Sender SOAP adapter.

Hello Experts,

I have a SOAP to SOAP scenario. Here we will have multiple receivers and dynamic receiver determination is needed.

The sender will send a Value in Query string of URL to sender SOAP adapter. This value in Query string parameter will decide the receiver at runtime.

I need to know, how can we read values from Query string of incoming call? I did tried to search blogs & forum threads but unfortunately not able to hit the right links.

Any inputs will be of great help.

Should i use "Use Query String" on sender soap channel? I tried it, but i was not able to find any query string parameters in SOAP header or payload.

Please guide me, its bit urgent.

Regards,

Abhi.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Sep 28, 2011 at 09:12 PM

    > The sender will send a Value in Query string of URL to sender SOAP adapter. This value in Query string parameter will decide the receiver at runtime.

    >

    > I need to know, how can we read values from Query string of incoming call?

    This is not possible and I recommend to use the standard way to transport values with SOAP protocol: Inside the SOAP message.

    I do not understand why people try to put values outside the SOAP message.

    Tell me, where you find URL parameters in this document:

    http://www.w3.org/TR/2000/NOTE-SOAP-20000508/

    Add a comment
    10|10000 characters needed characters exceeded

    • > But it will be nice to know a solution for using Query strings. Does HTTP adapter support this feature?

      Yes, the HTTP adapter allows to use up to 3 query parameters, which are transported to ASMA fields.

      But the HTTP adapter does not unwrap the SOAP body, so this is not useful for a web service scenario.

      In SOAP adapter you can read the HTTP header (not SOAP header) parameters and you might use this for your request, but in my opinion this is too error-prone. and of course no SOAP standard.

      HTTP header parameters are used for examples for cookies.

  • Posted on Sep 28, 2011 at 08:16 PM

    One possible way is using java mapping to read query string and retrieve the value. Since SOAP uses Http as transport protocol, you might use java class httpservletrequest and see how that helps.

    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.