cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass file name from File adapater to http post

Former Member
0 Kudos

Hi!

We have an interface where third party system expect to pass the file name in the http post. We have few static parameters of third party under path prefix of http destination. They want us to pass the file name as a dynamic parameter.

How can I achieve the above?

I am using DynamicConfigurationBean and passing the Filename to UrlParamOne

I can see in the message monitor under SOAP response header UrlParamOne has got the filename from file adapter. How can I get this value passed to posting url as a dynami parameter?

Regards

Ramesh

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184720
Active Contributor
0 Kudos

How can I get this value passed to posting url as a dynami parameter?

Just set the parameter name under URL parameters in the communication channel.

Have a look into below blog

Former Member
0 Kudos

Hi ! Hareesh,

I have defined the UrlParamOne in the http receiver adapter. Our partner need this value pass in the url path prefix as a parameter.

How can I pass this value into url path prefix?

Regards

Ramesh

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Ramesh,

Please follow the blog posted by Hareesh. The parameters will get appended to the URL once it is in the call http adapter module step.

Regards,

Mark

Former Member
0 Kudos

Hi! Mark,

I have done as per Hareesh . Unfortunately file name is not passed as part of f url post. I have attached here my configurations.

Ramesh

former_member184720
Active Contributor
0 Kudos

I didn't know that it's not supported on the receiver side but at least the sap note which is active & applicable for all releases  confirms that -

  • Q9: Limitations in PI HTTP_AAE adapter
  • A : Receiver Side - Currently Java HTTP adapter(HTTP_AAE) is not designed to support the dynamic URL configuration via ASMA(Adapter Specific Message Attributes) properties.

1742088 - FAQ: PI 7.30 / PI 7.31 HTTP_AAE Adapter

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Ramesh,

http://host:port/path?param1=value1&....

The http parameters are after the query string (? mark), if you are referring to the path it is not dynamic as per HTTP_AAE. You have to use SOAP Adapter with Do Not Use SOAP Envelope for that.

Regards,

Mark

Former Member
0 Kudos

Hi! Hareesh,

We don't use HTTP _AAE adapter. What we have is PI 7.1 and we use ABAP http adapater.

Regards

Ramesh

iaki_vila
Active Contributor
0 Kudos

Hi Ramesh,

Have you set in a UDF the new URL parameter with dynamic configuration?

Why are you using DynamicConfigurationBean?, i've seen that you are not followin the sintaxis like sap help page: Adding DynamicConfigurationBean in the Module Processor - Adding Modules to the Module Processor - S...

Regards.

Former Member
0 Kudos

Hi Mark,

We are using ABAP http adapter .

The parameter name which we have defined for  UrlParamOne is Ent-filename

How we can call this dynamic value into the path prefix/url post

Current path prefix :

/invoke/XYZHTTPS:receiveCTE?Ent-APRF=XYZGISOV3C50&Ent-receiver=XYZSECUFLATN

Can I add my dynamic parameter Ent-filename to the end of above path prefix as &Ent-filename= ........ As this is dynamic what value to specify?

regards

Ramesh

iaki_vila
Active Contributor
0 Kudos

Hi Ramesh,

Are you using an UDF to set UrlParamOne  variable and its value ?, could you share the code?

Regards.

Former Member
0 Kudos

Hi! Inaki,

We don't have a message mapping for this data flow. Why we need to use UDF when DynamicConfigurationBean take care of extracting the file name and passing it to UrlParamOne. See the attached log. Issue is how i can pass this value to url post

regards

Ramesh