0
我正在使用php soap來實現發佈應用程序的保險策略。我設置了一切,並且我從web service獲取響應號碼。但是我不知道如何從Web服務獲取響應數據(xml )。以下我提供了我的Web服務請求和響應。PHP Soap wsdl回覆問題
這就是我trying..please指導我的代碼。
class SOAPStruct
{
function __construct($user, $pass)
{
$this->userName = $user;
$this->Password = $pass;
}
}
$service = new SoapClient("https://es.adpolice.gov.ae/TrafficInsurance/TrafficInsuranceServicesNew.asmx?wsdl", array('trace' => 1));
$auth = new SOAPStruct('*****','****');
$header = new SoapHeader("http://adpolice.gov.ae/TrafficInsurance/TrafficInsuranceServices.asmx",'SoapHeaderIn',$auth,false);
$service->__setSoapHeaders(array($header));
$param = array('lngInsuranceCompanyCode'=> '1','intInsuranceKindCode'=>'1','lngTcf'=>'1','strPolicyNo'=>'1','dtExpiryDate'=>'2016-04-30','dtStartDate'=>'2015-03-31','strChassisNo'=>'6T1BE4DFDFDFDFD','strRemarks'=>'dfdf','strUserCreated'=>'dfdfd');
$response = $service->CreateVehicleInsurancePolicy($param);
print_r($response);