dtpn60029 2017-07-05 15:35
浏览 61
已采纳

如何从SOAP类型获取值?

There are WSDL document with following:

<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>

When print_r($client->__getTypes()) I get this return: (it’s okay)

Array
(
    [0] => int CurrencyTypeEnum
}

Question: How I can get word «Rubles» from SOAP answer using SOAP extension from PHP?

Already tried to find it myself, but without some results. Thanks.

  • 写回答

1条回答 默认 最新

报告相同问题?