I'm implementing a SOAP client with PHP SoapClient.
The wsdl-file specifies URL for a function of type http (like http://api.example.com/a/b).
However, when called, I get a response
HTTP/1.0 301 Moved Permanently
Location: https://api...
Apparently the SoapClient can not handle the redirect.
How can I solve the issue?