WSDL to PHP with Basic Auth

后端 未结 7 711
青春惊慌失措
青春惊慌失措 2020-11-30 10:28

I need to build php classes from a WSDL that is behind basic auth.

It has tons of namespaces so it looks burdensome to do this by hand.

I have tried a few to

7条回答
  •  孤城傲影
    2020-11-30 10:38

    Using built in SOAP client, you should have something like this:

    $options = array(
        'login' => $username,
        'password' => $password,
    );
    $client = new SoapClient($wsdl, $options);
    

提交回复
热议问题