how to call web services using soap in php

前端 未结 2 432
感情败类
感情败类 2021-01-06 14:38
The following is a sample SOAP 1.1 request and response.:
POST /atservices/1.5/atws.asmx HTTP/1.1
Host: webservices2.autotask.net
Content-Type: text/xml; charset=utf         


        
2条回答
  •  走了就别回头了
    2021-01-06 14:52

    At the very least, you should be aiming for something like this. More can be found here.

    $soap = new SoapClient('link/to/.wsdl');
    $result = $soap->__soapCall('getZoneInfo', array('UserName' => $username));
    var_dump($result);
    

提交回复
热议问题