可以任意編碼大師伸出援助之手,SOAP PHP返回數據
我提出以下SOAP調用:
$acc = 192838;
$vec1 = array(
'USERNAME'=>'test',
'PASSWORD'=>'test',
'BRANCHID'=>231,
'Customer_AccountNo'=>$acc
);
$soap_client = new SoapClient('https://test.com/externalintegration.asmx?WSDL');
$info = $soap_client->Get_CustomerInfo($vec1);
var_dump($info);
它返回以下數據:
對象(stdClass的) #2(1){[「Get_CustomerInfoResult」] => object(stdClass)#3(2){[「schema」] => string(4205)「」[「any」] => string(2419)「192838ADELW7210250821972- 10-03T00:00:00 + 02:00ENGLISHFEMALESINGLE6 CARWELL STREET,HIGHS RIVERCAPE TOWN3REET,HIGBURY PKUILS RIRCAPE [email protected] 478680707647868070219804897YES2015-06-04T12:55:02.49 + 02:314 00DISPUTED216LIT9AMSRAMSGAT90039 9090CAPITEC BANK470010AD Wentzel116056ARDINE LPSON SA1ST樓層,建築物3,富森QUTER,SSSS [email protected] PILLAY1Employeyed2518970.00003000.0000CLATOS 「}}
的數據是被返回一個字符串,但我需要訪問個人信息。
Firstnames
姓
IdentityNo
電子郵件
等。
預先感謝您的幫助!
WSDL:
<s:element name="Get_CustomerInfo">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="USERNAME" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="PASSWORD" type="s:string"/>
<s:element minOccurs="1" maxOccurs="1" name="BRANCHID" type="s:long"/>
<s:element minOccurs="1" maxOccurs="1" name="Customer_AccountNo" type="s:long"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="Get_CustomerInfoResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Get_CustomerInfoResult">
<s:complexType>
<s:sequence>
<s:element ref="s:schema"/>
<s:any/>
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
爲了保護隱私,我希望數據字符串中的電子郵件地址是假的。否則,你應該從你的帖子中刪除它們。 – mindriot
所以...答案就像一個csv? – Mauro