谁能解释一下如何在php中使用soapvar为任何类型的参数分配类型?
<complexType name="Entry">
<sequence>
<element name="key" nillable="true" type="xsd:anyType" minOccurs="0" />
<element name="value" nillable="true" type="xsd:anyType" minOccurs="0" />
</sequence>
</complexType>例如:
$arr=array('key'=>new SoapVar('EMAIL_ADDRESS',SOAP_ENC_OBJECT,'xsd:anyType'),'value'=>new SoapVar('xxxx@gmail.com',SOAP_ENC_OBJECT,'xsd:anyType'));当在yodlee sdk中沿着soapclient传递注册用户中userprofile的上述数组时,它返回“未知”异常。
发布于 2012-01-13 17:41:45
Hai,我终于找到了我的问题,它基于名称空间的url问题,我使用了这个
$arr=array('key'=>new SoapVar('EMAIL_ADDRESS',XSD_ANYTYPE,'string','http://www.w3.org/2001/XMLSchema','key'),'value'=>new SoapVar('xxxx@gmail.com',XSD_ANYTYPE,'string','http://www.w3.org/2001/XMLSchema','value')); 并从yodlee服务器获得了解决方案
https://stackoverflow.com/questions/8832898
复制相似问题