任何人都可以解释如何在php中使用soapvar为anytype参数指定类型?
<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>
Run Code Online (Sandbox Code Playgroud)
例如:
$arr=array('key'=>new SoapVar('EMAIL_ADDRESS',SOAP_ENC_OBJECT,'xsd:anyType'),'value'=>new SoapVar('xxxx@gmail.com',SOAP_ENC_OBJECT,'xsd:anyType'));
Run Code Online (Sandbox Code Playgroud)
当在yodlee sdk中沿soapclient向寄存器用户传递userprofile的上述数组时,它返回"Unknown"异常.