Skip to content

Feature: override host #1366

@homersimpsons

Description

@homersimpsons

Problem

Some SOAP api have a staging and a production domain. They sometimes provide only the production wsdl files and hence the developper is responsible to manually change the domain to the correct environment.

Context

The documentation says:

- `endpoint` (_string_): Override the host specified by the SOAP service in the WSDL file.

But this looks incorrect as it seems to override the full endpoint (including the URI part)

It is possible to override the httpClient but doing so is not really convenient

Suggested feature

Add a domain option or a urlHandler that would allow overriding the domain (or the full url, for example, to add a /staging prefix to the uri). The developer would then be able to use this to easily switch between environments.

I'm interested to try to contribute to this change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions