cancel
Showing results for 
Search instead for 
Did you mean: 

How can I pass URL parameter value from ABAP proxy?

jihoon_kim
Explorer
0 Kudos

Hello Experts,

I'm very new at XI.

I wanna make synchronous interface from "ABAP proxy" to "HTTP Plain web site"

The URL is like

http://www.xxx.com/search?key=xxxxx&query=news&target=rank

It has three URL parameters key, query and target which are dynamic.

How can I pass URL parameter value from ABAP proxy?

Accepted Solutions (1)

Accepted Solutions (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Pass the Key , Query and Target as a part of the Payload from the ABAP proxy and then use Dynamic Configuration to create the HTTP URL Dynamically inside your mapping.

Regards

Bhavesh

jihoon_kim
Explorer
0 Kudos

Thanks Bhavesh,

Can you explain more detail?

Especally for, Payload XML structure and How to configure communication channel.

I'm looking at

http://help.sap.com/saphelp_nw04/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/content.htm

However, have no idea how to configure it.

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

In the message mapping you will need to write a UDF to create the HTTP URL.

In the Receiver Adapter you will need to select Adapter Specific Identieifers.

The code to be used to set the URL dynamically in the mapping will be,

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

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


  conf.put(key, "URLVALUE");
}
 

Regards

Bhavesh

Answers (2)

Answers (2)

jihoon_kim
Explorer
0 Kudos

I found out SAP online document is not correct for URL parameter.

http://help.sap.com/saphelp_nw70/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/content.htm

● If you want to use URL parameters, choose Apply URL Parameters and enter the parameters in the fields Parameter 1 to Parameter 6. The parameters are embedded in the HTTP request under the names you enter here.

The technical names of the fields are URLParamOne, …, URLParamSix.

URLParamOne is not working. Correct technical name is UrlParamOne

Former Member
0 Kudos

Hi,

see the below links

dynamic URL -

/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping

Regards

Chilla