I want to use SOAP client from Laravel with Java consuming web service. but I cannot get the response from my web service even I testing that web service via SOAP UI is ok. Please help me to solve this problem I almost stuck here for a week. Any mistake from my writing or not clear information can ask me. Please, everyone, I need your help.
My XML request from SOAP UI and can get the result
<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>
My Scrip in Controller
$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',array($param));
dd($response);
I got an error
SOAP-ERROR: Encoding: object has no 'cdsS_HEADER' property