cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP Adapter with dynamic URL

park_saeiam
Explorer
0 Kudos

Hi all

Could you please to help. I need to use receiver with HTTP adapter which in this adapter that I need to pass dynamic URL into this. I had try follow this document

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

but when I test it I got this error

<SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">

<SAP:Category>XIAdapter</SAP:Category>

<SAP:Code area="PLAINHTTP_ADAPTER"><b>ATTRIBUTE_MISSING_URL</b></SAP:Code>

<SAP:P1 />

<SAP:P2 />

<SAP:P3 />

<SAP:P4 />

<SAP:AdditionalText />

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack>Dynamic Header - Missing Message Attributes: URL/HTTP Destination</SAP:Stack>

<SAP:Retry>N</SAP:Retry>

</SAP:Error>

I think my XML source message format that is incorrect. This is my XML source message

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_OB xmlns:ns0="http://xxxx.com:db6">

<type>

<TargetURL>http://xx.xx.xx.xx</TargetURL>

</type>

</ns0:MT_OB>

Could you please to suggest.

Thanks

Park

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Use the UDF in mapping to create the dynamic URL.

DynamicConfigurationKey keyURL = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/HTTP", <b>XXXXX</b>);

// access dynamic configuration

DynamicConfiguration conf = (DynamicConfiguration) param.get (StreamTransformationConstants.DYNAMIC_CONFIGURATION);

// set value

conf.put(keyURL, url);

See the belowlinks

dynamic URL -

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

Regards

Chilla

Answers (2)

Answers (2)

park_saeiam
Explorer
0 Kudos

Hi all

Thank you very much. Problem is solved.

Shabarish_Nair
Active Contributor
0 Kudos

follow this thread !!!