0
我有這樣的代碼:如何將一個php soap代碼轉換爲xml?
$soapClient = new SoapClient("https://soapserver.example.com/blahblah.asmx?wsdl");
// Prepare SoapHeader parameters
$sh_param = array(
'Username' => 'username',
'Password' => 'password');
$headers = new SoapHeader('http://soapserver.example.com/webservices', 'UserCredentials', $sh_param);
怎麼能看到的$頭的XML代碼?
好吧,如果也許你不明白我檢查this question了。正如你可以看到詢問的人顯示一個「肥皂代碼」,然後顯示相應的XML。這就是我想要的,得到相應的xml代碼。
問候
哈維