Hello,
I have a webservice that operates on a datamodel, as shown in
the xsd given below(part of it):-
<complexType name="PersonNameType">
<sequence>
<choice maxOccurs="unbounded">
<element name="GivenName" type="mpeg7:NameComponentType"
/>
<element minOccurs="0" name="LinkingName"
type="mpeg7:NameComponentType" />
<element minOccurs="0" name="FamilyName"
type="mpeg7:NameComponentType" />
<element minOccurs="0" name="Title"
type="mpeg7:NameComponentType" />
<element minOccurs="0" name="Salutation"
type="mpeg7:NameComponentType" />
<element minOccurs="0" name="Numeration" type="string"
/>
</choice>
</sequence>
</complexType>
<complexType name="NameComponentType">
<simpleContent>
<extension base="mpeg7:TextualBaseType">
<attribute name="initial" type="string" use="optional"
/>
<attribute name="abbrev" type="string" use="optional"
/>
</extension>
</simpleContent>
</complexType>
While invoking webservice from flex using AS3
Setting values in the givenname of NameComponentType throws
the following Exception:
Error #1034: Type Coercion failed: cannot convert
tva.mpeg7._2005::NameComponentType@30acc69 to QName.
Somehow it is not able to identify the NameComponent Type,
the moment i try to create and initialize its values, i get the
above error.
Kindly advice as to what might be happening ...
Thanks in advance,
KayGeeBee