How to create a soapvar object for xsd: anyType

Can someone explain how to assign a type to anytype paramater using soapvar in php?

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

For instance:

 $arr=array('key'=>new SoapVar('EMAIL_ADDRESS',SOAP_ENC_OBJECT,'xsd:anyType'),'value'=>new SoapVar(' xxxx@gmail.com ',SOAP_ENC_OBJECT,'xsd:anyType')); 

When passing the specified array to userprofile in the user register along the soapclient in yodlee sdk, an "Unknown" exception is returned.

+4
source share
1 answer

Hai finally found out that my problem is with the namespace url problem, and I used this

 $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')); 

and got a solution from yodlee server thanks to everyone

+5
source

Source: https://habr.com/ru/post/1390604/


All Articles