Necesito que me den una mano con esto.
Estoy consumiendo un webservice, realizado en .NET, con Soap y PHP.
Necesito extraer el valor de estos campos:
<xs:element name="cProfesional" type="xs:string" minOccurs="0" />
<xs:element name="cProyecto" type="xs:string" minOccurs="0" />
<xs:element name="fFecha" type="xs:dateTime" minOccurs="0" />
<xs:element name="kHoras" type="xs:double" minOccurs="0" />
<xs:element name="dHoras" type="xs:string" minOccurs="0" />
<xs:element name="cTarea" type="xs:string" minOccurs="0" />
<xs:element name="cTipoEsfuerzo" type="xs:string" minOccurs="0" />
<xs:element name="IdBug" type="xs:decimal" minOccurs="0" />
Cuando consumo el webservice y le hago un print_r a la variable $result (es un array) me devuelve lo siguiente:
Código PHP:
stdClass Object
(
[ViewHorasResult] => stdClass Object
(
[schema] => <xs:schema xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="NewDataSet"><xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true"><xs:complexType><xs:choice minOccurs="0" maxOccurs="unbounded"><xs:element name="Table1"><xs:complexType><xs:sequence><xs:element name="cProfesional" type="xs:string" minOccurs="0"/><xs:element name="cProyecto" type="xs:string" minOccurs="0"/><xs:element name="fFecha" type="xs:dateTime" minOccurs="0"/><xs:element name="kHoras" type="xs:double" minOccurs="0"/><xs:element name="dHoras" type="xs:string" minOccurs="0"/><xs:element name="cTarea" type="xs:string" minOccurs="0"/><xs:element name="cTipoEsfuerzo" type="xs:string" minOccurs="0"/><xs:element name="IdBug" type="xs:decimal" minOccurs="0"/></xs:sequence></xs:complexType></xs:element></xs:choice></xs:complexType></xs:element></xs:schema>
[any] => <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1"><NewDataSet xmlns=""><Table1 diffgr:id="Table11" msdata:rowOrder="0">
<cProfesional>JUANCITO</cProfesional>
<cProyecto>PROYECTO1</cProyecto>
<fFecha>2009-12-11T00:00:00-03:00</fFecha>
<kHoras>6</kHoras>
<dHoras>Testing de fuentes entregados por TRP</dHoras>
<cTarea>GENERAL </cTarea>
<cTipoEsfuerzo>DESA</cTipoEsfuerzo>
</Table1>
</NewDataSet>
</diffgr:diffgram>
</DataSet>
)
)
en una grilla o solo poder mostrarlos.
Desde ya agradezco quien me de una mano con esto.