user12040707 wrote:The test button can only perform 'GET' request tests.
Geting 405 - Method Not Allowed, when launching via Apex Tester button
Geting 404 - The server has not found anything matching the Request-URI. , when launching via RESTclient
No candidate found for: POST sms/pushnotification in context: http://<IP>:18080/apex/htmlclient/Is the RESTclient call correct? Does it include the /message bit?
user12040707 wrote:This is fixed in APEX 4.2.1
Thanks for clarifying the use of the "Test" button,
Perhaps the Apex user interface should disable the test button when the test capability doesn't exist for the web service method (as it is currently GET only)
For the POST - when testing, I was actually passing the response_msg in the request body and not part of the URL.When you want to process the content body of a POST or PUT operation you need to dereference the implicit :body parameter as shown in the example here:
When passing the response_msg as part of the URL, the request actually executes although fails with illegal characters in URL (>WebException [statusCode=400, reasons=[The request path contains illegal characters]])
response_msg (simple) parameter value:
How can I re-configure the web service to accept response_msg in the following form?
Request body: the response_msg which is in XML format
Or is there another approach that should be used in this scenario?