Skip to Content

HTTP (with URL parameters) -> PI -> SOAP scenario - Dynamic Configuration failing

Hi all,

we have SAP PI 7.0 SP25 running.

I have a HTTP --> PI --> SOAP scenario. Our non-SAP CRM system has the ability to send a http request to an SMS provider like so: Due to security policies the CRM system may not directly send this to the provider and so we were planning to have PI as middleware.

Scenario in detail:

  1. CRM sendsSMS
  2. PI HTTP Sender adapter receives SMS data and strips out URL parameters "key", "to", and "message" by using "Copy URL-Parameter" from the sender http communication channel
  3. In Message mapping for the request we have one or multiple (each for every used URL parameter) UDFs that take the dynamic configuration UrlParamOne - UrlParamThree and use them for mapping the according nodes of target message.
  4. After that SMS provider sends back a message with multiple status codes
  5. This will be mapped to the CRM systems https response body.


At figure 3 unfortunatelly i cannot get dynamic configuration to work. Heres the code (Value type UDF)

// dimension variables
int i = Integer.parseInt(urlParamIndex);
DynamicConfigurationKey paramKey;
String result;// get trace object
AbstractTrace trace = container.getTrace();// get dynamic configuration object
DynamicConfiguration conf = (DynamicConfiguration) container
    .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);//according to the index, get the desired URL parameter
case 1:
paramKey = DynamicConfigurationKey.create("","UrlParamOne");
case 2:
paramKey = DynamicConfigurationKey.create("","UrlParamTwo");
case 3:
paramKey = DynamicConfigurationKey.create("","UrlParamThree");
case 4:
paramKey = DynamicConfigurationKey.create("","UrlParamFour");
case 5:
paramKey = DynamicConfigurationKey.create("","UrlParamFive");
case 6:
paramKey = DynamicConfigurationKey.create("","UrlParamSix");
paramKey = null;
result = conf.get(paramKey);
catch(Exception e)
trace.addDebugMessage("ULR parameter " + Integer.toString(i) + " not available. Detailed error message: " + e.getMessage());
result = "";
}return result;

Q1: Even through end-to-end testing I was not able to see section DynamicConfiguration in sxmb_moni. I was thinking that this should be visible regardles is i access it through UDF or not, just by selecting ASMA and copy-URL parameter

in the sender http CC. Any hints on this?

Q2: The sender system CRM does not fill the requests

when sending the request to SAP PI. It can do POST or GET. Am I right assuming I should use GET then in order to have PI not incisting on filled request body? Would CRM still be able to get a return status from the web service of the SMS provider (routed / mapped through PI)?

Thanks and kind regards


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Aug 29, 2012 at 08:41 PM

    >when sending the request to SAP PI. It can do POST or GET. Am I right assuming I should use GET then in order to have PI not incisting on filled request body

    Http adapter of your PI version(7.0) will support only POST not GET. Only PI 7.3 supports GET operation. If you need GET operation then you might have to try soap axis adapter.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Baskar,

      I have one doubt about the HTTPS requests from sap crm. It would be great if u can help.

      I just want to know how we can POST an https request and how we can fill the body of https request from SAP CRM.

      e.g. lets i have a REST API is '' and there are two JSON Parameters which we need to pass in the request body.

      How can we achieve this in sap crm.

      Thanks in advance.


      Kumar Gaurav.

  • Aug 30, 2012 at 06:44 PM

    Thanks for the information. I, however, tried to use get (using Fiddler2) and it seems to be handled from PI. Not sure though, if I configured that right. Anyways, I'm not getting the dynamic configuration part in the message no matter if I use GET or POST.

    Am I right that using ASMA and "copy-URL parameters" in sender http CC should result in an already filled dynamicconfiguration node when entering message mapping hence the ability to use and UDF and conf.get(paramKey) to retrieve the URL parameter values?

    Any clues on that?



    Add comment
    10|10000 characters needed characters exceeded