parsing using xml using SOAP 1.2

Discussion in 'PHP' started by capbackfire, Feb 19, 2008.

  1. #1
    may someone help me on parsing an xml SOAP 1.2 i need to store and display its response. i have a NUSOAP here but i don't know how to extract it.
    here's the xml..

    <?xml version="1.0" encoding="utf-8" ?>
    - <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    - <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
    - <xs:complexType>
    - <xs:choice minOccurs="0" maxOccurs="unbounded">
    - <xs:element name="CallHistory">
    - <xs:complexType>
    - <xs:sequence>
    <xs:element name="billing_id" type="xs:long" minOccurs="0" />
    <xs:element name="connect_date_time" type="xs:dateTime" minOccurs="0" />
    <xs:element name="detail" type="xs:string" minOccurs="0" />
    <xs:element name="quantity" type="xs:decimal" minOccurs="0" />
    <xs:element name="per_minute_charge" type="xs:decimal" minOccurs="0" />
    <xs:element name="amount" type="xs:decimal" minOccurs="0" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:choice>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    - <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
    - <NewDataSet xmlns="">
    - <CallHistory diffgr:id="CallHistory1" msdata:rowOrder="0">
    <billing_id>1551</billing_id>
    <connect_date_time>2007-10-01T10:42:48.437+08:00</connect_date_time>
    <detail />
    <quantity>0.0000</quantity>
    <per_minute_charge>0.0000</per_minute_charge>
    <amount>-200.0000</amount>
    </CallHistory>
    - <CallHistory diffgr:id="CallHistory2" msdata:rowOrder="1">
    <billing_id>1571</billing_id>
    <connect_date_time>2008-02-13T04:02:31.543+08:00</connect_date_time>
    <detail>639214266596</detail>
    <quantity>1.3000</quantity>
    <per_minute_charge>11.5000</per_minute_charge>
    <amount>14.9500</amount>
    </CallHistory>
    </NewDataSet>
    </diffgr:diffgram>
    </DataSet>
     
    capbackfire, Feb 19, 2008 IP