PHP parsing. net webservice returned dataset I wrote.. net webservice application. PHP calls the webservice method through soapclient and returns a dataset-type data. The result is a standard XML document, but the result is printed using PHP. & nbsp; & lt ;? Xmlversion & quot; 1.0 & quot; encodi PHP parses the dataset returned by. Net webservice
I wrote. net webservice application, PHP calls the webservice method through soapclient, returns a dataset type data, get a standard XML document, but print the result with PHP,
-
-
-
-
-
-
-
-
-
-
-
1
Yang
This is the XML document we can see, but it is printed after being called by PHP.
StdClass Object ([dsResult] => stdClass Object ([schema] => [any] => 1 yang ))
Is such a class type.
What I want to get is a result set in the format of a_di = 1 aname = yang, just like the result set returned by PHP directly querying the database.
Or other formats, but it can be parsed by me.
I checked a lot on the Internet and said that dataset is in XML format, but I am not familiar with PHP. I don't know how to do it.
------ Solution --------------------
StdClass Object ([dsResult] => stdClass Object ([schema] => [any] => 1 yang ))
======================================
If you print something like this, it means the call is okay.
You can see the original code on the page. result-> dsResult-> any should be an xml string.
You can use simplexml_load_string to parse the string and check the manual.