Forum Discussion
Hopefully this might help
Create a new VirtAction, set the method as Get and Resource Path as /{operation}. Include the curly brackets
Set your dispatch style to Sequence and set up a response
so, as below, when you visit the endpoint (regardless of the value for the operation parameter), you will get the same response
http://localhost:8082/xyz
http://localhost:8082/efg
Hi,
Tried as you suggested. My VirtAction is GET /{operation} but when I send a request to the virtual service, I am getting a HTTP405 Method not allowed error.
Thanks!
- MConneely4 years agoStaff
In your Response, what is your Http Status Code, Content Type and response value (in the Editor tab)?
https://support.smartbear.com/readyapi/docs/virtualization/configure/create-responses.html
Have you any additional configuration set? Are you seeing anything in error logs?
- rahuldutta4 years agoOccasional Contributor
Getting a HTTP404 because the URL in the incoming request is not able to match with the Virtaction path. I have a HTTP200 in my dispatch response file. It is not even trying to see what is there in the dispatch settings.
Related Content
- 2 years ago
- 2 years ago
- 4 years ago
Recent Discussions
- 5 days ago
- 10 days ago