The best thing to do here is to use the debugger and look at [webService id].[operation name].lastResult there to see the object structure that has been created based on the return data.  If it doesn't look right, post here again with the structure of the object as well as details of the web service such as Java/.NET/CFC , style and use.
 

Carson
 

____________________________________________
 
Carson Hager
Cynergy Systems, Inc.
http://www.cynergysystems.com
 
Email:  [EMAIL PROTECTED]
Office:  866-CYNERGY
Mobile: 1.703.489.6466

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of kriskross9898
Sent: Friday, July 14, 2006 1:47 AM
To: [email protected]
Subject: [flexcoders] flex web service that returns an object

I'm working on a flex application, using Adobe Flex 2.0, and I'm trying to use a web service method that retuns an object.
I have several methods in the web service that works, so it's not the connection to the web service it self, but the object that returns from the method getWebObject I can't figure out.

<mx:WebService id="getTest" wsdl="http://localhost:6060/webservice/getTest?WSDL">
<mx:operation name="getWebObject" resultFormat="object"></mx:operation>
<mx:operation name="sayHello"></mx:operation>
</mx:WebService>

Then I call the method like this:
[webService id].[operation name].lastResult.[name of the Object from the wsdl file].[name of the String that i need from the wsdl] as: getTest.getWebObject.lastResult.ObjectTest.DD

The Object description in the wsdl file looks like this:
<complexType name="ObjectTest">
<sequence>
<element name="DD" type="string" />
<element name="DR" type="string" />
</sequence>
</complexType>

Can anyone please tell me how I can bind the property to the object correct?
I allso need to use another method that returns an ArrayList of the same object?
Is this possible?

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





YAHOO! GROUPS LINKS




__,_._,___

Reply via email to