[flexcoders] Re: Flex with .Net

2009-10-14 Thread jc_bad28
WebOrb is pretty sweet.  I did run into some problems where our backend data 
wasn't setup very well and I couldn't assign table relations in WebOrb.  
Workaround was using views and stored procedures.

I'm currently playing around with WSO2's Web Service Application Server 
(http://wso2.com).  It makes exposing data as web services very easy and very 
fast. It's a good alternative for those that don't want to use .net.  It's also 
opensource and free which is a huge bonus as well. :)  

--- In flexcoders@yahoogroups.com, MicC chigwel...@... wrote:

 
 
 We have just switched from FlexSQL web service ($19.00) to WebOrb. FlexSQL 
 works well but I think we threw too many users at it and it was having 
 trouble wrapping our 4000 returned rows for OLAP cube in the xml format it 
 uses. WebOrb is fast and efficient, and handles many users. We are calling 
 our SQLServer2005 stored procedures with it. WebOrb comes with lots of good 
 code examples also. There is a community version which is free, but the 
 Enterprise edition costs.
 
 Mic. 
 
 --- In flexcoders@yahoogroups.com, Jehanzeb Musani jehanzeb_bs@ wrote:
 
  The easiest thing would be to expose a web service written in .NET can 
  invoke with Flex UI. Make sure you rely on the primitive types or design 
  your protocol (objects encoded it in xml and pass as string to webservice). 
  It's simple but will not be very efficient.
  
  The other approach you can resort to is using WebORB.NET.
  
  Regards,
  Jehanzeb
  
  
  
  
  From: Ramkumar nrk150@
  To: nrk150@
  Sent: Tue, October 6, 2009 12:34:08 PM
  Subject: [flexcoders] Flex with .Net
  

  Hi All,
  We have the application on .Net and we have to replace the asp pages with 
  flex UI.
  I am little bit exposure only to flex(I am java developer) and dont have 
  knowledge on .Net.
  Please provide me sample codes(like the data passing from UI to db) and 
  materials for doing the application.
  from there i will try to manage my self.
   
  Thanks and Regards,
  N.Ramkumar
 





[flexcoders] Re: Flex with .Net

2009-10-13 Thread MicC


We have just switched from FlexSQL web service ($19.00) to WebOrb. FlexSQL 
works well but I think we threw too many users at it and it was having trouble 
wrapping our 4000 returned rows for OLAP cube in the xml format it uses. WebOrb 
is fast and efficient, and handles many users. We are calling our SQLServer2005 
stored procedures with it. WebOrb comes with lots of good code examples also. 
There is a community version which is free, but the Enterprise edition costs.

Mic. 

--- In flexcoders@yahoogroups.com, Jehanzeb Musani jehanzeb...@... wrote:

 The easiest thing would be to expose a web service written in .NET can invoke 
 with Flex UI. Make sure you rely on the primitive types or design your 
 protocol (objects encoded it in xml and pass as string to webservice). It's 
 simple but will not be very efficient.
 
 The other approach you can resort to is using WebORB.NET.
 
 Regards,
 Jehanzeb
 
 
 
 
 From: Ramkumar nrk...@...
 To: nrk...@...
 Sent: Tue, October 6, 2009 12:34:08 PM
 Subject: [flexcoders] Flex with .Net
 
   
 Hi All,
 We have the application on .Net and we have to replace the asp pages with 
 flex UI.
 I am little bit exposure only to flex(I am java developer) and dont have 
 knowledge on .Net.
 Please provide me sample codes(like the data passing from UI to db) and 
 materials for doing the application.
 from there i will try to manage my self.
  
 Thanks and Regards,
 N.Ramkumar





[flexcoders] Re: Flex with .Net

2009-10-08 Thread valdhor
Have a look at WebORB 
(http://www.themidnightcoders.com/products/weborb-for-net/overview.html)

--- In flexcoders@yahoogroups.com, Ramkumar nrk...@... wrote:

 Hi All,
 We have the application on .Net and we have to replace the asp pages with
 flex UI.
 I am little bit exposure only to flex(I am java developer) and dont have
 knowledge on .Net.
 Please provide me sample codes(like the data passing from UI to db) and
 materials for doing the application.
 from there i will try to manage my self.
 
 Thanks and Regards,
 N.Ramkumar





[flexcoders] Re: Flex and .NET

2009-06-09 Thread valdhor
I don't understand why you would send the entire data set back to your .NET 
backend via the web service.

The backend has already generated the data to be sent and the backend is what 
generates the report via Crystal Reports. I would have thought the best way was 
to send the query back to the back end, get it to do the data lookup again and 
pass the data into Crystal Reports.


HTH



Steve


--- In flexcoders@yahoogroups.com, Angelo Anolin angelo_ano...@... wrote:

 
 
 Hi Sam,
 
 Thanks for your reply.
 
 As of now, I actually prefer to utilize what I know on .NET and what I am 
 learning on Flex. Adding another utility (Web Orb) in my learning process may 
 complicate things a bit.  I might consult this later if I feel that the needs 
 for is getting tremendous.
 
 Anyway, I am actually able to generate the report from what I am currently 
 doing (no error encountered), where the ArrayCollection I am parsing into a 
 delimited string, passing the string to the webservice call, and letting the 
 webservice de-serialize the string to populate a Crystal report document 
 which I subsequentlt display in another browser window which I call from the 
 Flex application.
 
 I mentioned that I did not feel it is the BEST way because I am literally 
 storing all datagrid (report) information in a string variable.  Assuming for 
 example that the data displayed in the datagrid is quite huge, then creating 
 the delimited string would take some time and additional processing time 
 could also be consumbed by the back end web service to parse the string and 
 populate the report.
 
 As of now, this is what the application does.
 1. Flex App calls a webservice to retrieve data.
 2. WebService responds by sending back a dataset which is returned as a 
 string (via Dataset.GetXML method of .NET).
 3. Flex App gets the service response, converts the string into an XML.
 4. Flex App converts the XML data into an ArrayCollection which is bound to 
 the datagrid.
 * Please note that I used array collection here for the search/filter 
 functionality of the datagrid.
 5. When generating print out of the data displayed in the datagrid, Flex 
 would then serialize the ArrayCollection into a delimited string and send it 
 to the web service.
 6. Web Service would then de-serialize (or parse) the string, populate a .NET 
 dataset which is the datasource for the Crystal report.
 7. Crystal report is bound and PDF report is generated.
 8. Flex displays via external javascript call the PDF report generated.
 
 Is there a better way for the ArrayCollection to be sent to the webservice, 
 the webservice in turn would just convert it to dataset and the dataset is 
 immediately bound to the Crystal report?  
 
 Thanks.
 
 Regards,
 
 Angelo
 
 
 
 From: Sam Lai samuel@...
 To: flexcoders@yahoogroups.com
 Sent: Monday, 8 June, 2009 8:49:36
 Subject: Re: [flexcoders] Flex and .NET
 
 
 
 
 
 2009/6/8 Angelo Anolin angelo_anolin@ yahoo.com:
 
  I feel that this is probably not the BEST way of doing this.  I tried
  initially to pass an XML delimmited string, but .NET seems to read XML
  differently( ?) from Flex.
 
 I'd say XML would be a good way of doing it. What kind of errors are
 you getting, and how are you making the web service call?
 
 The other option is to use AMF, a native messaging format for
 Flash/Flex. This I believe would save you the effort of serializing
 and deserializing - it does it for you, among other things.
 
 http://www.themidni ghtcoders. com/products/ weborb-for- net/overview. html





Re: [flexcoders] Re: Flex and .NET

2009-06-09 Thread Angelo Anolin
Hi Steve,

The dataset which I am using in my Flex app is being edited, with some records 
added or deleted or filtered.  As I am doing this in the Flex application, the 
backend service (web service) does not know which have been modified, thus, I 
need to send back the current data I have in the Flex application.

By the way, some updates on this.

I tried to send the ArrayCollection as it is in .NET and I am getting the same 
as an ArrayList, which contains XML document tags.  The only beef with this is 
that there is no actual tag for the field (column), so I have no idea which 
column to actually map back to the dataset.

I am going to field portions of the data returned back tomorrow, as my codes 
are all in my office machine.

Thanks and regards,

Angelo








From: valdhor valdhorli...@embarqmail.com
To: flexcoders@yahoogroups.com
Sent: Tuesday, 9 June, 2009 21:31:56
Subject: [flexcoders] Re: Flex and .NET





I don't understand why you would send the entire data set back to your .NET 
backend via the web service.

The backend has already generated the data to be sent and the backend is what 
generates the report via Crystal Reports. I would have thought the best way was 
to send the query back to the back end, get it to do the data lookup again and 
pass the data into Crystal Reports.

HTH

Steve

--- In flexcod...@yahoogro ups.com, Angelo Anolin angelo_anolin@ ... wrote:

 
 
 Hi Sam,
 
 Thanks for your reply.
 
 As of now, I actually prefer to utilize what I know on .NET and what I am 
 learning on Flex. Adding another utility (Web Orb) in my learning process may 
 complicate things a bit.  I might consult this later if I feel that the needs 
 for is getting tremendous.
 
 Anyway, I am actually able to generate the report from what I am currently 
 doing (no error encountered) , where the ArrayCollection I am parsing into a 
 delimited string, passing the string to the webservice call, and letting the 
 webservice de-serialize the string to populate a Crystal report document 
 which I subsequentlt display in another browser window which I call from the 
 Flex application.
 
 I mentioned that I did not feel it is the BEST way because I am literally 
 storing all datagrid (report) information in a string variable.  Assuming for 
 example that the data displayed in the datagrid is quite huge, then creating 
 the delimited string would take some time and additional processing time 
 could also be consumbed by the back end web service to parse the string and 
 populate the report.
 
 As of now, this is what the application does.
 1. Flex App calls a webservice to retrieve data.
 2. WebService responds by sending back a dataset which is returned as a 
 string (via Dataset.GetXML method of .NET).
 3. Flex App gets the service response, converts the string into an XML.
 4. Flex App converts the XML data into an ArrayCollection which is bound to 
 the datagrid.
 * Please note that I used array collection here for the search/filter 
 functionality of the datagrid.
 5. When generating print out of the data displayed in the datagrid, Flex 
 would then serialize the ArrayCollection into a delimited string and send it 
 to the web service.
 6. Web Service would then de-serialize (or parse) the string, populate a .NET 
 dataset which is the datasource for the Crystal report.
 7. Crystal report is bound and PDF report is generated.
 8. Flex displays via external javascript call the PDF report generated.
 
 Is there a better way for the ArrayCollection to be sent to the webservice, 
 the webservice in turn would just convert it to dataset and the dataset is 
 immediately bound to the Crystal report?  
 
 Thanks.
 
 Regards,
 
 Angelo
 
 
  _ _ __
 From: Sam Lai samuel.lai@ ...
 To: flexcod...@yahoogro ups.com
 Sent: Monday, 8 June, 2009 8:49:36
 Subject: Re: [flexcoders] Flex and .NET
 
 
 
 
 
 2009/6/8 Angelo Anolin angelo_anolin@ yahoo.com:
 
  I feel that this is probably not the BEST way of doing this.  I tried
  initially to pass an XML delimmited string, but .NET seems to read XML
  differently( ?) from Flex.
 
 I'd say XML would be a good way of doing it. What kind of errors are
 you getting, and how are you making the web service call?
 
 The other option is to use AMF, a native messaging format for
 Flash/Flex. This I believe would save you the effort of serializing
 and deserializing - it does it for you, among other things.
 
 http://www.themidni ghtcoders. com/products/ weborb-for- net/overview. html



   


  

[flexcoders] Re: Flex and .NET

2009-06-08 Thread Mark Piller
 the ArrayCollection I am parsing 
  into a
   delimited string, passing the string to the webservice call, and 
  letting the
   webservice de-serialize the string to populate a Crystal report document
   which I subsequentlt display in another browser window which I call 
  from the
   Flex application.
  
   I mentioned that I did not feel it is the BEST way because I am 
  literally
   storing all datagrid (report) information in a string variable.  
  Assuming
   for example that the data displayed in the datagrid is quite huge, then
   creating the delimited string would take some time and additional 
  processing
   time could also be consumbed by the back end web service to parse 
  the string
   and populate the report.
  
   As of now, this is what the application does.
   1. Flex App calls a webservice to retrieve data.
   2. WebService responds by sending back a dataset which is returned as a
   string (via Dataset.GetXML method of .NET).
   3. Flex App gets the service response, converts the string into an XML.
   4. Flex App converts the XML data into an ArrayCollection which is 
  bound to
   the datagrid.
   * Please note that I used array collection here for the search/filter
   functionality of the datagrid.
   5. When generating print out of the data displayed in the datagrid, Flex
   would then serialize the ArrayCollection into a delimited string and 
  send it
   to the web service.
   6. Web Service would then de-serialize (or parse) the string, populate a
   .NET dataset which is the datasource for the Crystal report.
   7. Crystal report is bound and PDF report is generated.
   8. Flex displays via external javascript call the PDF report generated.
  
   Is there a better way for the ArrayCollection to be sent to the 
  webservice,
   the webservice in turn would just convert it to dataset and the 
  dataset is
   immediately bound to the Crystal report?
  
   Thanks.
  
   Regards,
  
   Angelo
   
   From: Sam Lai samuel@... mailto:samuel.lai%40gmail.com
   To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
   Sent: Monday, 8 June, 2009 8:49:36
   Subject: Re: [flexcoders] Flex and .NET
  
   2009/6/8 Angelo Anolin angelo_anolin@ yahoo.com:
  
   I feel that this is probably not the BEST way of doing this.  I tried
   initially to pass an XML delimmited string, but .NET seems to read XML
   differently( ?) from Flex.
  
   I'd say XML would be a good way of doing it. What kind of errors are
   you getting, and how are you making the web service call?
  
   The other option is to use AMF, a native messaging format for
   Flash/Flex. This I believe would save you the effort of serializing
   and deserializing - it does it for you, among other things.
  
   http://www.themidni ghtcoders. com/products/ weborb-for- 
  net/overview. html
  
  
  
  
 
 





[flexcoders] Re: Flex Dot Net

2007-12-27 Thread twcrone70
If you want to build simple XML-based services with your server code it really 
doesn't 
make much difference to Flex.  You can even use SOAP web services and Flex has 
a way to 
interact with them although I wouldn't suggest starting off using SOAP unless 
mandated 
but that is a different issue.

Flex is truly just a 'front-end' builder that can stay loosely coupled to your 
server code.  If 
you want tighter integration with smaller data transfer you will want to look 
into using 
AMF.  This will have a server specific component to it.  Unfortunately I use 
Java for my 
server code so I am not sure what you would need to look into for AMF on a .NET 
server.

Probably should start simple, with XML services first.  We used the 'Training 
from the 
Source... book to get started in general.

Good luck!

- Todd

--- In flexcoders@yahoogroups.com, NileAge, Mail [EMAIL PROTECTED] wrote:

 We need a complete guide to Flex with .Net
 
 Can anyone can help me plz ?






RE: [flexcoders] Re: Flex and .net webservices

2007-01-10 Thread Robin Burrer
Thanks Ben,

 

Changing the data type to Number didn't help either. I'll have a look at
Darron's solution ...

 

Cheers

 

Robin

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Tuesday, 12 December 2006 4:56 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex and .net webservices

 

Might want to try making employeeID a Number instead of an int. If
that doesn't work use this:
http://www.darronschall.com/weblog/archives/000247.cfm
http://www.darronschall.com/weblog/archives/000247.cfm 

HTH,
Ben

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Robin Burrer [EMAIL PROTECTED] wrote:

 Thanks Ben,
 
 
 
 I tried that. It still does not work ..:-(. I got rid of everything
 which could cause errors. ... 
 
 Here's the code. I reckon this is as basic as it gets ...
 
 
 
 
 
 
 
 public function onMyResult(event:ResultEvent):void
 
 
 
 {
 
 // this works fine
 
 var myObject:Object =
 Object(event.result);
 
 
 
 
 
 // this causes an error
 (Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to
 webserviceClasses.Employee.)
 
 var myEmployee:Employee
 = Employee(event.result);
 
 
 
 
 
 // does not work 
 
 trace
 (myEmployee.employeeName); 
 
 
 
 // does work
 
 trace
 (myObject.employeeName); 
 
 
 
 
 
 
 
 }
 
 
 
 
 
 ]]
 
 
 
 
 
 
 
 /// the web service object
 
 /mx:Script
 
 
 
 mx:WebService showBusyCursor=true
 wsdl=http://localhost/ComplexDataTypeService/Service1.asmx?WSDL
http://localhost/ComplexDataTypeService/Service1.asmx?WSDL 
 id=myWebservice makeObjectsBindable=false
 
 mx:operation name=getDetails result={
 onMyResult (event)} resultFormat=object/
 
 
 
 /mx:WebService
 
 
 
 // the Employee object:
 
 
 
 
 
 public class Employee (AS)
 
 {
 
 public var employeeName:String;
 
 public var employeeID:int;
 
 
 
 }
 
 
 
 (c#)
 
 public class Employee 
 
 {
 
 public string employeeName;
 
 public int employeeID;
 
 
 
 }
 
 
 
 
 
 
 
 
 
 
 
 Any ideas?
 
 
 
 Robin
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of ben.clinkinbeard
 Sent: Tuesday, 12 December 2006 2:02 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Re: Flex and .net webservices
 
 
 
 Hi Robin,
 
 I have good news :), both of these issues should go away by setting a
 single attribute on your WebService object. Try setting
 makeObjectsBindable = false. This will cause Flex to deserialize your
 ws responses into regular Object and Array instances instead of
 ObjectProxy and ArrayCollection instances.
 
 HTH,
 Ben
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 , Robin Burrer rburrer@ wrote:
 
  Hi there,
  
  
  
  I have been playing around .net and flex for a while. Primarily I
want
  to send value objects (consisting of strings, intergers and arrays
of
  VOs) back and forth.
  
  
  
  I could not figure out how to do the following things though:
  
  
  
  
  
  1. Sending arrays to a webservice works fine. However when I
  receive an array of the .net data type array flex creates and
Array
  Collection data type. Sending arrays as array collections to a web
  service causes an error. That's really annoying when you try to keep
  the VOs consitent on both ends. What's the solution for this?
  
  
  
  
  
  2. When I receive a complex data type from a .net web service flex
  creates an Object but when I try to cast this object to the dataType
 it
  represents I get a complier error, even though the received object
has
  exactly the same properties as underlying VO.
  
  
  
  E.g. I get the following error code if I try to cast the result of a
  webservice call to my custom data Type TelephoneNumber. Note
casting
  to an Object works fine.
  
  
  
  
  
  TypeError: Error #1034: Type Coercion failed: cannot convert
  mx.utils::[EMAIL PROTECTED] to webserviceClasses.TelephoneNumber.
  
  
  
  
  
  Any help is highly appreciated.
  
  
  
  
  
  Robin
 


 



Re: [flexcoders] Re: Flex and .net webservices

2006-12-12 Thread Sam Shrefler

Robin:

It sounds like you may be looking for a Remoting Gateway which uses AMF
rather than Web Services and has the ability to translate .NET - AS
Objects.

I've got articles written on two different options, Fluorine and WebOrb.

http://blog.shrefler.net/?p=6
http://blog.shrefler.net/?p=10

Hope that helps

Sam


On 12/12/06, Robin Burrer [EMAIL PROTECTED] wrote:


   Darron's  ObjectTranslator works perfectly – thanks for the tip! I
still have to do some manual work though since I'm going to have nested
VOs….



R


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Robin Burrer
*Sent:* Tuesday, 12 December 2006 3:32 PM
*To:* flexcoders@yahoogroups.com
*Subject:* RE: [flexcoders] Re: Flex and .net webservices



Thanks Ben,



I tried that. It still does not work ..:-(. I got rid of everything which
could cause errors. …

Here's the code. I reckon this is as basic as it gets …







public function onMyResult(event:ResultEvent):void



{

// this works fine

var myObject:Object =
Object(event.result);





// this causes an error (Error
#1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to
webserviceClasses.Employee.)

var myEmployee:Employee =
Employee(event.result);





// does not work

trace (
myEmployee.employeeName);



// does work

trace (
myObject.employeeName);







}





]]







/// the web service object

/mx:Script



mx:WebService showBusyCursor=true 
wsdl=http://localhost/ComplexDataTypeService/Service1.asmx?WSDL;
id=myWebservice makeObjectsBindable=false

mx:operation name=getDetails result={
onMyResult (event)} resultFormat=object/



/mx:WebService



// the Employee object:





public class Employee (AS)

{

public var employeeName:String;

public var employeeID:int;



}



(c#)

  public class Employee

  {

public string employeeName;

public int employeeID;



  }











Any ideas?



Robin


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *ben.clinkinbeard
*Sent:* Tuesday, 12 December 2006 2:02 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Re: Flex and .net webservices



Hi Robin,

I have good news :), both of these issues should go away by setting a
single attribute on your WebService object. Try setting
makeObjectsBindable = false. This will cause Flex to deserialize your
ws responses into regular Object and Array instances instead of
ObjectProxy and ArrayCollection instances.

HTH,
Ben

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Robin
Burrer [EMAIL PROTECTED] wrote:

 Hi there,



 I have been playing around .net and flex for a while. Primarily I want
 to send value objects (consisting of strings, intergers and arrays of
 VOs) back and forth.



 I could not figure out how to do the following things though:





 1. Sending arrays to a webservice works fine. However when I
 receive an array of the .net data type array flex creates and Array
 Collection data type. Sending arrays as array collections to a web
 service causes an error. That's really annoying when you try to keep
 the VOs consitent on both ends. What's the solution for this?





 2. When I receive a complex data type from a .net web service flex
 creates an Object but when I try to cast this object to the dataType it
 represents I get a complier error, even though the received object has
 exactly the same properties as underlying VO.



 E.g. I get the following error code if I try to cast the result of a
 webservice call to my custom data Type TelephoneNumber. Note casting
 to an Object works fine.





 TypeError: Error #1034: Type Coercion failed: cannot convert
 mx.utils::[EMAIL PROTECTED] to webserviceClasses.TelephoneNumber.





 Any help is highly appreciated.





 Robin


 



Re: [flexcoders] Re: Flex and .net webservices

2006-12-12 Thread Patrick Mineault
Try ObjectUtil.toString(myObject)

Patrick

Robin Burrer a écrit :

 Thanks Ben,

 I tried that. It still does not work ..:-(. I got rid of everything 
 which could cause errors. …

 Here’s the code. I reckon this is as basic as it gets …

 public function onMyResult(event: ResultEvent) :void

 {

 // this works fine

 var myObject:Object = Object(event. result);

 // this causes an error ( Error #1034: Type Coercion failed: cannot 
 convert [EMAIL PROTECTED] to webserviceClasses. Employee. )

 var myEmployee:Employee = Employee(event. result);

 // does not work

 trace (myEmployee. employeeName) ;

 // does work

 trace (myObject.employeeN ame);

 }

 ]]

 /// the web service object

 /mx:Script

 mx:WebService showBusyCursor=true wsdl=http://localhost/ 
 ComplexDataTypeS ervice/Service1. asmx?WSDL id=myWebservice 
 makeObjectsBindable =false

 mx:operation name=getDetails result={ onMyResult (event)} 
 resultFormat=object/

 /mx:WebService

 // the Employee object:

 public class Employee (AS)

 {

 public var employeeName: String;

 public var employeeID:int;

 }

 (c#)

 public class Employee

 {

 public string employeeName;

 public int employeeID;

 }

 Any ideas?

 Robin

 * From: * [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. 
 com] *On Behalf Of *ben.clinkinbeard
 *Sent:* Tuesday, 12 December 2006 2:02 PM
 *To:* [EMAIL PROTECTED] ups.com
 *Subject:* [flexcoders] Re: Flex and .net webservices

 Hi Robin,

 I have good news :), both of these issues should go away by setting a
 single attribute on your WebService object. Try setting
 makeObjectsBindable = false. This will cause Flex to deserialize your
 ws responses into regular Object and Array instances instead of
 ObjectProxy and ArrayCollection instances.

 HTH,
 Ben

 --- In [EMAIL PROTECTED] ups.com 
 mailto:flexcoders%40yahoogroups.com, Robin Burrer [EMAIL PROTECTED]  
 wrote:
 
  Hi there,
 
 
 
  I have been playing around .net and flex for a while. Primarily I want
  to send value objects (consisting of strings, intergers and arrays of
  VOs) back and forth.
 
 
 
  I could not figure out how to do the following things though:
 
 
 
 
 
  1. Sending arrays to a webservice works fine. However when I
  receive an array of the .net data type array flex creates and Array
  Collection data type. Sending arrays as array collections to a web
  service causes an error. That's really annoying when you try to keep
  the VOs consitent on both ends. What's the solution for this?
 
 
 
 
 
  2. When I receive a complex data type from a .net web service flex
  creates an Object but when I try to cast this object to the dataType it
  represents I get a complier error, even though the received object has
  exactly the same properties as underlying VO.
 
 
 
  E.g. I get the following error code if I try to cast the result of a
  webservice call to my custom data Type TelephoneNumber . Note casting
  to an Object works fine.
 
 
 
 
 
  TypeError: Error #1034: Type Coercion failed: cannot convert
  mx.utils::ObjectPro [EMAIL PROTECTED] to webserviceClasses. TelephoneNumber.
 
 
 
 
 
  Any help is highly appreciated.
 
 
 
 
 
  Robin
 

  



--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] Re: Flex and .net webservices

2006-12-12 Thread Diego Guebel
Hi Sam,
I've read your tutorial, good stuff. I've been using flourine for a while  
in different projects but I haven't got the chance to use weborb.
As you've tried both of them, I was wondering if you can make a comparison  
table or a pro and cons of each of them. It would be great.

BTW, how do you send nullable objects back and forth?

Cheers, Diego.


On Wed, 13 Dec 2006 02:08:06 +1300, Sam Shrefler [EMAIL PROTECTED]  
wrote:

 Robin:

 It sounds like you may be looking for a Remoting Gateway which uses AMF
 rather than Web Services and has the ability to translate .NET - AS
 Objects.

 I've got articles written on two different options, Fluorine and WebOrb.

 http://blog.shrefler.net/?p=6
 http://blog.shrefler.net/?p=10

 Hope that helps

 Sam


 On 12/12/06, Robin Burrer [EMAIL PROTECTED] wrote:

Darron's  ObjectTranslator works perfectly – thanks for the tip! I
 still have to do some manual work though since I'm going to have nested
 VOs….



 R


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]  
 *On
 Behalf Of *Robin Burrer
 *Sent:* Tuesday, 12 December 2006 3:32 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* RE: [flexcoders] Re: Flex and .net webservices



 Thanks Ben,



 I tried that. It still does not work ..:-(. I got rid of everything  
 which
 could cause errors. …

 Here's the code. I reckon this is as basic as it gets …







 public function onMyResult(event:ResultEvent):void



 {

 // this works fine

 var myObject:Object =
 Object(event.result);





 // this causes an error  
 (Error
 #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to
 webserviceClasses.Employee.)

 var myEmployee:Employee  
 =
 Employee(event.result);





 // does not work

 trace (
 myEmployee.employeeName);



 // does work

 trace (
 myObject.employeeName);







 }





 ]]







 /// the web service object

 /mx:Script



 mx:WebService showBusyCursor=true  
 wsdl=http://localhost/ComplexDataTypeService/Service1.asmx?WSDL;
 id=myWebservice makeObjectsBindable=false

 mx:operation name=getDetails result={
 onMyResult (event)} resultFormat=object/



 /mx:WebService



 // the Employee object:





 public class Employee (AS)

 {

 public var employeeName:String;

 public var employeeID:int;



 }



 (c#)

   public class Employee

   {

 public string employeeName;

 public int employeeID;



   }











 Any ideas?



 Robin


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]  
 *On
 Behalf Of *ben.clinkinbeard
 *Sent:* Tuesday, 12 December 2006 2:02 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: Flex and .net webservices



 Hi Robin,

 I have good news :), both of these issues should go away by setting a
 single attribute on your WebService object. Try setting
 makeObjectsBindable = false. This will cause Flex to deserialize your
 ws responses into regular Object and Array instances instead of
 ObjectProxy and ArrayCollection instances.

 HTH,
 Ben

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Robin
 Burrer [EMAIL PROTECTED] wrote:
 
  Hi there,
 
 
 
  I have been playing around .net and flex for a while. Primarily I want
  to send value objects (consisting of strings, intergers and arrays of
  VOs) back and forth.
 
 
 
  I could not figure out how to do the following things though:
 
 
 
 
 
  1. Sending arrays to a webservice works fine. However when I
  receive an array of the .net data type array flex creates and Array
  Collection data type. Sending arrays as array collections to a web
  service causes an error. That's really annoying when you try to keep
  the VOs consitent on both ends. What's the solution for this?
 
 
 
 
 
  2. When I receive a complex data type from a .net web service flex
  creates an Object but when I try to cast this object to the dataType  
 it
  represents I get a complier error, even though the received object has
  exactly the same properties as underlying VO.
 
 
 
  E.g. I get the following error code if I try to cast the result of a
  webservice call to my custom data Type TelephoneNumber. Note casting
  to an Object works fine.
 
 
 
 
 
  TypeError: Error #1034: Type Coercion failed: cannot convert
  mx.utils::[EMAIL PROTECTED] to webserviceClasses.TelephoneNumber.
 
 
 
 
 
  Any help is highly

Re: [flexcoders] Re: Flex and .net webservices

2006-12-12 Thread Sam Shrefler

Diego:

First:  Compare...I haven't used WebOrb at all past that.  So my table
consists of:

Free vs Paid - i've chosen free at this point.  WebOrb looks like an awesome
product always being updated, but ihaven't had the need/chance to use it yet

Second:

Nullable objects!  Ah yes...something I beat my head against the desk for
quite some time with DateTimes.

in .NET:  public NullableDateTime myDateTime;
Nothing changes in Flex.

Hope that helps

Sam


On 12/12/06, Diego Guebel [EMAIL PROTECTED] wrote:


  Hi Sam,
I've read your tutorial, good stuff. I've been using flourine for a while
in different projects but I haven't got the chance to use weborb.
As you've tried both of them, I was wondering if you can make a comparison

table or a pro and cons of each of them. It would be great.

BTW, how do you send nullable objects back and forth?

Cheers, Diego.


On Wed, 13 Dec 2006 02:08:06 +1300, Sam Shrefler [EMAIL 
PROTECTED]sshrefler%40gmail.com

wrote:

 Robin:

 It sounds like you may be looking for a Remoting Gateway which uses AMF
 rather than Web Services and has the ability to translate .NET - AS
 Objects.

 I've got articles written on two different options, Fluorine and WebOrb.

 http://blog.shrefler.net/?p=6
 http://blog.shrefler.net/?p=10

 Hope that helps

 Sam


 On 12/12/06, Robin Burrer [EMAIL PROTECTED] rburrer%40hubb.com wrote:

 Darron's ObjectTranslator works perfectly – thanks for the tip! I
 still have to do some manual work though since I'm going to have nested
 VOs….



 R


 --

 *From:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com[mailto:
flexcoders@yahoogroups.com flexcoders%40yahoogroups.com]
 *On
 Behalf Of *Robin Burrer
 *Sent:* Tuesday, 12 December 2006 3:32 PM
 *To:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 *Subject:* RE: [flexcoders] Re: Flex and .net webservices



 Thanks Ben,



 I tried that. It still does not work ..:-(. I got rid of everything
 which
 could cause errors. …

 Here's the code. I reckon this is as basic as it gets …







 public function onMyResult(event:ResultEvent):void



 {

 // this works fine

 var myObject:Object =
 Object(event.result);





 // this causes an error
 (Error
 #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to
 webserviceClasses.Employee.)

 var myEmployee:Employee
 =
 Employee(event.result);





 // does not work

 trace (
 myEmployee.employeeName);



 // does work

 trace (
 myObject.employeeName);







 }





 ]]







 /// the web service object

 /mx:Script



 mx:WebService showBusyCursor=true
 wsdl=http://localhost/ComplexDataTypeService/Service1.asmx?WSDL;
 id=myWebservice makeObjectsBindable=false

 mx:operation name=getDetails result={
 onMyResult (event)} resultFormat=object/



 /mx:WebService



 // the Employee object:





 public class Employee (AS)

 {

 public var employeeName:String;

 public var employeeID:int;



 }



 (c#)

 public class Employee

 {

 public string employeeName;

 public int employeeID;



 }











 Any ideas?



 Robin


 --

 *From:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com[mailto:
flexcoders@yahoogroups.com flexcoders%40yahoogroups.com]
 *On
 Behalf Of *ben.clinkinbeard
 *Sent:* Tuesday, 12 December 2006 2:02 PM
 *To:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 *Subject:* [flexcoders] Re: Flex and .net webservices



 Hi Robin,

 I have good news :), both of these issues should go away by setting a
 single attribute on your WebService object. Try setting
 makeObjectsBindable = false. This will cause Flex to deserialize your
 ws responses into regular Object and Array instances instead of
 ObjectProxy and ArrayCollection instances.

 HTH,
 Ben

 --- In flexcoders@yahoogroups.com 
flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com, Robin
 Burrer [EMAIL PROTECTED] wrote:
 
  Hi there,
 
 
 
  I have been playing around .net and flex for a while. Primarily I
want
  to send value objects (consisting of strings, intergers and arrays of
  VOs) back and forth.
 
 
 
  I could not figure out how to do the following things though:
 
 
 
 
 
  1. Sending arrays to a webservice works fine. However when I
  receive an array of the .net data type array flex creates and Array
  Collection data type. Sending arrays as array collections to a web
  service causes an error. That's really annoying when you try to keep
  the VOs consitent on both ends. What's the solution for this?
 
 
 
 
 
  2. When I receive a complex data type from a .net web service flex
  creates an Object but when I try to cast this object to the dataType
 it
  represents I get a complier error, even though the received object
has
  exactly the same properties as underlying VO.
 
 
 
  E.g. I get the following error code if I try to cast the result of a
  webservice call to my custom data Type TelephoneNumber. Note
casting
  to an Object works fine.
 
 
 
 
 
  TypeError: Error #1034: Type

Re: [flexcoders] Re: Flex and .net webservices

2006-12-12 Thread Diego Guebel
Hi Sam,
I've made the same decision  :D

What about nullable boolean and the rest of the possible types?

cheers, Diego.


On Wed, 13 Dec 2006 09:51:43 +1300, Sam Shrefler [EMAIL PROTECTED]  
wrote:

 Diego:

 First:  Compare...I haven't used WebOrb at all past that.  So my table
 consists of:

 Free vs Paid - i've chosen free at this point.  WebOrb looks like an  
 awesome
 product always being updated, but ihaven't had the need/chance to use it  
 yet

 Second:

 Nullable objects!  Ah yes...something I beat my head against the desk for
 quite some time with DateTimes.

 in .NET:  public NullableDateTime myDateTime;
 Nothing changes in Flex.

 Hope that helps

 Sam


 On 12/12/06, Diego Guebel [EMAIL PROTECTED] wrote:

   Hi Sam,
 I've read your tutorial, good stuff. I've been using flourine for a  
 while
 in different projects but I haven't got the chance to use weborb.
 As you've tried both of them, I was wondering if you can make a  
 comparison

 table or a pro and cons of each of them. It would be great.

 BTW, how do you send nullable objects back and forth?

 Cheers, Diego.


 On Wed, 13 Dec 2006 02:08:06 +1300, Sam Shrefler  
 [EMAIL PROTECTED]sshrefler%40gmail.com

 wrote:

  Robin:
 
  It sounds like you may be looking for a Remoting Gateway which uses  
 AMF
  rather than Web Services and has the ability to translate .NET - AS
  Objects.
 
  I've got articles written on two different options, Fluorine and  
 WebOrb.
 
  http://blog.shrefler.net/?p=6
  http://blog.shrefler.net/?p=10
 
  Hope that helps
 
  Sam
 
 
  On 12/12/06, Robin Burrer [EMAIL PROTECTED] rburrer%40hubb.com  
 wrote:
 
  Darron's ObjectTranslator works perfectly – thanks for the tip! I
  still have to do some manual work though since I'm going to have  
 nested
  VOs….
 
 
 
  R
 
 
  --
 
  *From:* flexcoders@yahoogroups.com  
 flexcoders%40yahoogroups.com[mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com]
  *On
  Behalf Of *Robin Burrer
  *Sent:* Tuesday, 12 December 2006 3:32 PM
  *To:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  *Subject:* RE: [flexcoders] Re: Flex and .net webservices
 
 
 
  Thanks Ben,
 
 
 
  I tried that. It still does not work ..:-(. I got rid of everything
  which
  could cause errors. …
 
  Here's the code. I reckon this is as basic as it gets …
 
 
 
 
 
 
 
  public function onMyResult(event:ResultEvent):void
 
 
 
  {
 
  // this works fine
 
  var myObject:Object =
  Object(event.result);
 
 
 
 
 
  // this causes an error
  (Error
  #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to
  webserviceClasses.Employee.)
 
  var myEmployee:Employee
  =
  Employee(event.result);
 
 
 
 
 
  // does not work
 
  trace (
  myEmployee.employeeName);
 
 
 
  // does work
 
  trace (
  myObject.employeeName);
 
 
 
 
 
 
 
  }
 
 
 
 
 
  ]]
 
 
 
 
 
 
 
  /// the web service object
 
  /mx:Script
 
 
 
  mx:WebService showBusyCursor=true
  wsdl=http://localhost/ComplexDataTypeService/Service1.asmx?WSDL;
  id=myWebservice makeObjectsBindable=false
 
  mx:operation name=getDetails result={
  onMyResult (event)} resultFormat=object/
 
 
 
  /mx:WebService
 
 
 
  // the Employee object:
 
 
 
 
 
  public class Employee (AS)
 
  {
 
  public var employeeName:String;
 
  public var employeeID:int;
 
 
 
  }
 
 
 
  (c#)
 
  public class Employee
 
  {
 
  public string employeeName;
 
  public int employeeID;
 
 
 
  }
 
 
 
 
 
 
 
 
 
 
 
  Any ideas?
 
 
 
  Robin
 
 
  --
 
  *From:* flexcoders@yahoogroups.com  
 flexcoders%40yahoogroups.com[mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com]
  *On
  Behalf Of *ben.clinkinbeard
  *Sent:* Tuesday, 12 December 2006 2:02 PM
  *To:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  *Subject:* [flexcoders] Re: Flex and .net webservices
 
 
 
  Hi Robin,
 
  I have good news :), both of these issues should go away by setting a
  single attribute on your WebService object. Try setting
  makeObjectsBindable = false. This will cause Flex to deserialize your
  ws responses into regular Object and Array instances instead of
  ObjectProxy and ArrayCollection instances.
 
  HTH,
  Ben
 
  --- In flexcoders@yahoogroups.com  
 flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com, Robin
  Burrer [EMAIL PROTECTED] wrote:
  
   Hi there,
  
  
  
   I have been playing around .net and flex for a while. Primarily I
 want
   to send value objects (consisting of strings, intergers and arrays  
 of
   VOs) back and forth.
  
  
  
   I could not figure out how to do the following things though:
  
  
  
  
  
   1. Sending arrays to a webservice works fine. However when I
   receive an array of the .net data type array flex creates and  
 Array
   Collection data type. Sending arrays as array collections to a  
 web
   service causes an error. That's really annoying when you try to  
 keep
   the VOs consitent on both ends. What's the solution

RE: [flexcoders] Re: Flex and .net webservices

2006-12-12 Thread Robin Burrer
Hi Sam,

 

Remoting is definitely a good alternative and would probably make things
a bit easier. I'm not programming the .net side of things though and the
guys who are working on the backend are not too keen on using a
technology which is not established standards yet. 

 

I had a look at Fluorine earlier this year and it looks very good
though

 

Cheers

 

Robin



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sam Shrefler
Sent: Wednesday, 13 December 2006 12:08 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Flex and .net webservices

 

Robin:

It sounds like you may be looking for a Remoting Gateway which uses AMF
rather than Web Services and has the ability to translate .NET - AS
Objects.

I've got articles written on two different options, Fluorine and WebOrb.


http://blog.shrefler.net/?p=6 http://blog.shrefler.net/?p=6 
http://blog.shrefler.net/?p=10 http://blog.shrefler.net/?p=10 

Hope that helps

Sam



On 12/12/06, Robin Burrer [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
wrote:

Darron's  ObjectTranslator works perfectly - thanks for the tip! I still
have to do some manual work though since I'm going to have nested
VOs

 

R

 



From: flexcoders@yahoogroups.com [mailto: flexcoders@
mailto:flexcoders@ yahoogroups.com http://yahoogroups.com ] On
Behalf Of Robin Burrer
Sent: Tuesday, 12 December 2006 3:32 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Flex and .net webservices

 

Thanks Ben,

 

I tried that. It still does not work ..:-(. I got rid of everything
which could cause errors. ... 

Here's the code. I reckon this is as basic as it gets ...

 

 

 

public function onMyResult(event:ResultEvent):void



{

// this works fine

var myObject:Object =
Object(event.result);





// this causes an error
( Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to
webserviceClasses.Employee.)

var myEmployee:Employee
= Employee(event.result);

 



// does not work 

trace
(myEmployee.employeeName);  



// does work

trace
(myObject.employeeName);   







}





]]

 

 

 

/// the web service object

/mx:Script



mx:WebService showBusyCursor=true
wsdl=http://localhost/ComplexDataTypeService/Service1.asmx?WSDL;
id=myWebservice makeObjectsBindable=false

mx:operation name=getDetails result={
onMyResult (event)} resultFormat=object/



/mx:WebService

 

// the Employee object:

 

 

public class Employee (AS)

{

public var employeeName:String;

public var employeeID:int;



}

 

(c#)

  public class Employee 

  {

public string employeeName;

public int employeeID;



  }

 

 

 

 

 

Any ideas?

 

Robin

 



From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups.com
http://yahoogroups.com ] On Behalf Of ben.clinkinbeard
Sent: Tuesday, 12 December 2006 2:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex and .net webservices

 

Hi Robin,

I have good news :), both of these issues should go away by setting a
single attribute on your WebService object. Try setting
makeObjectsBindable = false. This will cause Flex to deserialize your
ws responses into regular Object and Array instances instead of
ObjectProxy and ArrayCollection instances.

HTH,
Ben




--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Robin Burrer [EMAIL PROTECTED] wrote:

 Hi there,
 
 
 
 I have been playing around .net and flex for a while. Primarily I want
 to send value objects (consisting of strings, intergers and arrays of
 VOs) back and forth.
 
 
 
 I could not figure out how to do the following things though:
 
 
 
 
 
 1. Sending arrays to a webservice works fine. However when I
 receive an array of the .net data type array flex creates and Array
 Collection data type

[flexcoders] Re: Flex and .net webservices

2006-12-11 Thread ben.clinkinbeard
Hi Robin,

I have good news :), both of these issues should go away by setting a
single attribute on your WebService object. Try setting
makeObjectsBindable = false. This will cause Flex to deserialize your
ws responses into regular Object and Array instances instead of
ObjectProxy and ArrayCollection instances.

HTH,
Ben


--- In flexcoders@yahoogroups.com, Robin Burrer [EMAIL PROTECTED] wrote:

  Hi there,
 
  
 
 I have been playing around .net and flex for a while. Primarily I want
 to send value objects (consisting of strings, intergers and arrays of
 VOs) back and forth.
 
  
 
  I could not figure out how to do the following things though:
 
  
 
  
 
 1.Sending arrays to a webservice works fine. However when I
 receive an array of the .net data type array  flex creates and Array
 Collection data type. Sending arrays as array collections to a web
 service causes an error.  That's really annoying when you try to keep
 the VOs consitent on both ends. What's the solution for this?
 
  
 
  
 
 2.When I receive a complex data type from a .net web service flex
 creates an Object but when I try to cast this object to the dataType it
 represents I get a complier error, even though the received object has
 exactly the same properties as underlying VO.
 
  
 
 E.g. I get the following error code if I try to cast the result of a
 webservice call to my custom data Type TelephoneNumber. Note casting
 to an Object works fine.
 
  
 
  
 
 TypeError: Error #1034: Type Coercion failed: cannot convert
 mx.utils::[EMAIL PROTECTED] to webserviceClasses.TelephoneNumber.
 
  
 
  
 
 Any help is highly appreciated.
 
  
 
  
 
 Robin





RE: [flexcoders] Re: Flex and .net webservices

2006-12-11 Thread Robin Burrer
Thanks Ben,

 

I tried that. It still does not work ..:-(. I got rid of everything
which could cause errors. ... 

Here's the code. I reckon this is as basic as it gets ...

 

 

 

public function onMyResult(event:ResultEvent):void



{

// this works fine

var myObject:Object =
Object(event.result);





// this causes an error
(Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to
webserviceClasses.Employee.)

var myEmployee:Employee
= Employee(event.result);

 



// does not work 

trace
(myEmployee.employeeName);  



// does work

trace
(myObject.employeeName);   







}





]]

 

 

 

/// the web service object

/mx:Script



mx:WebService showBusyCursor=true
wsdl=http://localhost/ComplexDataTypeService/Service1.asmx?WSDL;
id=myWebservice makeObjectsBindable=false

mx:operation name=getDetails result={
onMyResult (event)} resultFormat=object/



/mx:WebService

 

// the Employee object:

 

 

public class Employee (AS)

{

public var employeeName:String;

public var employeeID:int;



}

 

(c#)

  public class Employee 

  {

public string employeeName;

public int employeeID;



  }

 

 

 

 

 

Any ideas?

 

Robin

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Tuesday, 12 December 2006 2:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex and .net webservices

 

Hi Robin,

I have good news :), both of these issues should go away by setting a
single attribute on your WebService object. Try setting
makeObjectsBindable = false. This will cause Flex to deserialize your
ws responses into regular Object and Array instances instead of
ObjectProxy and ArrayCollection instances.

HTH,
Ben

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Robin Burrer [EMAIL PROTECTED] wrote:

 Hi there,
 
 
 
 I have been playing around .net and flex for a while. Primarily I want
 to send value objects (consisting of strings, intergers and arrays of
 VOs) back and forth.
 
 
 
 I could not figure out how to do the following things though:
 
 
 
 
 
 1. Sending arrays to a webservice works fine. However when I
 receive an array of the .net data type array flex creates and Array
 Collection data type. Sending arrays as array collections to a web
 service causes an error. That's really annoying when you try to keep
 the VOs consitent on both ends. What's the solution for this?
 
 
 
 
 
 2. When I receive a complex data type from a .net web service flex
 creates an Object but when I try to cast this object to the dataType
it
 represents I get a complier error, even though the received object has
 exactly the same properties as underlying VO.
 
 
 
 E.g. I get the following error code if I try to cast the result of a
 webservice call to my custom data Type TelephoneNumber. Note casting
 to an Object works fine.
 
 
 
 
 
 TypeError: Error #1034: Type Coercion failed: cannot convert
 mx.utils::[EMAIL PROTECTED] to webserviceClasses.TelephoneNumber.
 
 
 
 
 
 Any help is highly appreciated.
 
 
 
 
 
 Robin


 



[flexcoders] Re: Flex and .net webservices

2006-12-11 Thread ben.clinkinbeard
Might want to try making employeeID a Number instead of an int. If
that doesn't work use this:
http://www.darronschall.com/weblog/archives/000247.cfm

HTH,
Ben


--- In flexcoders@yahoogroups.com, Robin Burrer [EMAIL PROTECTED] wrote:

 Thanks Ben,
 
  
 
 I tried that. It still does not work ..:-(. I got rid of everything
 which could cause errors. ... 
 
 Here's the code. I reckon this is as basic as it gets ...
 
  
 
  
 
  
 
 public function onMyResult(event:ResultEvent):void
 
 
 
 {
 
 // this works fine
 
 var myObject:Object =
 Object(event.result);
 
 
 
 
 
 // this causes an error
 (Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to
 webserviceClasses.Employee.)
 
 var myEmployee:Employee
 = Employee(event.result);
 
  
 
 
 
 // does not work 
 
 trace
 (myEmployee.employeeName);  
 
 
 
 // does work
 
 trace
 (myObject.employeeName);   
 
 
 
 
 
 
 
 }
 
 
 
 
 
 ]]
 
  
 
  
 
  
 
 /// the web service object
 
 /mx:Script
 
 
 
 mx:WebService showBusyCursor=true
 wsdl=http://localhost/ComplexDataTypeService/Service1.asmx?WSDL;
 id=myWebservice makeObjectsBindable=false
 
 mx:operation name=getDetails result={
 onMyResult (event)} resultFormat=object/
 
 
 
 /mx:WebService
 
  
 
 // the Employee object:
 
  
 
  
 
 public class Employee (AS)
 
 {
 
 public var employeeName:String;
 
 public var employeeID:int;
 
 
 
 }
 
  
 
 (c#)
 
   public class Employee 
 
   {
 
 public string employeeName;
 
 public int employeeID;
 
 
 
   }
 
  
 
  
 
  
 
  
 
  
 
 Any ideas?
 
  
 
 Robin
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ben.clinkinbeard
 Sent: Tuesday, 12 December 2006 2:02 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Flex and .net webservices
 
  
 
 Hi Robin,
 
 I have good news :), both of these issues should go away by setting a
 single attribute on your WebService object. Try setting
 makeObjectsBindable = false. This will cause Flex to deserialize your
 ws responses into regular Object and Array instances instead of
 ObjectProxy and ArrayCollection instances.
 
 HTH,
 Ben
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Robin Burrer rburrer@ wrote:
 
  Hi there,
  
  
  
  I have been playing around .net and flex for a while. Primarily I want
  to send value objects (consisting of strings, intergers and arrays of
  VOs) back and forth.
  
  
  
  I could not figure out how to do the following things though:
  
  
  
  
  
  1. Sending arrays to a webservice works fine. However when I
  receive an array of the .net data type array flex creates and Array
  Collection data type. Sending arrays as array collections to a web
  service causes an error. That's really annoying when you try to keep
  the VOs consitent on both ends. What's the solution for this?
  
  
  
  
  
  2. When I receive a complex data type from a .net web service flex
  creates an Object but when I try to cast this object to the dataType
 it
  represents I get a complier error, even though the received object has
  exactly the same properties as underlying VO.
  
  
  
  E.g. I get the following error code if I try to cast the result of a
  webservice call to my custom data Type TelephoneNumber. Note casting
  to an Object works fine.
  
  
  
  
  
  TypeError: Error #1034: Type Coercion failed: cannot convert
  mx.utils::[EMAIL PROTECTED] to webserviceClasses.TelephoneNumber.
  
  
  
  
  
  Any help is highly appreciated.
  
  
  
  
  
  Robin
 





RE: [flexcoders] Re: Flex and .net webservices

2006-12-11 Thread Robin Burrer
Darron's  ObjectTranslator works perfectly - thanks for the tip! I still
have to do some manual work though since I'm going to have nested
VOs

 

R

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Robin Burrer
Sent: Tuesday, 12 December 2006 3:32 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Flex and .net webservices

 

Thanks Ben,

 

I tried that. It still does not work ..:-(. I got rid of everything
which could cause errors. ... 

Here's the code. I reckon this is as basic as it gets ...

 

 

 

public function onMyResult(event:ResultEvent):void



{

// this works fine

var myObject:Object =
Object(event.result);





// this causes an error
(Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to
webserviceClasses.Employee.)

var myEmployee:Employee
= Employee(event.result);

 



// does not work 

trace
(myEmployee.employeeName);  



// does work

trace
(myObject.employeeName);   







}





]]

 

 

 

/// the web service object

/mx:Script



mx:WebService showBusyCursor=true
wsdl=http://localhost/ComplexDataTypeService/Service1.asmx?WSDL;
id=myWebservice makeObjectsBindable=false

mx:operation name=getDetails result={
onMyResult (event)} resultFormat=object/



/mx:WebService

 

// the Employee object:

 

 

public class Employee (AS)

{

public var employeeName:String;

public var employeeID:int;



}

 

(c#)

  public class Employee 

  {

public string employeeName;

public int employeeID;



  }

 

 

 

 

 

Any ideas?

 

Robin

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Tuesday, 12 December 2006 2:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex and .net webservices

 

Hi Robin,

I have good news :), both of these issues should go away by setting a
single attribute on your WebService object. Try setting
makeObjectsBindable = false. This will cause Flex to deserialize your
ws responses into regular Object and Array instances instead of
ObjectProxy and ArrayCollection instances.

HTH,
Ben

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Robin Burrer [EMAIL PROTECTED] wrote:

 Hi there,
 
 
 
 I have been playing around .net and flex for a while. Primarily I want
 to send value objects (consisting of strings, intergers and arrays of
 VOs) back and forth.
 
 
 
 I could not figure out how to do the following things though:
 
 
 
 
 
 1. Sending arrays to a webservice works fine. However when I
 receive an array of the .net data type array flex creates and Array
 Collection data type. Sending arrays as array collections to a web
 service causes an error. That's really annoying when you try to keep
 the VOs consitent on both ends. What's the solution for this?
 
 
 
 
 
 2. When I receive a complex data type from a .net web service flex
 creates an Object but when I try to cast this object to the dataType
it
 represents I get a complier error, even though the received object has
 exactly the same properties as underlying VO.
 
 
 
 E.g. I get the following error code if I try to cast the result of a
 webservice call to my custom data Type TelephoneNumber. Note casting
 to an Object works fine.
 
 
 
 
 
 TypeError: Error #1034: Type Coercion failed: cannot convert
 mx.utils::[EMAIL PROTECTED] to webserviceClasses.TelephoneNumber.
 
 
 
 
 
 Any help is highly appreciated.
 
 
 
 
 
 Robin


 



[flexcoders] Re: Flex and .NET Objects

2006-07-17 Thread Harris Reynolds
Hi Jack.  At this point the easiest way to integrate Flex with .Net is 
to use WebORB.  Here's the link:

http://www.themidnightcoders.com/weborb/dotnetweborb.htm

Hope that helps,

~harris

--- In flexcoders@yahoogroups.com, ajackbr [EMAIL PROTECTED] wrote:

 Hi!
 
 I'd like to know if someone is working or has some reference to the
 integration between Flex and Microsoft .NET. I did read in some place
 that the Flex Data Services would do that dealing with .NET Remoting,
 but I'm not sure about that.
 
 Best regards.
 Jack







 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
~- 

--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Flex and .NET Objects

2006-07-17 Thread Tim Hoff
Hi Jack,

Just to be fair to Adobe, you can integrate Flex2 and .Net natively 
with Flex's built-in WebService and HTTPService functionality.  For 
some this is sufficient; depending on the need.  However, I do agree 
that, for high-end applications that rely on performance, WebORB is 
a good choice.  WebOrb is like FDS for .Net.  Serialized data is 
sent over the wire via RemoteObject.  Just another point of view.

-TH

--- In flexcoders@yahoogroups.com, Harris Reynolds 
[EMAIL PROTECTED] wrote:

 Hi Jack.  At this point the easiest way to integrate Flex 
with .Net is 
 to use WebORB.  Here's the link:
 
 http://www.themidnightcoders.com/weborb/dotnetweborb.htm
 
 Hope that helps,
 
 ~harris
 
 --- In flexcoders@yahoogroups.com, ajackbr jackson.souza@ 
wrote:
 
  Hi!
  
  I'd like to know if someone is working or has some reference to 
the
  integration between Flex and Microsoft .NET. I did read in some 
place
  that the Flex Data Services would do that dealing with .NET 
Remoting,
  but I'm not sure about that.
  
  Best regards.
  Jack
 







 Yahoo! Groups Sponsor ~-- 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM
~- 

--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Flex vs. .Net for RIA database apps; new to both

2006-06-12 Thread flashorbman
 So If you want to use Flex2 with .NET and remoting today, you can't 
 use RemoteObject out of the box, you will have to maually create 
 NetConnection instance and connect/call remote method.

This is not quite true with our product - WebORB. We fully support the
RPC subsystem of FDS on .NET, so you can use the RemoteObject tag and
things will work just like with the Java counterpart. WebORB uses the
same server-side configuration files, so registering a destination and
mapping it to a .NET class works just like with FDS.

Also, we're testing now new functionality which will provide full
support for Data Management Services for .NET. The release should be
out shortly. Flex apps will be able to fetch data, do paging, create,
delete and update records in the data store in .NET using the same
DataService client side API.

cheers,
Joe


--- In flexcoders@yahoogroups.com, Jeremy Lu [EMAIL PROTECTED] wrote:

 Actually flash remoting is part of Flex, when you use RemoteObject,
you are
 using remoting.
 
 The thing is that currently (in F2B3), there are only server-side
remoting
 gateway for Coldfusion (which support AMF3 - which also means, if
you use
 RemoteObject in F2B3, your backend must be Coldfusion with updated
adaptor)
 and FDS (which support Java only).
 
 So If you want to use Flex2 with .NET and remoting today, you can't use
 RemoteObject out of the box, you will have to maually create
NetConnection
 instance and connect/call remote method.
 
 this is the product page from adobe:
 http://www.adobe.com/products/flashremoting/
 
 Fluorine is an open-source version of it, but just like the nature
of most
 open source projects, stability and continuous development is always a
 consideration, when we have enough budget on the project, we will go
with
 official product (at least we know whom to go to when things go
wrong :-) )
 
 
 
 
 On 6/12/06, michaellisten [EMAIL PROTECTED] wrote:
 
What software is needed in order to use flash remoting? Just plain
  flash or is there some flash dev package? Are the terms for deploying
  simple or does one have to license per server etc?
 
  I've seen a couple of pages that ref ruby on rails too for the web
  services end of things. Not sure how practical it is.
 
  With Fluorine, I'll check it out, have seen it ref'd here, it runs on
  .net, and provides flash remoting? That does sound good. Was it
  created in part because it's less expensive to deploy than Flash
  remoting from Adobe?
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
Jeremy
  Lu wade.lu@ wrote:
  
   one more note (to Tim's post) : aside from Web Service, you can
also use
   flash remoting with .NET as the means of data transmission.
  
   we use both products from Macromedia (flash remoting for .NET) and
  Fluorine
   (open source flash remoting for .NET) all the time, just have to
  manually
   tweak NetConnection than that's it.
  
   ps. Flash Remoting uses binary AMF to send and receive native AS
  objects so
   it's a bit easier to handle large dataset.
  
  
   On 6/11/06, michaellisten listensome@ wrote:
   
Tim, that's great feedback, and also very much what I was
hoping to
hear. Winforms over the web with data via remoting etc has been
closest to what I have been wanting migrate to, whenever that
time for
the learning materializes for me. Flex seemed a worthy
alternative but
pricing seemed to put it out of reach till the major recent
adjustment
for Flex 2. The most attractive looking .net framework that uses
winforms and remoting that I've looked at for RIA is DevForce aka
Ideablade, but the pricing model for it resembles the early flex
range, ie up there a bit.
   
Encouraging, thanks!
   
   
--- In flexcoders@yahoogroups.com
flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com, Tim
 
Hoff TimHoff@ wrote:

 I agree completely with the assessment that Jeremy made
concerning
 Flex's database suitability. Before Flex, I developed web
 applications primarily with ASP.NET. In my opinion, Flex is
a much
 better choice for UI development. True, .Net includes all
layers,
 but the main drawback is that pages are rendered by the
server and
 sent to the browser one at a time. Flex, on the other hand,
creates
 rich internet applications that only require data to be
retrieved
 from the server. This gives you the best of both worlds, a
desktop-
 like application with zero-deployment over the internet.

 I'm currently creating a Flex application that uses ASP.NET web
 services with a SQL Server back-end. In addition to being
extremely
 easy to get work done, Flex makes the process of creating very
 complex user interfaces in a fraction of the time. In
addition, if
 you also implement an MVC micro-architecture (like
Cairngorm), you
 are able to quickly create very organized projects that are
scalable
 and easily maintained. One other thought is that Flex 

[flexcoders] Re: Flex vs. .Net for RIA database apps; new to both

2006-06-11 Thread michaellisten
What software is needed in order to use flash remoting? Just plain
flash or is there some flash dev package? Are the terms for deploying
simple or does one have to license per server etc?

I've seen a couple of pages that ref ruby on rails too for the web
services end of things. Not sure how practical it is.

With Fluorine, I'll check it out, have seen it ref'd here, it runs on
.net, and provides flash remoting? That does sound good. Was it
created in part because it's less expensive to deploy than Flash
remoting from Adobe? 

--- In flexcoders@yahoogroups.com, Jeremy Lu [EMAIL PROTECTED] wrote:

 one more note (to Tim's post) : aside from Web Service, you can also use
 flash remoting with .NET as the means of data transmission.
 
 we use both products from Macromedia (flash remoting for .NET) and
Fluorine
 (open source flash remoting for .NET) all the time, just have to
manually
 tweak NetConnection than that's it.
 
 ps. Flash Remoting uses binary AMF to send and receive native AS
objects so
 it's a bit easier to handle large dataset.
 
 
 On 6/11/06, michaellisten [EMAIL PROTECTED] wrote:
 
Tim, that's great feedback, and also very much what I was hoping to
  hear. Winforms over the web with data via remoting etc has been
  closest to what I have been wanting migrate to, whenever that time for
  the learning materializes for me. Flex seemed a worthy alternative but
  pricing seemed to put it out of reach till the major recent adjustment
  for Flex 2. The most attractive looking .net framework that uses
  winforms and remoting that I've looked at for RIA is DevForce aka
  Ideablade, but the pricing model for it resembles the early flex
  range, ie up there a bit.
 
  Encouraging, thanks!
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tim
  Hoff TimHoff@ wrote:
  
   I agree completely with the assessment that Jeremy made concerning
   Flex's database suitability. Before Flex, I developed web
   applications primarily with ASP.NET. In my opinion, Flex is a much
   better choice for UI development. True, .Net includes all layers,
   but the main drawback is that pages are rendered by the server and
   sent to the browser one at a time. Flex, on the other hand, creates
   rich internet applications that only require data to be retrieved
   from the server. This gives you the best of both worlds, a desktop-
   like application with zero-deployment over the internet.
  
   I'm currently creating a Flex application that uses ASP.NET web
   services with a SQL Server back-end. In addition to being extremely
   easy to get work done, Flex makes the process of creating very
   complex user interfaces in a fraction of the time. In addition, if
   you also implement an MVC micro-architecture (like Cairngorm), you
   are able to quickly create very organized projects that are scalable
   and easily maintained. One other thought is that Flex can also be
   used as an alternative to .NET WinForms; without the associated DLL
   Hell and installation requirements. These are just my opinions, but
   I'm definitely sold on Flex for database driven web applications.
  
   Tim Hoff
  
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
  michaellisten listensome@
   wrote:
   
Thanks Jeremy, I'd not seen the flex dev derby page. There are
some
pretty interesting apps there, a good exposure.
   
Do you (or anyone) have any perspective on how flex compares with
.net, re getting work done? .net in total includes in theory all
layers including the webservice etc that one might use to handle
interaction with the backend. With flex one uses java or rails or
   even
.net.
   
--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
  Jeremy Lu wade.lu@ wrote:

 well, Flex 2 is surely suitable for database oriented or data-
   centric
 application, you can check out the Flex Derby pages here:


   http://labs.adobe.com/wiki/index.php/Showcase:Flex_Developer_Derby

 lot of applications are data-heavy and co-op with backend
   technology
 closely, this is never an issue.

 Judging from what you described (database-frontend, form-entry,
   CRUD
stuff),
 Flex2 should serves you quite right, check out following topic
   in the
 livedoc/manual:

 -RPC in Data Service: this is for data connection with backend
   using
HTTP
 Get/Post, Web Service, XML or Remoting.

 -FORMS: this is for creating user-input Forms, handling all the
   layout,
 required field, data validation and so on...

 -Validator: there are various built-in Validators (email, credit
card...) to
 check user-input data before sending back to server.

 in my opinio, it's really a snap to build this kind of
Form-Entry-CRUD-Stuff
 with Flex2 :-)

 Jeremy.


 On 6/10/06, michaellisten listensome@ wrote:
 
 
  But most flex example apps are less database 

Re: [flexcoders] Re: Flex vs. .Net for RIA database apps; new to both

2006-06-11 Thread Jeremy Lu



Actually flash remoting is part of Flex, when you use RemoteObject, you are using remoting.The thing is that currently (in F2B3), there are only server-side remoting gateway for Coldfusion (which support AMF3 - which also means, if you use RemoteObject in F2B3, your backend must be Coldfusion with updated adaptor) and FDS (which support Java only).
So If you want to use Flex2 with .NET and remoting today, you can't use RemoteObject out of the box, you will have to maually create NetConnection instance and connect/call remote method.this is the product page from adobe:
http://www.adobe.com/products/flashremoting/Fluorine is an open-source version of it, but just like the nature of most open source projects, stability and continuous development is always a consideration, when we have enough budget on the project, we will go with official product (at least we know whom to go to when things go wrong :-) )
On 6/12/06, michaellisten [EMAIL PROTECTED] wrote:









  



What software is needed in order to use flash remoting? Just plain
flash or is there some flash dev package? Are the terms for deploying
simple or does one have to license per server etc?

I've seen a couple of pages that ref ruby on rails too for the web
services end of things. Not sure how practical it is.

With Fluorine, I'll check it out, have seen it ref'd here, it runs on
.net, and provides flash remoting? That does sound good. Was it
created in part because it's less expensive to deploy than Flash
remoting from Adobe? 

--- In flexcoders@yahoogroups.com, Jeremy Lu [EMAIL PROTECTED] wrote:

 one more note (to Tim's post) : aside from Web Service, you can also use
 flash remoting with .NET as the means of data transmission.
 
 we use both products from Macromedia (flash remoting for .NET) and
Fluorine
 (open source flash remoting for .NET) all the time, just have to
manually
 tweak NetConnection than that's it.
 
 ps. Flash Remoting uses binary AMF to send and receive native AS
objects so
 it's a bit easier to handle large dataset.
 
 
 On 6/11/06, michaellisten [EMAIL PROTECTED] wrote:
 
Tim, that's great feedback, and also very much what I was hoping to
  hear. Winforms over the web with data via remoting etc has been
  closest to what I have been wanting migrate to, whenever that time for
  the learning materializes for me. Flex seemed a worthy alternative but
  pricing seemed to put it out of reach till the major recent adjustment
  for Flex 2. The most attractive looking .net framework that uses
  winforms and remoting that I've looked at for RIA is DevForce aka
  Ideablade, but the pricing model for it resembles the early flex
  range, ie up there a bit.
 
  Encouraging, thanks!
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tim

  Hoff TimHoff@ wrote:
  
   I agree completely with the assessment that Jeremy made concerning
   Flex's database suitability. Before Flex, I developed web
   applications primarily with ASP.NET. In my opinion, Flex is a much
   better choice for UI development. True, .Net includes all layers,
   but the main drawback is that pages are rendered by the server and
   sent to the browser one at a time. Flex, on the other hand, creates
   rich internet applications that only require data to be retrieved
   from the server. This gives you the best of both worlds, a desktop-
   like application with zero-deployment over the internet.
  
   I'm currently creating a Flex application that uses ASP.NET web
   services with a SQL Server back-end. In addition to being extremely
   easy to get work done, Flex makes the process of creating very
   complex user interfaces in a fraction of the time. In addition, if
   you also implement an MVC micro-architecture (like Cairngorm), you
   are able to quickly create very organized projects that are scalable
   and easily maintained. One other thought is that Flex can also be
   used as an alternative to .NET WinForms; without the associated DLL
   Hell and installation requirements. These are just my opinions, but
   I'm definitely sold on Flex for database driven web applications.
  
   Tim Hoff
  
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,

  michaellisten listensome@
   wrote:
   
Thanks Jeremy, I'd not seen the flex dev derby page. There are
some
pretty interesting apps there, a good exposure.
   
Do you (or anyone) have any perspective on how flex compares with
.net, re getting work done? .net in total includes in theory all
layers including the webservice etc that one might use to handle
interaction with the backend. With flex one uses java or rails or
   even
.net.
   
--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,

  Jeremy Lu wade.lu@ wrote:

 well, Flex 2 is surely suitable for database oriented or data-
   centric
 application, you can check out the Flex Derby pages here:


   

[flexcoders] Re: Flex vs. .Net for RIA database apps; new to both

2006-06-10 Thread michaellisten
Thanks Jeremy, I'd not seen the flex dev derby page. There are some
pretty interesting apps there, a good exposure.

Do you (or anyone) have any perspective on how flex compares with
.net, re getting work done? .net in total includes in theory all
layers including the webservice etc that one might use to handle
interaction with the backend. With flex one uses java or rails or even
.net.

--- In flexcoders@yahoogroups.com, Jeremy Lu [EMAIL PROTECTED] wrote:

 well, Flex 2 is surely suitable for database oriented or data-centric
 application, you can check out the Flex Derby pages here:
 
 http://labs.adobe.com/wiki/index.php/Showcase:Flex_Developer_Derby
 
 lot of applications are data-heavy and co-op with backend technology
 closely, this is never an issue.
 
 Judging from what you described (database-frontend, form-entry, CRUD
stuff),
 Flex2 should serves you quite right, check out following topic in the
 livedoc/manual:
 
 -RPC in Data Service: this is for data connection with backend using
HTTP
 Get/Post, Web Service, XML or Remoting.
 
 -FORMS: this is for creating user-input Forms, handling all the layout,
 required field, data validation and so on...
 
 -Validator: there are various built-in Validators (email, credit
card...) to
 check user-input data before sending back to server.
 
 in my opinio, it's really a snap to build this kind of
Form-Entry-CRUD-Stuff
 with Flex2 :-)
 
 Jeremy.
 
 
 On 6/10/06, michaellisten [EMAIL PROTECTED] wrote:
 
 
  But most flex example apps are less database oriented and are
often showy
  shopping carts. Is flex going to be good for what I'm after?Most
examples
  have little data entry. I posted here about flex/flashcomboboxes
for data
  entry/selection and didn't get much in the way offeedback.
 
 
 
 
 I am most interested in the approach that is the most productive;
  helps the most with data binding, wysisyg designers, error handling,
  and so forth. I'm usually asked to create a lot of solid software in a
  minimal timeframe, so my priority here will be to choose software that
  simplifies the design/build cycle.
 
   
 







 Yahoo! Groups Sponsor ~-- 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM
~- 

--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: Flex vs. .Net for RIA database apps; new to both

2006-06-10 Thread Tim Hoff
I agree completely with the assessment that Jeremy made concerning 
Flex's database suitability.  Before Flex, I developed web 
applications primarily with ASP.NET.  In my opinion, Flex is a much 
better choice for UI development.  True, .Net includes all layers, 
but the main drawback is that pages are rendered by the server and 
sent to the browser one at a time.  Flex, on the other hand, creates 
rich internet applications that only require data to be retrieved 
from the server.  This gives you the best of both worlds, a desktop-
like application with zero-deployment over the internet.  

I'm currently creating a Flex application that uses ASP.NET web 
services with a SQL Server back-end.  In addition to being extremely 
easy to get work done, Flex makes the process of creating very 
complex user interfaces in a fraction of the time.  In addition, if 
you also implement an MVC micro-architecture (like Cairngorm), you 
are able to quickly create very organized projects that are scalable 
and easily maintained.  One other thought is that Flex can also be 
used as an alternative to .NET WinForms; without the associated DLL 
Hell and installation requirements.  These are just my opinions, but 
I'm definitely sold on Flex for database driven web applications.

Tim Hoff


--- In flexcoders@yahoogroups.com, michaellisten [EMAIL PROTECTED] 
wrote:

 Thanks Jeremy, I'd not seen the flex dev derby page. There are some
 pretty interesting apps there, a good exposure.
 
 Do you (or anyone) have any perspective on how flex compares with
 .net, re getting work done? .net in total includes in theory all
 layers including the webservice etc that one might use to handle
 interaction with the backend. With flex one uses java or rails or 
even
 .net.
 
 --- In flexcoders@yahoogroups.com, Jeremy Lu wade.lu@ wrote:
 
  well, Flex 2 is surely suitable for database oriented or data-
centric
  application, you can check out the Flex Derby pages here:
  
  
http://labs.adobe.com/wiki/index.php/Showcase:Flex_Developer_Derby
  
  lot of applications are data-heavy and co-op with backend 
technology
  closely, this is never an issue.
  
  Judging from what you described (database-frontend, form-entry, 
CRUD
 stuff),
  Flex2 should serves you quite right, check out following topic 
in the
  livedoc/manual:
  
  -RPC in Data Service: this is for data connection with backend 
using
 HTTP
  Get/Post, Web Service, XML or Remoting.
  
  -FORMS: this is for creating user-input Forms, handling all the 
layout,
  required field, data validation and so on...
  
  -Validator: there are various built-in Validators (email, credit
 card...) to
  check user-input data before sending back to server.
  
  in my opinio, it's really a snap to build this kind of
 Form-Entry-CRUD-Stuff
  with Flex2 :-)
  
  Jeremy.
  
  
  On 6/10/06, michaellisten listensome@ wrote:
  
  
   But most flex example apps are less database oriented and are
 often showy
   shopping carts. Is flex going to be good for what I'm after?
Most
 examples
   have little data entry. I posted here about 
flex/flashcomboboxes
 for data
   entry/selection and didn't get much in the way offeedback.
  
  
  
  
  I am most interested in the approach that is the most productive;
   helps the most with data binding, wysisyg designers, error 
handling,
   and so forth. I'm usually asked to create a lot of solid 
software in a
   minimal timeframe, so my priority here will be to choose 
software that
   simplifies the design/build cycle.
  

  
 








 Yahoo! Groups Sponsor ~-- 
Everything you need is one click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM
~- 

--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: Flex vs. .Net for RIA database apps; new to both

2006-06-10 Thread michaellisten
Tim, that's great feedback, and also very much what I was hoping to
hear. Winforms over the web with data via remoting etc has been
closest to what I have been wanting migrate to, whenever that time for
the learning materializes for me. Flex seemed a worthy alternative but
pricing seemed to put it out of reach till the major recent adjustment
for Flex 2. The most attractive looking .net framework that uses
winforms and remoting that I've looked at for RIA is DevForce aka
Ideablade, but the pricing model for it resembles the early flex
range, ie up there a bit. 

Encouraging, thanks!

--- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote:

 I agree completely with the assessment that Jeremy made concerning 
 Flex's database suitability.  Before Flex, I developed web 
 applications primarily with ASP.NET.  In my opinion, Flex is a much 
 better choice for UI development.  True, .Net includes all layers, 
 but the main drawback is that pages are rendered by the server and 
 sent to the browser one at a time.  Flex, on the other hand, creates 
 rich internet applications that only require data to be retrieved 
 from the server.  This gives you the best of both worlds, a desktop-
 like application with zero-deployment over the internet.  
 
 I'm currently creating a Flex application that uses ASP.NET web 
 services with a SQL Server back-end.  In addition to being extremely 
 easy to get work done, Flex makes the process of creating very 
 complex user interfaces in a fraction of the time.  In addition, if 
 you also implement an MVC micro-architecture (like Cairngorm), you 
 are able to quickly create very organized projects that are scalable 
 and easily maintained.  One other thought is that Flex can also be 
 used as an alternative to .NET WinForms; without the associated DLL 
 Hell and installation requirements.  These are just my opinions, but 
 I'm definitely sold on Flex for database driven web applications.
 
 Tim Hoff
 
 
 --- In flexcoders@yahoogroups.com, michaellisten listensome@ 
 wrote:
 
  Thanks Jeremy, I'd not seen the flex dev derby page. There are some
  pretty interesting apps there, a good exposure.
  
  Do you (or anyone) have any perspective on how flex compares with
  .net, re getting work done? .net in total includes in theory all
  layers including the webservice etc that one might use to handle
  interaction with the backend. With flex one uses java or rails or 
 even
  .net.
  
  --- In flexcoders@yahoogroups.com, Jeremy Lu wade.lu@ wrote:
  
   well, Flex 2 is surely suitable for database oriented or data-
 centric
   application, you can check out the Flex Derby pages here:
   
   
 http://labs.adobe.com/wiki/index.php/Showcase:Flex_Developer_Derby
   
   lot of applications are data-heavy and co-op with backend 
 technology
   closely, this is never an issue.
   
   Judging from what you described (database-frontend, form-entry, 
 CRUD
  stuff),
   Flex2 should serves you quite right, check out following topic 
 in the
   livedoc/manual:
   
   -RPC in Data Service: this is for data connection with backend 
 using
  HTTP
   Get/Post, Web Service, XML or Remoting.
   
   -FORMS: this is for creating user-input Forms, handling all the 
 layout,
   required field, data validation and so on...
   
   -Validator: there are various built-in Validators (email, credit
  card...) to
   check user-input data before sending back to server.
   
   in my opinio, it's really a snap to build this kind of
  Form-Entry-CRUD-Stuff
   with Flex2 :-)
   
   Jeremy.
   
   
   On 6/10/06, michaellisten listensome@ wrote:
   
   
But most flex example apps are less database oriented and are
  often showy
shopping carts. Is flex going to be good for what I'm after?
 Most
  examples
have little data entry. I posted here about 
 flex/flashcomboboxes
  for data
entry/selection and didn't get much in the way offeedback.
   
   
   
   
   I am most interested in the approach that is the most productive;
helps the most with data binding, wysisyg designers, error 
 handling,
and so forth. I'm usually asked to create a lot of solid 
 software in a
minimal timeframe, so my priority here will be to choose 
 software that
simplifies the design/build cycle.
   
 
   
  
 








 Yahoo! Groups Sponsor ~-- 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
~- 

--
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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:

Re: [flexcoders] Re: Flex vs. .Net for RIA database apps; new to both

2006-06-10 Thread Jeremy Lu



one more note (to Tim's post) : aside from Web Service, you can also use flash remoting with .NET as the means of data transmission.we use both products from Macromedia (flash remoting for .NET) and Fluorine (open source flash remoting for .NET) all the time, just have to manually tweak NetConnection than that's it.
ps. Flash Remoting uses binary AMF to send and receive native AS objects so it's a bit easier to handle large dataset.On 6/11/06, michaellisten
 [EMAIL PROTECTED] wrote:









  



Tim, that's great feedback, and also very much what I was hoping to
hear. Winforms over the web with data via remoting etc has been
closest to what I have been wanting migrate to, whenever that time for
the learning materializes for me. Flex seemed a worthy alternative but
pricing seemed to put it out of reach till the major recent adjustment
for Flex 2. The most attractive looking .net framework that uses
winforms and remoting that I've looked at for RIA is DevForce aka
Ideablade, but the pricing model for it resembles the early flex
range, ie up there a bit. 

Encouraging, thanks!

--- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote:

 I agree completely with the assessment that Jeremy made concerning 
 Flex's database suitability.  Before Flex, I developed web 
 applications primarily with ASP.NET.  In my opinion, Flex is a much 
 better choice for UI development.  True, .Net includes all layers, 
 but the main drawback is that pages are rendered by the server and 
 sent to the browser one at a time.  Flex, on the other hand, creates 
 rich internet applications that only require data to be retrieved 
 from the server.  This gives you the best of both worlds, a desktop-
 like application with zero-deployment over the internet.  
 
 I'm currently creating a Flex application that uses ASP.NET web 
 services with a SQL Server back-end.  In addition to being extremely 
 easy to get work done, Flex makes the process of creating very 
 complex user interfaces in a fraction of the time.  In addition, if 
 you also implement an MVC micro-architecture (like Cairngorm), you 
 are able to quickly create very organized projects that are scalable 
 and easily maintained.  One other thought is that Flex can also be 
 used as an alternative to .NET WinForms; without the associated DLL 
 Hell and installation requirements.  These are just my opinions, but 
 I'm definitely sold on Flex for database driven web applications.
 
 Tim Hoff
 
 
 --- In flexcoders@yahoogroups.com, michaellisten listensome@ 
 wrote:
 
  Thanks Jeremy, I'd not seen the flex dev derby page. There are some
  pretty interesting apps there, a good exposure.
  
  Do you (or anyone) have any perspective on how flex compares with
  .net, re getting work done? .net in total includes in theory all
  layers including the webservice etc that one might use to handle
  interaction with the backend. With flex one uses java or rails or 
 even
  .net.
  
  --- In flexcoders@yahoogroups.com, Jeremy Lu wade.lu@ wrote:
  
   well, Flex 2 is surely suitable for database oriented or data-
 centric
   application, you can check out the Flex Derby pages here:
   
   
 http://labs.adobe.com/wiki/index.php/Showcase:Flex_Developer_Derby

   
   lot of applications are data-heavy and co-op with backend 
 technology
   closely, this is never an issue.
   
   Judging from what you described (database-frontend, form-entry, 
 CRUD
  stuff),
   Flex2 should serves you quite right, check out following topic 
 in the
   livedoc/manual:
   
   -RPC in Data Service: this is for data connection with backend 
 using
  HTTP
   Get/Post, Web Service, XML or Remoting.
   
   -FORMS: this is for creating user-input Forms, handling all the 
 layout,
   required field, data validation and so on...
   
   -Validator: there are various built-in Validators (email, credit
  card...) to
   check user-input data before sending back to server.
   
   in my opinio, it's really a snap to build this kind of
  Form-Entry-CRUD-Stuff
   with Flex2 :-)
   
   Jeremy.
   
   
   On 6/10/06, michaellisten listensome@ wrote:
   
   
But most flex example apps are less database oriented and are
  often showy
shopping carts. Is flex going to be good for what I'm after?
 Most
  examples
have little data entry. I posted here about 
 flex/flashcomboboxes
  for data
entry/selection and didn't get much in the way offeedback.
   
   
   
   
   I am most interested in the approach that is the most productive;
helps the most with data binding, wysisyg designers, error 
 handling,
and so forth. I'm usually asked to create a lot of solid 
 software in a
minimal timeframe, so my priority here will be to choose 
 software that
simplifies the design/build cycle.
   
 
   
  
 



  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: 

[flexcoders] Re: Flex and .NET

2005-04-19 Thread jacksodj


That was mentioned in a presentation about flex on the macromeda site

--- In flexcoders@yahoogroups.com, nboulet [EMAIL PROTECTED] wrote:
 
 Hi everyone,
 Nice to meet you all. First post on this mailing list and I'm glad
 that there's a mailing list about this fantastic new technology which
 is Flex. I read somewhere that there will be a .NET version of
 Macromedia Flex. Is there anyone who got information about this?
 
 Thank you very much,
 Nicolas B.Lavoie





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/