on 08-19-2015 12:40 PM
Hi,
I'm trying to do a GET with an empty parameter to a sap rest receiver adapter:
URL pattern is like this:
http://Host:Port/rest?tounit={tounit}&fromunit={fromunit}
Example with empty param::
http://Host:Port/rest?tounit=123&;fromunit=
I get the error
Transmitting the message using connection REST_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rest.ejb.receiver.PlaceholderMissingException: URL placeholder fromunit is not configured, or has an empty value
Is this standard beaviour or can I somehow tell the adapter to accept empty parameters?
Note that I put the parameter as Optional in the sender adapter.
Thanks
Hi Olof.
With the help of a colleague I have found a work-around for this problem. In message mapping you have to set the value of an empty parameter to "&". In your case you have to set formunit=&. The result is a URL like this:
http://Host:Port/rest?tounit=123&fromunit=&
This should work.
Kind regards.
Gil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
can you please give me the UDF if you have used any? or else how you got this? regards, P R.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I too have this issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.