Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/265.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何从SOAP类型获取值?_Php_Web Services_Soap_Wsdl - Fatal编程技术网

Php 如何从SOAP类型获取值?

Php 如何从SOAP类型获取值?,php,web-services,soap,wsdl,Php,Web Services,Soap,Wsdl,存在具有以下内容的WSDL文档: <xsd:simpleType name="CurrencyTypeEnum"> <xsd:restriction base="xsd:int"> <xsd:enumeration value="1" description="Rubles"/> <xsd:enumeration value="2" description="Dollars"/> </xsd:restr

存在具有以下内容的WSDL文档:

<xsd:simpleType name="CurrencyTypeEnum">
   <xsd:restriction base="xsd:int">
       <xsd:enumeration value="1" description="Rubles"/>
       <xsd:enumeration value="2" description="Dollars"/>
   </xsd:restriction>
</xsd:simpleType>
问题:如何使用PHP的SOAP扩展从SOAP答案中获取单词“卢布”


我自己已经试过了,但是没有结果。谢谢。

它们没有列出,您只能从XML中获取它们


例如,项目从模式中提取它们,以便生成常量类,例如

您有一些如何从SimpleXML中获取它的示例吗?用DOMDocument加载WSDL并使用DOM提供的方法很简单,那么问题在哪里呢?你的意思是什么?你需要什么?没有办法从SOAP扩展中获取值,就是这样!谢谢!«DOMDocument»是我正在搜索的关键字
Array
(
    [0] => int CurrencyTypeEnum
}