Skip to Content
avatar image
Former Member

Dynamic Query string in Receiver HTTP_AAE adapter

Hi All,

     Currently I am working with a scenario where I need to use HTTP_AAE receiver adapter. I need to create the query string http://server:port/WebOrder?param=value dynamically.

I created below mentioned UDF.

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey urlParameter1 = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/HTTP_AAE", "URLParamOne");

conf.put(urlParameter1, "value");

return "";

In configuration part I entered below mentioned details in HTTP receiver adapter,

Target Host: server

Target Port: port

Path: /WebOrder?

Click Set Adapter specific Message properties

Click URL Parameters

I entered "param".

But I am getting the below mentioned error.

exception caught with cause com.sap.aii.adapter.http.api.HttpAdapterException: STATUS_CODE_NOT_OK-Not Found.

Could you please help me here.

Thanks

Dipankar

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Sep 24, 2012 at 03:14 PM

    Hi Dipankar,

    As far as I know, it is not possible to construct a dynamic URL call in SAP PI 7.3 with the http_aae adapter.

    Check this answer:

    http://scn.sap.com/message/13348516#13348516

    I've updated  because you already posted in that thread 😕, sorry, you could try the Michal's aproximation,

    Regards.

    Message was edited by: Iñaki Vila

    Add comment
    10|10000 characters needed characters exceeded