I needed to call a webservice, which had a illegal soap:address location inside of the wsdl.
http://mydomain.com.test is obviously wrong. The correct address would be
The correct way of fixing this, would be to fix the WSDL. But sometimes it just isn’t in your control. In that case, you can generate the client stub, like you always do and override the endpoint.