Situation:- We would like to send file content (like XML, JSON etc) as a body to Rest Consumer which is using POST method.
Solution:- We need to refer below basic steps to check whether we are able to get the response using Adeptia:-
- Firstly, try to use file content as a body for this REST consumer URL in any third-party tool like SOAP UI, PostMan, etc and check whether you are getting the correct response or not using these tools.
- Once you are able to get the desired outcome from Step 1 then try to create a test process flow and use the below activities in it.
Context Source > Put-context-var > REST webservice Consumer > Context Target. - Define the Parameter as restRequest in Context Source and restResponse as Context Target. For more info on this refer the below docs:-
https://docs.adeptia.com/display/AS/Using+Context+Source+and+Context+Target - Define the value of the variable restRequest in Put-context-var. In the value, use the complete file content as a body to this consumer.
If we are able to fetch the response correctly then we can use it in any complex implementations by referring to above use case.
Comments
0 comments
Article is closed for comments.