cancel
Showing results for 
Search instead for 
Did you mean: 

Missing Message Attributes: URL/HTTP Destination

Former Member
0 Kudos

Hello,

following scenario:

There is a sync. interface between SAP PI ante the Paypal API within the HTTP adapter calling a dynamic URL.

The dynamic URL is created as mentioned in this blog: http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/7264. [original link is broken]

Also the HTTP adapter is configured as described (Adapter Specific Message Attributes and URL are flagged).

Following error occours when testing the call:

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

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

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

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

<SAP:P1 />

<SAP:P2 />

<SAP:P3 />

<SAP:P4 />

<SAP:AdditionalText />

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

<SAP:Retry>M</SAP:Retry>

</SAP:Error>

Is there sth. special I have to consider in the HTTP Adapter?

Thanks in advance,

André

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>Is there sth. special I have to consider in the HTTP Adapter?

yes you need to fill in the adapter attributes in the mapping

so they can be used by the adapter

(do you see dynamic configuration section in your message going to the adapter)?

Regards,

Michal Krawczyk

Former Member
0 Kudos

Hi Michal,

I´m passing the URL to the attribut "TargetURL" by using a UDF in my mapping.

In the adapter I have flagged "URL".

So the value of TargetURL set in mapping shoul be used as destination in the adapter.

Please have a look onto my UDF used in MM:

http://img408.imageshack.us/i/udf.jpg/

Adapter settings:

http://img691.imageshack.us/i/adaptersetting1.jpg/

http://img339.imageshack.us/i/adaptersetting2.jpg/

How can I check that the TargetURL is successfully set as a dynamic parameter?

Thanks,

André

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>How can I check that the TargetURL is successfully set as a dynamic parameter?

SXI_MONITOR

open the outbound message header and search for dynamic configuration section

inside this section check if the URL is filled

Regards,

Michal Krawczyk

Former Member
0 Kudos

Hi,

using the monitor I can´t find my URL in the dyn. config.:

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

- <!-- Mapping der Request-Message

-->

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

<SAP:Record namespace="http://sap.com/xi/XI/System/RFC" name="ppActivated">false</SAP:Record>

</SAP:DynamicConfiguration>

http://img191.imageshack.us/img191/4011/dynerr.jpg

Former Member
0 Kudos

Are you testing end to end or are you testing using a HTTP client by posting directly tpo the Integration Engine?

justin_santhanam
Active Contributor
0 Kudos

André ,

I'm not sure if the below parameter is case sensitive, can you give a try with

change it from Http to HTTP


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

Thanks!

Former Member
0 Kudos

Hello,

i have found the mistake.

The value for the TargetURL was too long and could not be assigned within the UDF.

I have to split the URL and the Parameters into separate dynamic config. fields (TargetURL and UrlParamOne ...).

Thanks a lot!

André

Answers (0)