on 10-23-2017 4:18 PM
Hi
I have a SOAP to REST Scenario with the REST receiver adapter with the following configurations.
1. Data format - XML
- As it is xml format, I had to use the AF_Modules/MessageTransformBean
with Transform.ContentType = application/xml in the modules tab to strip of the interface and interface namespace tags.
2. Dynamic endpoint URL
http://host:port/id/ordernumber
Source datatype has "id" which will not be passed to the Target application. Dynamic attributes have been set for this field and I am able to see the id value in the dynamic configuration. However the id value is not reflected in the rest receiver adapter processing . Under the parameters tab -->pattern value replacement, Adapter specific attribute is selected with the custom attribute
url pattern -
http://host:port/id/ordernumber
Pattern element name - id
Attribute Name - I get with an error "placeholder for id is missing or empty.
As it is a data format of XML, Have I got something to add up in the HTTP headers for the adapter to understand the attribute in the dynamic config.
The same is the case when I try to do an xpath for ordernumber . I end with error "XPath expression is incorrect". however when I test the XPATH in any editor, it is fine.
Please advise
Hi Anusha,
for point 1, could you please share us the input and expected output xml.
you could play with XMLAnonymizerBean to handle this requirement.
https://answers.sap.com/questions/10984331/pi-74-afmodulesxmlanonymizerbean-remove-namespace.html
Regards,
Muni
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is long gone probably, but answer for 2.
You'd probably give as {id} so http://host:port/{id}/ordernumber
Cheers
Jens
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
11 | |
10 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.