Expand my Community achievements bar.

Issues with Flex Web Services code - Cannot Marshall

Avatar

Former Community Member

I'm starting to get the feeling that the Flex Web Services autogenerated code isn't that widely used, I've already run into a few problems with the autogenerated code with WSDL's that work fine in other platforms.  My current issue is in trying to send a complex type as a parameter to a web service.

The parameter is defined as:

<xsd:element name="SiteCategoriesParameters">

     <xsd:complexType>
           <xsd:sequence>
                <xsd:choice maxOccurs="1" minOccurs="1">                </xsd:choice>
           </xsd:sequence>
     </xsd:complexType>

</xsd:element>

This generates an object called SiteCategoriesParametersChoice_type0 that the service call expects to be passed.  When I make that call I get an error that says "Type Error: Cannot marshall type 'http://www.w3.org/2001/XMLSchema::SiteCategoriesParametersChoice_type0' to simple content".  I can't seem to get around this error without changing the WSDL, regardless of what kind of data I use to create the SiteCategoeisParametersChoice_type0 object.

Any ideas?  Are there any groups or discussions specifically for using the WebServices generated code?

John Dietz

0 Replies