如何从PHP中获取wsdl返回数据的值?

时间:2013-05-25 06:56:02

标签: wsdl

以下是我从wsdl响应获得的数据...我需要获取单独的值,例如如何从此数组中获取firstname ...请任何人帮助我......

GetReportResponse对象([GetReportResult] => MBPeopleSearchRs_Type对象([MsgRsHdr] => MsgRsHdr_Type对象([RqUID] => {4DB2AD23-228A-465F-938D-BE072CED61C4} [状态] => Status_Type对象( [StatusCode] => 0 [ServerStatusCode] => [Severity] => Info [StatusDesc] => OK [AdditionalStatus] =>))[Subject] =>主题对象([RefNum] => [PersonInfo] => PersonInfo_Type对象([PersonName] => PersonName_Type对象([LastName] => JANARDHANAN [FirstName] => SENTHINBABU [FullName] => [MiddleName] => [TitlePrefix] => [NameSuffix] => [昵称] => [LegalName] => [MaidenName] => [OfficialTitle] => [来源] => MB [EffDt] => 2013-05-24)[ ContactInfo] => ContactInfo_Type对象([ContactPref] => [PhoneNum] => [ContactName] => [EmailAddr] => [URL] => [PostAddr] => PostAddr_Type对象([PreDirection] => [Addr2] => [PostDirection] => N [Addr3] => [StreetType] => AVE [Addr4] => [StreetName] => LEXINGTON [Apt] => APT 4203 [StreetNum] => 4150 [Addr1] => [City] => SAINT PAUL [StateProv] => MN [PostalCode] => 55126-6131 [县] => RAMSEY

1 个答案:

答案 0 :(得分:0)

我建议使用一个框架。如果您编写Java,CXF是一个不错的选择。

http://cxf.apache.org/

编辑:因为你使用php,看看这里:PHP SOAP client Tutorial/Recommendation?