Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CONTEXT_ROOT setting for wsdl service location rewrites #615

Open
MeFisto94 opened this issue Mar 30, 2023 · 0 comments
Open

Add CONTEXT_ROOT setting for wsdl service location rewrites #615

MeFisto94 opened this issue Mar 30, 2023 · 0 comments

Comments

@MeFisto94
Copy link

Is your feature request related to a problem? Please describe.
When castlemock is running behind a load balancer/reverse proxy, it tends to replace the <service> tag at the ?wsdl endpoint with URLs starting like localhost:8082, which then are not useable by the client at all (obviously, localhost is almost always wrong).

Describe the solution you'd like
Since it may be non-trivial for castlemock to figure out the correct root itself, a simple environment variable to define the base/context root may be sufficient enough

Describe alternatives you've considered
Parse web requests to inspect Host/Location headers both in the case of the wsdl call (that would even support multiple roots), or somehow from the Web UI and storing it. That doesn't seem as good, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant