Posted: 3 Jun 2018 23:31 EDT Last activity: 4 Jun 2018 5:11 EDT
Connect-REST with POST
This may be a basic question but I am trying to integrate by Connect-REST with POST. External REST server has two implementation with both GET and POST (There are two end point URLs for each). When I try GET by Test connectivity button in Connect-REST rule form, it works just fine. Now I want to test POST but how can I specify POST here? I know in Activity side I can specify GET or POST in MethodName, but I don't find GET or POST configuration within Connect-REST rule instance itself for my unit testing. When I press Test connectivity the pop up shows HTTP method is "GET" always and it fails. Am I missing anything?
As per the description I can understand that you are able to consume GET method of webservice but unable to hit post method.Please try to consume this POST method with Postman and see the request parameters and try to pass those parameters from prpc as well.
There are three tabs present in connect rest rule(service,method,history).Please add url of webservice in service tab like attached image1 .Select method as post and provide all the required parameters as image2.
If you still face issue then install fiddler and inspect the request If it contains GET method then please try to delete connect rest rule with get method and create a new rule for post method.