Expand my Community achievements bar.

Problem calling webservice method

Avatar

Level 1
Hello,

I have a problem with flex which is caused no end of head
scratching;

I've used the Flex Builder import webservice wizard to create
the classes.

I've connected and used some of the web services methods
correctly. However when I need to pass a complex type to a method I
get an error thrown in SOAPencoder.as

The error is:

TypeError: Cannot marshall type '
http://www.w3.org/2001/XMLSchema::ArrayOfanyType'
to simple content.



The params I'm passing to the method are:

xsd:complexType name="HashMap">

<xsd:sequence>

<xsd:element name="keys" type="xsd:ArrayOfanyType"/>

<xsd:element name="values" type="xsd:ArrayOfanyType"/>

</xsd:sequence>

</xsd:complexType>



Does anyone have any ideas?
0 Replies