From: mayamatakeshi <may...@gm...> - 2009-05-18 04:31:37
|
Hello, I'm not sure if this is a bug with wsdl2py. I used it to generate code for a .NET WebService. The result expected to be returned by the WS is defined in the WSDL as: <s:element minOccurs="0" maxOccurs="1" name="GetEXSAppInstancesStatusResult"> <s:complexType mixed="true"> <s:sequence> <s:any /> </s:sequence> </s:complexType> </s:element> And this is what the response looks like (i'm omitting the outer xml): <GetEXSAppInstancesStatusResult> <Response xmlns=""> <FieldNames>AppInstanceID,Host</FieldNames> <Rows> <Row>210,NFP34210</Row> <Row>211,NFP34211</Row> <Row>212,NFP34212</Row> </Rows> </Response> </GetEXSAppInstancesStatusResult> But when I use the class generated by wsdl2py to get the response, this is what I got: { 'FieldNames': u'AppInstanceID,Host' , 'Rows': {'Row': u'212,NFP34212'} } So, the value of 'Rows' is being defined as a Dict instead of a Tuple/List and new 'Row' elements are overwriting the previous one so that only the last one shows up in the response. Is this a problem with the definition in WSDL or with wsdl2py? regards, takeshi |