Jump to content

How to get data from .NET web services to PHP array


meggie

Recommended Posts

Hi all,

 

I am having problem to get data from .NET web services to PHP array.

Here is my web services output,

++++++++++++++++++++++++++++++++++++++++

<?xml version="1.0" encoding="utf-8" ?>

 

- <ArrayOfFruit xmlns:xsd="http://www.w3.org/2001/XMLSchema"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns="http://www.mydomain.com/">

 

- <Fruit>

<name>Orange</name>

<type>Fruit</type>

<family>Acid</family>

<max>5</max>

<Used>0</Used>

<Remain>5</Remain>

</Fruit>

- <Fruit>

<name>Banana</name>

<type>Fruit</type>

<family>Base</family>

<max>10</max>

<Used>0</Used>

<Remain>10</Remain>

</Fruit>

</ArrayOfFruit>

+++++++++++++++++++++++++++++++++++++++++++++

How can I write PHP array to get this data?

Thanks.

  • 4 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.