PHP調用WCF(HTTPS & BasicHttpBinding & NoSecurity)

摘要:PHP調用WCF(HTTPS & BasicHttpBinding & NoSecurity)


header('Content-Type: text/html; charset=utf-8');
try
{

	$client = new SoapClient("https://service.svc?wsdl");

	// Method : GetSupplierInvoiceList
	$params=array("strPONo"=-->"001"); //Put the service parameters here
	$response = $client->GetList($params);
	$result = $response->GetListResult;
	print_r($result->PO->PONo);//The easyest way to see the result.
}
catch(Exception $e)
{

	echo $e->getMessage();
}

 


人生到處知何似
應似飛鴻踏雪泥