Flex SDK 2.0.1 Hotfix 2 contains a new WebService implementation that should handle attributes in addition to elements... this hotfix should be out very soon.
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of ecpmaz Sent: Tuesday, May 22, 2007 10:29 AM To: [email protected] Subject: [flexcoders] Re: WebService request serialization : XML attributes Nobody has any webservice with attributes required in the request ??? :( {Maz} --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "ecpmaz" <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a soap method described like that : > > =========================== > <s:complexType base="s0:Credential"> > <s:sequence/> > <s:attribute name="Login" type="s:string" use="required"/> > <s:attribute name="Password" type="s:string" use="optional"/> > ... > </s:complexType> > > <s:element name="login"> > <s:complexType> > <s:sequence> > <s:element name="credential" type="s0:Credential"/> > </s:sequence> > </s:complexType> > </s:element> > > <message name="loginSoapIn"> > <part element="s0:login" name="parameters"/> > </message> > > <operation name="login"> > <input message="s0:loginSoapIn"/> > ... > </operation> > =========================== > > Here you see that credential has Login and Password as *xml > attributes*, not nested xml elements... So how should I call this method ? > > It seems that whatever I do, the request is serialized like that : > || <credential> > || <Login>...</Login> > || <Password>...</Password> > || </credential> > > Instead of : > || <credential Login="..." Password="..." /> > > > Any help ? :s > > {Maz} >

