on ‎2019 Sep 10 2:29 PM
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
I cannot resolve this so i am giving up and closing the question. Thank you all for trying to help me. 😞
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Glen,
In SOAP-UI, change the Media type from Application/JSON to Application/XML and try.
Get operation, retrieve a value from the URL by providing the respective GET Variable Name. In your case it is COMPANYID.
I suggest you to go through the below link and recheck the channel configuration once again.
https://answers.sap.com/questions/198848/how-to-configure-sender-rest-adapter-with-get-oper.html
https://blogs.sap.com/2018/07/17/rest-sender-adapter-get-and-post-examples/
Regards
Bhargava Krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Glen,
As per the screenshots, i could see you are just passing COMPANY ID instead of XML in the payload section.
If your source is not JSON, go to test tab of message mapping and manually give the company ID, click on src as shown in the below screenshot. It will generate XML, copy that and paste it in payload section and send test message.

Regards
Bhargava Krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bhargava,
Thank you for your reply, your answers are always helpful!
I am new to REST services and also this SOAP test tool so I am not sure how to enter the XML in the payload. I have generated the XML but can only enter this when using method 'POST'?
Hi,
Please share your JSON sample data and DT that you created.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Sorry, I didn't notice that you are just sending a query param in URL. Please reffer this link https://blogs.sap.com/2018/07/17/rest-sender-adapter-get-and-post-examples/. You need to write a UDF to retrieve its value in Mapping runtime.
Regards,
Anoop Kr. Rai
Hi Glen,
Did you tried by sending test message from Test tab in configuration and monitoring page?
If the message is success, then we need to recheck the REST communication channel configuration.
In soap-ui, for GET method
Method = ‘GET’
Endpoint = ‘http://{host}:{port}/RESTAdapter’
Resource = Endpoint value specified above in communication channel plus the URL pattern.
Parameter = Company ID

Example

In SOAP-UI pass the company ID in the parameters tab, it should work.
I suggest you to refer the below link and check the communication channel configurations.
https://blogs.sap.com/2018/07/17/rest-sender-adapter-get-and-post-examples/
Regards
Bhargava Krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Glen,
The message indicates that the mandatory field COMPANYID is missing in the payload.
Regards,
Ryan Crosby
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.