cancel
Showing results for 
Search instead for 
Did you mean: 

Can we Create a Dynamic Path in HTTP_AAE reciver Adapter in PI7.31

gagandeep_batra
Active Contributor
0 Kudos

Hi Friends

Can we Create a Dynamic Path in HTTP_AAE receiver Adapter in PI7.31

I have to create a following URL Dynamically :

https://www.xyz.com/rates/api/v1/rates/USD.xml?api_key=abc1234&decimal_places=5&date=2014-10-01&fields=all&quote=INR&quote=EUR&quote=CAD

In Above URL

Path is like that:/rates/api/v1/rates/USD.xml

but USD.xml is not fixed it is dynamic based on base currency

so I need t Dyanmic..

Can you please provide help how we can achieve this

Regards

GB

Accepted Solutions (0)

Answers (2)

Answers (2)

iaki_vila
Active Contributor
0 Kudos

Hi Gagandeep,

That URL combinations seems to me that you are trying to consume restful services, am i right?

Regards.

gagandeep_batra
Active Contributor
0 Kudos

Hi Inaki..

Yes you are right..It's Restfull API Service.. Can you please help me on this how to connect this type of service I am on PI Single stack 7.31

Regards


GB

iaki_vila
Active Contributor
0 Kudos

HI Gagandeep,

From my point of view the best approximation is to use the SAP Netweaver Gateway for this purpose, it is a free Netweaver addon and with very easy usage. The problem is that you have only a java stack then you can't use this ABAP addon. There are another alternatives like Advantco adapter but it is not easy to make understand the clients the necessity to purchase another adapter, with the economic factor. Then you have the unique option to try with the SOAP-AXIS adapter, you cant first to read this great Former Member's blog

Finally, we have to wonder that we are using a SOA infrastructure to deal with a Restful infrastructure, from my point of view this is a workaround and in the future this could be problematic.

Hope this helps.

Regards.

gagandeep_batra
Active Contributor
0 Kudos

Hi Inaki

thanks for your help:

I tried Former Member's blog it's good for me but i stuck at SSL for AXIS adapter I also gone through AXIS FAQ which say's  it will pick autometically but when i tried I giving Error like Connection closed by remote host..

do we need any spacial setting for SSL in AXIS...

one more thing when we tried with static URL in channel in https then it gives the right result means SSL is configure properly for https.channel HTTP_AAE but not work for AXIS

Regards

Gagan

Former Member
0 Kudos

Hi,

In mapping

DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/HTTP", "UrlParamOne");



In Receiver HTTP_AEE

HTTP_AEE(Receiver)-->Parameters tab--->Advanced--->Adapter-specific message properties

select set adapter-specific message properties and URL Parameters and provide parameter(s) value(s)


gagandeep_batra
Active Contributor
0 Kudos

Hi Sateesh,

Thanks for help but i need dynamic path value not parameter:

like:/rates/api/v1/rates/USD.xml

where  USD.xml is not fix it come from payload sometime like INR.xml or sometime CAD.xml based on base currency


Regards

GB

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Gagandeep,

This should be required, but I don't see it in the sap help

Configuring the Java HTTP Adapter on the Receiver Channel - Advanced Adapter Engine - SAP Library

So my guess is that it is not possible.

Regards,

Mark