How to make a PHP SOAP call using the SoapClient class

后端 未结 12 729
星月不相逢
星月不相逢 2020-11-22 17:28

I\'m used to writing PHP code, but do not often use Object-Oriented coding. I now need to interact with SOAP (as a client) and am not able to get the syntax right. I\'ve got

12条回答
  •  Happy的楠姐
    2020-11-22 17:40

    There is an option to generate php5 objects with WsdlInterpreter class. See more here: https://github.com/gkwelding/WSDLInterpreter

    for example:

    require_once 'WSDLInterpreter-v1.0.0/WSDLInterpreter.php';
    $wsdlLocation = '?wsdl';
    $wsdlInterpreter = new WSDLInterpreter($wsdlLocation);
    $wsdlInterpreter->savePHP('.');
    

提交回复
热议问题