on 12-11-2013 10:19 AM
Hi Guys,
We have a scenario where we use a the HTTP AAE adapter POST.
The problem that we are facing is that the adapter is not building the URL as expected. We are expecting more like the URL below.
http://server/website?param=Parameter1
And of course the value of "Parameter1" has to come from my payload. I use the JAVA HTTP (HTTP_AAE) adapter because I want to use POST for this.
Used the following UDF to get the Dynamic Config.
DynamicConfiguration conf = (DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
if (conf != null) {
DynamicConfigurationKey Parameter1;
Parameter1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System", "UrlParamOne");
conf.put(Parameter1,"5");
}
return "";
I used this function in my message mapping and after that I can find the following dynamic configuration in my message monitoring (sxmb_moni)
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><!-- Technical Routing --> <SAP:DynamicConfiguration SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"><SAP:Record namespace="http://sap.com/xi/XI/System" name="UrlParamOne">5</SAP:Record></SAP:DynamicConfiguration>
The dynamic config comes into the integration server fine.
I then sent the messages to the following POST TEST website(HTTP POST DUMPING SERVER).
http://www.posttestserver.com/
The results on this POST DUMPING Server can be viewed on the following link - http://www.posttestserver.com/data/2013/12/11/02.15.19754610112
I have tried a few things but was unsuccessful.
Please Advice if possible
Please see my config below.
Hi, I have a similar case can you please how your dynamic URL issue resolved in detail
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Jannus,
The dynamic configuration technical name of UrlParamOne is not UrlParamOne but rather URLParamOne. These names are case-sensitive
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mark,
Thank you for the advice. But did not work. Any other advice?
Please see results - http://www.posttestserver.com/data/2013/12/11/03.36.55121393033
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.