如何从WSDL Soap获取/显示数据?

时间:2018-11-26 04:14:48

标签: laravel web-services soap get wsdl

我下面有肥皂网络服务来调用/获取数据

$this->soapWrapper->add('MOMSp', function ($service) {
      $service
        ->wsdl('http://192.168.0.xxx/xxx/xxx.asmx?WSDL')

        ->trace(true)
        ->cache(WSDL_CACHE_NONE)
        //->customHeader($myheader)
       
        ->options([
              'login' => 'xxx',
              'password' => 'xxx'
         ])

        ->classmap([
               MOMCallBscResponse::class
        ]);
    });


$response = $this->soapWrapper->call('MOMSp.MOMCallBsc', [
        [
           'AppNo' => '259b62168b7c4cad853caf721230cb58'
        ]
    ]);

    var_dump($response);
    dd($response);
    exit;
    

我想基于AppNo调用/显示数据,当我尝试上面的代码时我得到null,

MOMCallBscResponse {#975 ▼

  #MOMCallBscResult: null

}

请帮助我

0 个答案:

没有答案