网上找的实例代码:

    $client = new soapclient("http://host/Webservice.asmx?WSDL", true);
    
$client->soap_defencoding = 'UTF-8';
    
$client->decode_utf8 = false;
    
if ($client->getError()) {
        
// error
        return false;
    }
    
$param = array('arg1'=>$arg1);
    
$result = $client->call('RemoteMethod', array('parameters'=>$param), '', '', false, 
        
true, 'dcoument', 'encoded');
    
if ($client->fault) {
        
// error
        return false;
    }
    
    
if ($client->getError()) {
        
// error
        return false;
    }
    
    
if ($result) {
        
// Done
        return $result;
    } 
else {
        
// others...
    }

相关文章:

  • 2021-10-02
  • 2022-02-11
  • 2021-07-20
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-30
  • 2021-08-13
  • 2022-03-08
  • 2021-10-26
  • 2022-12-23
  • 2021-09-21
  • 2021-10-16
相关资源
相似解决方案