Home  >  Article  >  Backend Development  >  WebService 的 xml 参数 怎样读取,该如何处理

WebService 的 xml 参数 怎样读取,该如何处理

WBOY
WBOYOriginal
2016-06-13 12:01:551029browse

WebService 的 xml 参数 怎样读取
php 写的webservice ,函数的参数是一个xml格式的字符串,其他开发语言调用该函数时,传过来的是一个包含xml信息的stdClass,此时该对象的具体类型到底是什么,怎样操作咧?新手求解。
------解决方案--------------------
stdClass 是 php 内置的数据对象

------解决方案--------------------
不可以,stdClass 对象只有数据,没有方法
你用 var_export 打印出来看看
------解决方案--------------------
为何不用soap?
------解决方案--------------------
结果是xml,通过php处理,就出来了

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn