meggie Posted December 24, 2007 Share Posted December 24, 2007 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. Link to comment https://forums.phpfreaks.com/topic/83033-how-to-get-data-from-net-web-services-to-php-array/ Share on other sites More sharing options...
samisa Posted January 21, 2008 Share Posted January 21, 2008 With PHP Web services framework, you can use the WSDL mode and define a class to map to the incoming data and get the data filled in. This way you would be able to handle the arrays too. Link to comment https://forums.phpfreaks.com/topic/83033-how-to-get-data-from-net-web-services-to-php-array/#findComment-444872 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.