Hi,
I'm a newbie trying to get a hang of PHP and web services - i am receiving a response like so:
<soapenv:Envelope>
<soapenv:Header/>
?
<soapenv:Body>
?
<ns:getProductResponse>
?
<return>
<product id="10663806"><mfg-pn>E96BP-2</mfg-pn><catalog-key v="spr"/><cat id="4962"/><mfg id="1020207" name="Energizer Holdings, Inc"/><mp-mfg id="-1" key="" n=""/><skus><sku v="039800030771" t="UPC"/><sku v="EVEE96BP2" t="SP Richards"/><sku v="E96BP-2" t="MFGPARTNUMBER"/></skus><descriptions><pd d="false" t="3"><dv>Alkaline - 595mAh - 1.5V DC - General Purpose Battery</dv></pd><pd d="false" t="2"><dv>Energizer AAAA Alkaline Cell Battery</dv></pd><pd/></descriptions><category-headers><ch id="35" do="1" ddo="1" n="General Information" t="0"><cat id="4962" name="Batteries" pid="10039"/><display-attributes><dat ddo="1" do="0" n="Manufacturer"><v>Energizer Holdings, Inc</v></dat><dat ddo="2" do="0" n="Manufacturer Part Number"><v>E96BP-2</v></dat><dat ddo="4" do="0" n="Product Name"><v>AAAA Alkaline Cell Battery</v></dat><dat ddo="6" do="0" n="Packaged Quantity"><v>2</v></dat><dat ddo="9" do="0" n="Product Type"><v>General Purpose Battery</v></dat></display-attributes></ch><ch id="2" do="2" ddo="2" n="Battery Information" t="0"><cat id="4962" name="Batteries" pid="10039"/><display-attributes><dat ddo="1" do="0" n="Battery Size"><v>AAAA</v></dat><dat ddo="2" do="0" n="Battery Chemistry"><v>Alkaline</v></dat><dat ddo="3" do="0" n="Capacity"><v>595mAh</v></dat><dat ddo="4" do="0" n="Output Voltage"><v>1.5 V DC </v></dat></display-attributes></ch></category-headers></product>
</return>
</ns:getProductResponse>
</soapenv:Body>
</soapenv:Envelope>
How do i parse this information??
Appreciate the help
I'm a newbie trying to get a hang of PHP and web services - i am receiving a response like so:
<soapenv:Envelope>
<soapenv:Header/>
?
<soapenv:Body>
?
<ns:getProductResponse>
?
<return>
<product id="10663806"><mfg-pn>E96BP-2</mfg-pn><catalog-key v="spr"/><cat id="4962"/><mfg id="1020207" name="Energizer Holdings, Inc"/><mp-mfg id="-1" key="" n=""/><skus><sku v="039800030771" t="UPC"/><sku v="EVEE96BP2" t="SP Richards"/><sku v="E96BP-2" t="MFGPARTNUMBER"/></skus><descriptions><pd d="false" t="3"><dv>Alkaline - 595mAh - 1.5V DC - General Purpose Battery</dv></pd><pd d="false" t="2"><dv>Energizer AAAA Alkaline Cell Battery</dv></pd><pd/></descriptions><category-headers><ch id="35" do="1" ddo="1" n="General Information" t="0"><cat id="4962" name="Batteries" pid="10039"/><display-attributes><dat ddo="1" do="0" n="Manufacturer"><v>Energizer Holdings, Inc</v></dat><dat ddo="2" do="0" n="Manufacturer Part Number"><v>E96BP-2</v></dat><dat ddo="4" do="0" n="Product Name"><v>AAAA Alkaline Cell Battery</v></dat><dat ddo="6" do="0" n="Packaged Quantity"><v>2</v></dat><dat ddo="9" do="0" n="Product Type"><v>General Purpose Battery</v></dat></display-attributes></ch><ch id="2" do="2" ddo="2" n="Battery Information" t="0"><cat id="4962" name="Batteries" pid="10039"/><display-attributes><dat ddo="1" do="0" n="Battery Size"><v>AAAA</v></dat><dat ddo="2" do="0" n="Battery Chemistry"><v>Alkaline</v></dat><dat ddo="3" do="0" n="Capacity"><v>595mAh</v></dat><dat ddo="4" do="0" n="Output Voltage"><v>1.5 V DC </v></dat></display-attributes></ch></category-headers></product>
</return>
</ns:getProductResponse>
</soapenv:Body>
</soapenv:Envelope>
How do i parse this information??
Appreciate the help