[英]SOAP request laravel
I want to request SOAP Service by Laravel. 我想通过Laravel请求SOAP服务。 I use SOAPUI to request by xml i can get the response data.
我使用SOAPUI通过xml请求,我可以获得响应数据。 But when i write in code i can't get response return only Null.
但是,当我写代码时,我无法获得响应,仅返回Null。
I try these in SOAPUI 我在SOAPUI中尝试这些
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cds="http://cdss.ofss.com/service/cdsSCustomerService">
<soapenv:Header/>
<soapenv:Body>
<cds:QUERYCUSTOMER_IOFS_REQ>
<cds:cdsS_HEADER>
<cds:SOURCE>JSFT</cds:SOURCE>
<cds:UBSCOMP>cdsS</cds:UBSCOMP>
<cds:USERID>JSFT</cds:USERID>
<cds:BRANCH>002</cds:BRANCH>
<cds:SERVICE>cdsSCustomerService</cds:SERVICE>
<cds:OPERATION>QueryCustomer</cds:OPERATION>
</cds:cdsS_HEADER>
<cds:cdsS_BODY>
<cds:Customer-IO>
<cds:CUSTID>00001882</cds:CUSTNO>
</cds:Customer-IO>
</cds:cdsS_BODY>
</cds:QUERYCUSTOMER_IOFS_REQ>
</soapenv:Body>
</soapenv:Envelope>
and these my laravel code: 这些是我的Laravel代码:
$this->soapWrapper->add('cds', function ($service) {
$service
->wsdl('http://192.168.100.40/findustomerService/findustomerService?wsdl');
});
$source='JSFT';
$ubscomp='cdsS';
$userid='JSFT';
$branch='002';
$service='cdsSCustomerService';
$operation='QueryCustomer';
$custno='00001882';
$param=array(
'SOURCE'=>$source,
'UBSCOMP'=>$ubscomp,
'USERID'=>$userid,
'BRANCH'=>$branch,
'SERVICE'=>$service,
'OPERATION'=>$operation,
'CUSTID'=>$custno);
$response = $this->soapWrapper->call('cds.QueryCustomerIO',$param);
dd($response);
I stuck with these almost three days anyone have solution for me? 我坚持了将近三天,有人能为我解决吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.