RE: [flexcoders] Why is import mandatory?

2006-09-08 Thread Franck de Bruijn












Ok, that explains.



Its a pity though, especially if
you want to do code generation.



Thanks,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy Spratt
Sent: Thursday, September 07, 2006
10:42 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Why is
import mandatory?













I cant say why, but import IS mandatory, per
the docs (migration pdf?), and the fully qualified path should only be used for
disambiguation.



Tracy













From: [EMAIL PROTECTED]ups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Franck de Bruijn
Sent: Thursday, September 07, 2006
3:27 PM
To: [EMAIL PROTECTED]ups.com
Subject: [flexcoders] Why is
import mandatory?













Hi,



Just a small actionscript question.



I have the following interface definition:



package a.b.c

{

 public interface SecurityWebservice

 {

 function
findUser(userId:String):d.e.f.UserDto;

 }

} 



It does not compile (1046: Type was not found), which I find
strange since I specify the fully qualified name of the type.



When I include the statement import d.e.f.UserDto; it
compiles. Can someone explain why this is?



Thanks,

Franck


















__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Why is import mandatory?

2006-09-08 Thread Franck de Bruijn












For sure, this will come in later versions
of the Builder. H maybe not for sure, but I truly hope so!











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Robert Stuttaford
Sent: Thursday, September 07, 2006
11:11 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Why is
import mandatory?











I think they've gotten stricter
onpackage usage now. Only places I see itnow are in the package
and import
statements.After converting 50 odd classes this week, I must admit it's
cleaned the code up a bit. 



What I don't get is why we have to
manually type import statements at all. It would be nice if Flex Builder (or
the compiler itself) could pre-process the source and insert the appropriate
imports for you, as well as when using Source  Organize Imports, and just
prompt you for any clashing classes. That'd be kinda neat. That way the imports
are always complete and always nicely formatted, and lots of silly compiler
errors are avoided.



Robert









From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy Spratt
Sent: 07 September 2006 10:42 PM
To: [EMAIL PROTECTED]ups.com
Subject: RE: [flexcoders] Why is
import mandatory?



I cant say why, but import IS mandatory, per the docs (migration
pdf?), and the fully qualified path should only be used for disambiguation.



Tracy













From: [EMAIL PROTECTED]ups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Franck de Bruijn
Sent: Thursday, September 07, 2006
3:27 PM
To: [EMAIL PROTECTED]ups.com
Subject: [flexcoders] Why is import
mandatory?













Hi,



Just a small actionscript question.



I have the following interface definition:



package a.b.c

{

 public interface SecurityWebservice

 {

 function
findUser(userId:String):d.e.f.UserDto;

 }

} 



It does not compile (1046: Type was not found), which I find
strange since I specify the fully qualified name of the type.



When I include the statement import d.e.f.UserDto; it compiles.
Can someone explain why this is?



Thanks,

Franck













--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.1/440 - Release Date: 2006/09/06







--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.1/440 - Release Date: 2006/09/06






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___






RE: [flexcoders] Why is import mandatory?

2006-09-08 Thread Franck de Bruijn












Thanks, Matt.



Im from the JAVA-area and there you
dont need an import statement if you fully qualify your types. I more or
less expected ActionScript to behave similarly.



Good that you managed the wildcard thing,
that helps in my case, although its a not-so-nice solution.



Cheers,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin
Sent: Friday, September 08, 2006
5:47 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Why is
import mandatory?













You can learn more about the actual language construct in the
directives section of the ES4 spec: http://developer.mozilla.org/es4/spec/chapter_16_directives.html



The language designers decided that introducing a class into the
system requires explicitly bringing it in (we actually had to fight for
wildcard importing). I dont have a great justification for you,
only that its intentional.



Matt









From: [EMAIL PROTECTED]ups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Franck de Bruijn
Sent: Thursday, September 07, 2006
12:27 PM
To: [EMAIL PROTECTED]ups.com
Subject: [flexcoders] Why is
import mandatory?













Hi,



Just a small actionscript question.



I have the following interface definition:



package a.b.c

{

 public interface SecurityWebservice

 {

 function
findUser(userId:String):d.e.f.UserDto;

 }

} 



It does not compile (1046: Type was not found), which I find
strange since I specify the fully qualified name of the type.



When I include the statement import d.e.f.UserDto; it
compiles. Can someone explain why this is?



Thanks,

Franck


















__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___






RE: [flexcoders] Setting breakpoints while debugging?

2006-09-08 Thread Franck de Bruijn












Click the row in which you would like to
have a breakpoint and press CTRL-SHIFT-B, or use Run-Toggle Breakpoint from the
menu.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Douglas McCarroll
Sent: Friday, September 08, 2006
7:05 PM
To: flexcoders post
Subject: [flexcoders] Setting
breakpoints while debugging?











Hi All,

As far as I can see there's no way to set a breakpoint once I've started
debugging.

Is this correct?

If not, how can I do this?

TIA!

Douglas






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___






RE: [flexcoders] Re: Problems getting started with flashvars and Application.application.paramete

2006-09-08 Thread Franck de Bruijn












I just did this myself today, so here is
my solution:



In the file html-template/index.template.html
in the section else if (hasReqestedVersion) I modified the line
with flashVars as follows:



flashvars,'historyUrl=history.htm?lconid='
+ lc_id +'' + 'wsPrefix=' + wsPrefix +
'',



The bold part is what I added. wsPrefix
is a variable I initialized in the script a little bit above myself.



HTH,

Franck









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of yaagcur
Sent: Friday, September 08, 2006
8:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Problems
getting started with flashvars and Application.application.paramete











--- In [EMAIL PROTECTED]ups.com,
Adam Dorritie [EMAIL PROTECTED].. wrote:

 On 9/8/06, yaagcur [EMAIL PROTECTED] wrote:
  I'm trying to get started with passing paramaters to a flex project
 
  initially based on livedocs
  Using the Application.application.parameters object and
  Using flashVars as source
 
 You might try reading the thread here:
 
 http://tech.groups.yahoo.com/group/flexcoders/message/49376

Thanks Adam - remarkably similar:) Not sure if that thread sorted Kyle
out but I'm not quite clear how my HTML is falling short. How does the
javascipt AC_FL_RunContent section need amending? The src and
flashvars are already included






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___






RE: [flexcoders] Re: Problems getting started with flashvars and Application.application.paramete

2006-09-08 Thread Franck de Bruijn












In my case, the parameter I add to my Flex
app is simply calculated in the HTML wrapper page.



If it needs to be more dynamic (as you
point out), my recipe would be something like this (I use basic J2EE stuff):


 Somehow
 the server would receive an HttpServletRequest containing all information
 that you need to determine the Flex variables
 Render
 a JSP that is similar the the HTML wrapper page, with the exception that
 you add some parameters dynamically to the flashvars section.




That should do the trick.



Cheers,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of yaagcur
Sent: Friday, September 08, 2006
10:21 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Problems
getting started with flashvars and Application.application.paramete











Thanks very much Franck and Adam - that solution
worked fine

As you can probably imagine that was a baby step towards a more
dynamic solution so i was intrigued by your Cold Fusion reference, Adam
What I would like to do is be able to launch the Flex page based on
the paramaters chosen .e.g. name/hometown both from clicking on, say,
a datagrid row in another Flex project - presumably via URLRequest and
navigateToURL - or a standard link within an HTML page

Looking at the documentation it appears as though either Flex data
services(which I was not planning to use) or HttpServletRequest( which
i have no experience with) might be required. Is there another way via
ColdFusion?

--- In [EMAIL PROTECTED]ups.com,
Adam Dorritie [EMAIL PROTECTED].. wrote:

 On 9/8/06, yaagcur [EMAIL PROTECTED] wrote:
  Thanks Adam - remarkably similar:) Not sure if that thread sorted
Kyle
  out but I'm not quite clear how my HTML is falling short. How
does the
  javascipt AC_FL_RunContent section need amending? The src
and
  flashvars are already included
 
 Franck already provided the answer, but I'll say this much. The HTML
 object and embed are within the noscript portion of the
page, in
 other words the portion of the page which will be executed if
 _javascript_ is not available. The normal path for processing is to run
 the _javascript_
 AC_FL_RunContent() function.
 
 The reason you need to modify this is to include your own FlashVars,
 in addition to the ones already passed by the default template. In my
 case I use ColdFusion to dynamically insert FlashVars based upon the
 Flex application which is running, but all you really have to do is
 add your own variables. For example:
 
 } else if (hasRequestedVersion) {
 // if we've detected an acceptable version
 // embed the Flash Content SWF when all tests are passed
 AC_FL_RunContent(
 src, myFlexAppName,
 width, 100%,
 height, 100%,
 align, middle,
 id, myFlexAppName,
 quality, high,
 bgcolor, #ff,
 name, myFlexAppName,
 flashvars,'historyUrl=history.htm%3Flconid='
+ lc_id + '',
 - Add something like this...
 flashvars,'myVar1=foomyVar2=bar',
 
 allowScriptAccess,sameDomain,
 type, application/x-shockwave-flash,
 pluginspage, http://www.adobe.com/go/getflashplayer







__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Re: Problems getting started with flashvars and Application.application.paramete

2006-09-08 Thread Franck de Bruijn












I tried it, and it works nice. Thanks for
the tip. It keeps the page cleaner.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Adam Dorritie
Sent: Friday, September 08, 2006
9:21 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re:
Problems getting started with flashvars and Application.application.paramete











On
9/8/06, yaagcur [EMAIL PROTECTED]com
wrote:
 Thanks Adam - remarkably similar:) Not sure if that thread sorted Kyle
 out but I'm not quite clear how my HTML is falling short. How does the
 javascipt AC_FL_RunContent section need amending? The src and
 flashvars are already included

Franck already provided the answer, but I'll say this much. The HTML
object and embed are within the noscript portion of the page,
in
other words the portion of the page which will be executed if
_javascript_ is not available. The normal path for processing is to run
the _javascript_
AC_FL_RunContent() function.

The reason you need to modify this is to include your own FlashVars,
in addition to the ones already passed by the default template. In my
case I use ColdFusion to dynamically insert FlashVars based upon the
Flex application which is running, but all you really have to do is
add your own variables. For example:

} else if (hasRequestedVersion) {
// if we've detected an acceptable version
// embed the Flash Content SWF when all tests are passed
AC_FL_RunContent(
src, myFlexAppName,
width, 100%,
height, 100%,
align, middle,
id, myFlexAppName,
quality, high,
bgcolor, #ff,
name, myFlexAppName,
flashvars,'historyUrl=history.htm%3Flconid='
+ lc_id + '',
- Add something like this...
flashvars,'myVar1=foomyVar2=bar',

allowScriptAccess,sameDomain,
type, application/x-shockwave-flash,
pluginspage, http://www.adobe.com/go/getflashplayer






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___






RE: [flexcoders] Re: Could not load WSDL of .NET WebService in Flex 1.5

2006-09-07 Thread Franck de Bruijn












Hi Pablo,



No, I did not. I stored your WSDL in a
separate file and downloaded it from there (so, within the scope of my Flex
project). Unless you have a crossdomain.xml file set up, I can impossibly load
the WSDL from the original URL.



Cheers,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Pablo Apanasionek
Sent: Wednesday, September 06,
2006 8:39 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Could
not load WSDL of .NET WebService in Flex 1.5













Franck,











did you try downloading it from the original URL inside
Flex?











Thanks,





-Pablo Gustavo Apanasionek








__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___






RE: [flexcoders] Re: Could not load WSDL of .NET WebService in Flex 1.5

2006-09-07 Thread Franck de Bruijn












LOL: never expected that crossdomain.xml
would solve your problem :)











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Pablo Apanasionek
Sent: Thursday, September 07, 2006
9:39 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Could
not load WSDL of .NET WebService in Flex 1.5













Franck,











one word made it: crossdomain.xml!











I knew I was missing the obvious here! As I always used
Webservices of my own server, the crossdomain.xml definition had never
been a problem.











It worked perfectly, thanks for everything and for your
patience too!









-Pablo Gustavo Apanasionek






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






[flexcoders] Why is import mandatory?

2006-09-07 Thread Franck de Bruijn












Hi,



Just a small actionscript question.



I have the following interface definition:



package a.b.c

{

 public interface
SecurityWebservice

 {


function findUser(userId:String):d.e.f.UserDto;

 }

} 



It does not compile (1046: Type was not
found), which I find strange since I specify the fully qualified name of the
type.



When I include the statement import
d.e.f.UserDto; it compiles. Can someone explain why this is?



Thanks,

Franck




__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___






RE: [flexcoders] Re: Could not load WSDL of .NET WebService in Flex 1.5

2006-09-06 Thread Franck de Bruijn












Hi Pablo,



I did not know that ... :)



The answer to your question is yes.



Cheers,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Pablo Apanasionek
Sent: Wednesday, September 06,
2006 2:20 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Could
not load WSDL of .NET WebService in Flex 1.5













Franck,











I'm running Flex 1.5, so I can't run the example you
posted. 











If the WSDL downloaded correctly, I should assume the
problem is on my Flex-running machine. (I tried running it from FB and from
compiled-SWF too.)











Did you download the WSDL separately and put it in the
same Flex-running server? 











Thanks,



-Pablo Gustavo Apanasionek






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Re: Confirmed Bug: SOAP request construction with .NET web service... again

2006-09-05 Thread Franck de Bruijn












I second that, but also thanks to you Ben!



Cheers,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of ben.clinkinbeard
Sent: Tuesday, September 05, 2006
6:24 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re:
Confirmed Bug: SOAP request construction with .NET web service... again











Just minutes after posting my last message I received
another email
from Adobe confirming that engineering is working on fixes to all 3
bugs I've encountered while dealing with .NET web services. They've
assured me that they'll be fixed in the first update release for Flex
2 and possibly even sooner via a hotfix.

It really is encouraging to see Adobe's willingness and ability to
make improvements and ensure Flex is as rock solid as possible. Thanks
Adobe!

Ben

--- In [EMAIL PROTECTED]ups.com,
ben.clinkinbeard
ben.clinkinbeard@... wrote:

 Just for the sake of record, Adobe has just notified me that this is
 indeed a bug. I sure hope some WebService fixes are in that dot
release...
 
 Ben
 
 --- In [EMAIL PROTECTED]ups.com,
ben.clinkinbeard
 ben.clinkinbeard@ wrote:
 
  I have already come across a couple of (confirmed by Adobe support)
  bugs with the way Flex constructs SOAP requests when using .NET web
  services and am wondering if I've found a third. I suppose this could
  be the expected behavior but it seems awfully weird to me. Part of
the
  request that my web service expects is a ContainersToRetrieve
node,
  which contains 1 or more child ContainerType nodes. Like this:
  
  ContainersToRetrieve
  ContainerTypeIndustryTrends/ContainerType
  ContainerTypeRPRSelections/ContainerType
  /ContainersToRetrieve
  
  When constructing the request in MXML, I have discovered that if I am
  only sending one ContainerType argument that I need to omit the
  ContainerType node and put the contents directly inside
  ContainersToRetrieve. Like this:
  
  ContainersToRetrieve
  IndustryTrends
  /ContainersToRetrieve
  
  But if I need to send more than one I have to include the
  ContainerType nodes in my MXML, like this:
  
  ContainersToRetrieve
  ContainerType
  IndustryTrends
  /ContainerType
  ContainerType
  RPRSelections
  /ContainerType
  /ContainersToRetrieve
  
  Is this how this should work? I am including my entire WebService tag
  below. Thanks in advance.
  
  Ben
  
  mx:WebService id=ws wsdl=http://mysite.com/WebService.asmx?WSDL
  useProxy=false
  fault=getTrendsFault(event)
result=getTrendsResult(event)
  
  mx:operation name=GetDocument resultFormat=e4x
  mx:request
  EnterpriseId1/EnterpriseId
  DocumentTypeRPR-EBD/DocumentType
  ContainersToRetrieve
  ContainerType
  IndustryTrends
  /ContainerType
  ContainerType
  RPRSelections
  /ContainerType
  /ContainersToRetrieve
  MetadataToRetrieve
  RPRDocumentHistory
  /MetadataToRetrieve
  /mx:request
  /mx:operation
  /mx:WebService
 







__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Could not load WSDL of .NET WebService in Flex 1.5

2006-09-05 Thread Franck de Bruijn












Hi Pablo,



Just guessing I can think of 2 reasons:


 Are
 you hosting your flex application on the webserver on localhost too? Or
 are you running the application through FlexBuilder (with run as
 Flex Application). Myself, I sometimes experience issues with this,
 although sometimes it appears to work. What always works is to put your
 flex application on your web server and run it from there (http://localhost/ . /youApp.html)
 Does
 your WSDL use import statements? And do these import statements load from
 anything different than localhost (could be for example
 127.0.0.1 or your machines IP address)? Then, this could be your
 problem. This is due to the Flash security sandbox. After Flex has loaded
 your WSDL, it will also try to load your imported files. If these use a
 different host name than the host name your application is served from,
 Flex will complain.




A good exercise you always good to is use
an HTTP sniffer between your Flex app and your server (I personally use
Fiddler). Then you can effectively see the HTTP traffic going up and down from
your app to the server.



HTH,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Pablo Apanasionek
Sent: Tuesday, September 05, 2006
6:49 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Could not
load WSDL of .NET WebService in Flex 1.5













Hey folks!











I've searched for it in the archive and in Adobe, found
some examples, but it seems to be something hidden on this one.











I've created a sample web service with ASP.NET, published
it and browsing it normally. Its name: Service1.asmx (very samplistic name)











I've coded the WebService tag in Flex, using wsdl=http://localhost/FlexServices/Service1.asmx?WSDL
(as found on Adobe example http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19327).












However, the example seems to work, while my WSDL throws
Could Not Load WSDL error message (without flex-proxy).Using the proxy,
it results in Connection refused.











I've tested my WSDL with Online
wsdl Validatorand works. Any hint/step I could have
missed on this?











TIA,





-Pablo Gustavo Apanasionek








__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Re: Could not load WSDL of .NET WebService in Flex 1.5

2006-09-05 Thread Franck de Bruijn












Hi Pablo,



I wrote the following small test
application:



mx:Application
xmlns:mx=http://www.adobe.com/2006/mxml
layout=absolute

 mx:Button
x=167 y=108 label=Click me!
click=doClickMe();/

 

 mx:Script

 ![CDATA[

 import mx.rpc.soap.LoadEvent;

 import
mx.rpc.events.FaultEvent;

 import mx.rpc.soap.WebService;

 import
mx.controls.Alert;

 

 private function doClickMe():void

 {

 var
ws:WebService;

 

 ws
= new WebService();

 ws.addEventListener(LoadEvent.LOAD,
handleWsLoaded);

 ws.addEventListener(fault,
handleWsError);

ws.loadWSDL(Service.wsdl);

 }

 

 public
function handleWsError(aEvent:FaultEvent):void 

 {

 Alert.show(fault
is:  + aEvent.fault.faultString);

 }

 

 public
function handleWsLoaded(aEvent:LoadEvent):void

 {

 Alert.show(Loaded!);

 }

 ]]

 /mx:Script

/mx:Application



The Service.wsdl file I downloaded from
the URL you indicated and saved it besides my test application MXML file. The
WSDL loaded without any problem. I did not try to invoke one of your
operations, since this will probably not work from a Flex app (security
constraint).



Could you try to get this to work?



Cheers,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Pablo Apanasionek
Sent: Tuesday, September 05, 2006
9:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Could
not load WSDL of .NET WebService in Flex 1.5













Franck,











thanks for your reply. I've tested so far putting my WSDL
on another server (IIS) and putting the absolute URL on the WebService tag, not
without enabling that URL in my flex-config.xml web-service-whitelist.
This has produced the same result (Could Not Load WSDL).











The URL to the WSDL is http://www.dreamovate.com.ar/Service1.asmx?WSDL











I've come to two hypothetical scenarios: 











a) my WSDL is malformed or incompatible with Flex.





b) the configuration of my Flex Server is not allowing the
connection. (Though it does to the Adobe Example wsdl @ webservicesx.com)











TIA,





-Pablo Gustavo Apanasionek








__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Re: webservice lastResult to a ComboBox

2006-09-05 Thread Franck de Bruijn












Hi Kristian,



Presuming your webservice method returns a
list of Strings, the result from the webservice operation (ResultEvent.result) is
a dynamic object containing a Flex Array object. Probably if you pull this
Array object out you can assign it to the dataprovider property
of a combobox.



The Flex debugger is an excellent tool
here to investigate what Flex actually makes out of your webservice result.



Cheers,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of meteatamel
Sent: Tuesday, September 05, 2006
10:07 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re:
webservice lastResult to a ComboBox











Can you more specific? It would be useful if you can
post the code
that you have right now and we can see what we need to change to make
it work.

--- In [EMAIL PROTECTED]ups.com,
Kristian [EMAIL PROTECTED]. wrote:

 Hi.
 Hope someone can help me. 
 I need to put the result from a webservice in a ComboBox.
 The webservice method returns a java.util.List.
 
 Any one who can show me how?
 __
 Try Live.com - din egen kjappe hjemmeside med alle tingene du bryr
deg om, på ett sted.
 http://www.live.com/getstarted







__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Re: Webservice and column name question.

2006-08-30 Thread Franck de Bruijn












Im not sure if I understand you.



What do you see in the console output? Do
you see the column names? If not, it seems youre not getting them from
the webservice.



Cheers,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of dinger0007
Sent: Wednesday, August 30, 2006
2:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re:
Webservice and column name question.











Correct, the structure (column names) are dynamic
based on the
webservice operations. Let see if I can be more specific.

This is what I have so far, it returns the actual data in the console
window. But want to display the column names in the console 

test = new ArrayCollection( event.result as Array);
for each(var item in test) {
trace(item.Node1); 
}






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Webservice and column name question.

2006-08-29 Thread Franck de Bruijn












Hi,



I am not sure if I understand your
situation, but I guess that you have a webservice that returns a list of
records, but the structure of the records can be different per webservice
operation, right?



Could you show us how the XML looks that
you receive from the webservice operation? You could use some sort of a sniffer
(I use fiddler) to see what is going back and forth.



Cheers,

Franck











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dinger0007
Sent: Tuesday, August 29, 2006
10:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Webservice
and column name question.











I have a query result coming back from a webservice
call and i want to
pull the column names out of the results.

I assumed that I can use the code below but can't figure how to
pull the column names.

If I do this, I get the data.
test = new ArrayCollection( event.result as Array);
for each(var item in test) {
trace(item.Node1); 
}

But how do I just get Node1 and not the data.

Thanks in advance..






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides

2006-08-25 Thread Franck de Bruijn












True.



But the processing of the XML is only part
of a request. If a certain query itself takes 5 seconds to complete, you can do
your best in the remoting part of the transaction, but it will not bring you much.



Cheers,

Franck











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Evert | Collab
Sent: Tuesday, August 22, 2006
10:43 PM
To: flexcoders@yahoogroups.com
Subject: Re: [Junk E-Mail - LOW]
[flexcoders] Re: Choice of backend systems - which provides











You are forgetting that if a request takes half the
time to complete, it 
needs less cpu time and you can double the concurrent requests per server.

Evert

Dave Wolf wrote:
 I simply have to disagree here. We can demonstrate several in
 production applications which we have developed using SOAP XML
 WebServices and they perform like a champ. One of them was the runner
 up for last years MAX award. The majority of the applications we
 develop use this architecture and to date not a single time has a
 client nor a user complained about the performance of runtime data
 services based on SOAP.

 There are a few false rumors that continue to creep up in the Flex
 community about the performance issues around SOAP.

 There are benchmarks which show that AMF can be drastically faster
 than a SOAP call for the same data. Sometimes even 100% faster. Yup
 that's true there are. But you have to peel away the layers of the
 onion to see the reality. Statistics can be misleading. For
 instance, if AMF is 300 milliseconds and SOAP is 600 milliseconds the
 100% difference isnt even relative. How many people do you know who
 can even see 1/3 of a seconds difference? In the end raw marshalling
 isnt the issue, it is the user and their experience. Flex2 made
 DRASTIC improvements it the performance of XML parsing and in our own
 benchmarks the delta between the two services choices is often as low
 as 10%.

 Of a much greater impact that the marshalling time is the UI
 shredding and binding of the data. Most badly performing RIA's
 suffer from data being returned from the back-end in a format that
 holds no fidelity with the RIA. This requires the RIA to tear apart
 the returned structural data and place it into its own structures and
 objects and bind those to UI controls. Developing your user
 experience in a front-to-back approach which assures great fidelity
 between the data formats of the tiers can account for an order of
 magnitude performance increase. That is the kind of performance
 increase users will actually experience. 

 There are many other very smart things you can do like extending
 existing controls to do streaming rendering of data to provide the
 perception of speed, server side paging, caching, etc. 

 In the end perception is reality. All that matters from the UI
 perspective is the experience that the user has. Worring about 300
 milliseconds is like trying to debate the number of angels that could
 dance on the end of a pin. If the user can't see them, it doesn't
 matter how many there are.

 The running rumor that you simply cannot develop first class RIAs in
 Flex using a SOAP web services back-end is simply not accurate, and we
 have the apps in production with our clients to prove it.


 






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides

2006-08-25 Thread Franck de Bruijn













Its nice to hear this feedback.



I am using Axis successfully, but I
remember that it indeed took some time to get to full grips with it. Some other
post also mentioned (I think it was Ben) that real world examples/tutorials of
using web services were not present. And that includes setting up the server
side of a webservice as well.



Cheers,

Franck











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of hank williams
Sent: Thursday, August 24, 2006
8:19 PM
To: flexcoders@yahoogroups.com
Subject: Re: [Junk E-Mail - LOW]
[flexcoders] Re: Choice of backend systems - which provides











I have to agree with Ted regarding productivity.

Of course I may just be revealing that I am not as smart as the rest of you,
but when I was considering various means of connecting to my java server during
the transition to Flex2, I explored Axis and Axis2 for web services. 

Figuring out how to use them was *no joke*. I am sure if I had dedicated the
time to it I could have gotten up and running. But, honestly, I gave up after
several days of study.

The Axis umailing list was fairly useless for beginners, there were lots of
people having problems with Axis2 and the documentation was almost unbearable.
Now if you are already an expert then none of this applies to you. But the idea
that from flash that you can just call your server side code just by declaring
the classes you are working with in a configuration file is magic. It is so
easy. Of course the typing issues on web services sound like a bear too and
there are none with remoting, but I cant really talk about that because I never
got that far with web services. 

FDS and Flex2 are far far easier to work with. My only problem with FDS is
pricing. Remoting used to cost $1000 or so per server, or it was free if you
used an open source solution. Now it costs $20,000 per server after you need
more than one server. I may actually have to switch back to an AMF0 version of
remoting by the time my first server is overwhelmed because $20k is insane. I
am using amazon S3 and for 20k worth of bandwidth and storage I could support
millions of users over a year. but 20k in FDS software probably only supports
100k users. So the economics of FDS are insane. They are probably driven by the
desire not to screw the Flex 1.5 people who paid a lot of money for their
servers. Nevertheless, for remoting only apps FDS pricing is the only reason
not to use it. But technically if you dont have to learn web services FDS will
save you a lot of time. 

Regards,
Hank



On 8/23/06, Ted
Patrick [EMAIL PROTECTED]com
wrote:







AMF
is faster in 3 fundamental ways:




 Bandwidth Size  Smaller, lighter, faster!!!





 Parsing Speed  Less work on both client and
 server!!!





 Developer Productivity  Less work for
 developers!!!




Web
Services are dependent on XML Parsing on both the client and server side.
Although it's a good story, XML parsers are not very efficient as parsing
documents is an interpreted process. The Flash Player XML parser will always be
dramatically slower than AMF parsing, binary formats are notoriously faster in
this regard. 



XML
parsing additionally decays rapidly as the file size increases. Flash Player
XML parsing time increase non-linearly with larger XML documents. With AMF
parsing times are linear with data size. The XML decay can be attributed to the
number of inner objects that need to be created during a parsing run. AMF
objects are 1:1 with the data received where XML data is 1:N per
Elements/Attribute.



Comparing
XML to AMF is an unfair race, AMF wins every time. When you add in the overhead
of WS SOAP parsing atop the base XML parser speed you begin to see performance
issues. With SOAP, you interpret an XML document back into typed objects
depending on the SOAP specifics used. Sure 350ms is ok once or twice, but try
doing 200 transactions in this format and you will see performance issues arise.
Using Web Services you are forcing the Flash Player to do allot of unneeded
work. The goal is to build richer applications, not burn up player performance
in crud operations.



Additionally
non-proxied Web Service use suffers with Flash Player because of the browser
variation in the plug-in APIS. You cannot get the 500 Errors response content
in IE and thus the SOAP fault standard breaks down. In SOAP there are important
messages that arrive with 500 Errors and the inability of the Flash Player to
receive these is a problem. Unfortunately there is no seamless way to get 500
Errors into the Flash Player other then rewriting an HTTP Client in the Socket
class. This effort would also require a new SOAP library within Flex and socket
use on low ports requires a more complex crossdomain.xml configuration.
Even then you still suffer the same performance issues.



Performance
aside, the productivity discussion is much more important. AMF3 and Flex Data
Services are wildly productive. Once you compile your Java 

RE: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides

2006-08-25 Thread Franck de Bruijn
 performance
which is why AMF was created in the first place as an optimized data exchange
format for Flash Player. 

One of the key advantages for WebServices is the wide availability of Web
Service clients for any language. With AMF we only have one client( Flash
Player ) and several AMF servers. One key enterprise objection to using AMF is
the lack of AMF clients for integration. 

Cases:
- PHP form could remote to FDS
- C++ application joins FDS messaging as a client
- Java process remotes to FDS
- Python process remotes to Data Services for Ruby (MidnightCoders)
- C# remotes data with FDS as a client

Part of the distributed computing revolution is the realization that anything
can be both a client and a server. One of the problem areas in FDS is that only
Flash and Java:JMS can participate within the FDS as clients.

Would non-flash clients for AMF and Messaging help?

Regards,

Ted Patrick
Flex Evangelist
Adobe Systems Incorporated


From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On Behalf Of Franck de Bruijn
Sent: Wednesday, August 23, 2006 10:33 PM
To: [EMAIL PROTECTED]ups.com
Subject: RE: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems -
which provides

Hi Ted,

We all understand your arguments 1 and 2. But in the end, and that’s already
identified in this topic, it’s the user experience that counts. If it does not
suffer by using web services, it’s not an issue! I’d like to hear the first
story that changing webservices by AMF increased the user experience
significantly and sealed a certain business proposition.

For argument 3 ‘Developer Productivity’ it’s true that developers need to
program more lines of code to obtain the same result (having your webservice
result as an ActionScript object), which is, I admit, error prone. But in the
total view of the costs of a development project ... it will not make much of a
difference. The actual additional lines of code I’m talking about, however, are
very easy to generate from a model if you wish.

Again, FDS is cool, really true and it does have its place. But for many
applications FDS (including the extra features messaging and data management)
is neither an option nor necessary.

Cheers,
Franck 

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






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Building Flex 2 project with Maven

2006-08-25 Thread Franck de Bruijn












Hi Laurent,



I dont know of any Maven plugin,
but Id be interested to know as well.



Cheers,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of lfontvielle
Sent: Friday, August 25, 2006 1:53
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Building
Flex 2 project with Maven











We are developing large Java applications. They are
composed of
multiple Java projects implemented by different teams.
We use Maven (http://maven.apache.org/)
to build our projects. The
projects can be built outside eclipse on an integration server as part
of a Maven project. Jar/war files are stored in the Maven repository.
Maven manages dependencies between projects, produces the Javadoc ...

We would like to use the same organization with Java/Flex 2 applications.
For an example: one team codes an ActionScript library (swc file) in a
project, and other teams can uses this library within their Flex project.

We don't know if a Maven plugin already exits that is capable of
managing a Flex project.

we would like to know:
1. If any Maven plugins have been developed for flex ?
2. Would you be interested in a Maven plugin for Flex ?

Thanks

Laurent.






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Re: Choice of backend systems - which provides best functionality

2006-08-24 Thread Franck de Bruijn












The ws-i pages themselves can be found
here:



http://www.ws-i.org/deliverables/workinggroup.aspx?wg=basicsecurity



Although the link was not working while I
was typing this reply :).



Webservices are a very complicated story
if it comes to standards. And to be honest, I am not up to par with all of
them. As Derek already pointed out most web service stack have *some level* of support for it, which
implies that you cannot rely on it for now.



In a few years from now it will be around
and all the software stacks will have support for it. Then we can use it. So
for now, you have to reinvent the wheel for this part. Its not that hard
though.



Cheers,

Franck











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Derek Adams
Sent: Thursday, August 24, 2006
4:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Choice
of backend systems - which provides best functionality











WS-Security is the standard spec for securing web
service calls. 
Most web service stacks have some level of support for it. Among the 
things it offers are username/token style security and encryption of 
some/all of the SOAP envelope. There is an overview and a few good 
links here:

http://www-128.ibm.com/developerworks/library/specification/ws-
secure/

Also, see the Adobe AS3 UsernameToken support in the corelibs 
project here:

http://weblogs.macromedia.com/as_libraries/docs/corelib/

Hope that helps,
Derek

--- In [EMAIL PROTECTED]ups.com,
Darren Houle [EMAIL PROTECTED] wrote:

 Franck,
 
 Makes sense to me. Do you (or does anyone) know of any 
open/standards based 
 architecture for this SOAP token security? Any OOTB solutions out 
there, or 
 do I need to redesign the wheel?
 
 Thanks!
 Darren
 






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides

2006-08-24 Thread Franck de Bruijn
 reliably but I question its use. It will affect performance
which is why AMF was created in the first place as an optimized data exchange
format for Flash Player. 

One of the key advantages for WebServices is the wide availability of Web
Service clients for any language. With AMF we only have one client( Flash
Player ) and several AMF servers. One key enterprise objection to using AMF is
the lack of AMF clients for integration. 

Cases:
- PHP form could remote to FDS
- C++ application joins FDS messaging as a client
- Java process remotes to FDS
- Python process remotes to Data Services for Ruby (MidnightCoders)
- C# remotes data with FDS as a client

Part of the distributed computing revolution is the realization that anything
can be both a client and a server. One of the problem areas in FDS is that only
Flash and Java:JMS can participate within the FDS as clients.

Would non-flash clients for AMF and Messaging help?

Regards,

Ted Patrick
Flex Evangelist
Adobe Systems Incorporated


From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On Behalf Of Franck de Bruijn
Sent: Wednesday, August 23, 2006 10:33 PM
To: [EMAIL PROTECTED]ups.com
Subject: RE: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems -
which provides

Hi Ted,

We all understand your arguments 1 and 2. But in the end, and that’s already
identified in this topic, it’s the user experience that counts. If it does not
suffer by using web services, it’s not an issue! I’d like to hear the first
story that changing webservices by AMF increased the user experience
significantly and sealed a certain business proposition.

For argument 3 ‘Developer Productivity’ it’s true that developers need to
program more lines of code to obtain the same result (having your webservice
result as an ActionScript object), which is, I admit, error prone. But in the
total view of the costs of a development project ... it will not make much of a
difference. The actual additional lines of code I’m talking about, however, are
very easy to generate from a model if you wish.

Again, FDS is cool, really true and it does have its place. But for many
applications FDS (including the extra features messaging and data management)
is neither an option nor necessary.

Cheers,
Franck 






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides

2006-08-23 Thread Franck de Bruijn












For the .Net guys, remote objects is
pretty much out of the questions, since remote objects are tightly integrated
with the FDS sytem (JAVA-based) which needs to run in a JAVA environment.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mark Piller
Sent: Wednesday, August 23, 2006
6:36 PM
To: flexcoders@yahoogroups.com
Subject: [Junk E-Mail - LOW]
[flexcoders] Re: Choice of backend systems - which provides











 In the cases where you cannot use remote
objects, web services still
work great

Andrew, do you have any examples when one would not be able to use
remote objects? I am interested to know if you have any technical
reasons, rather than just economical.

Cheers,
Mark

--- In [EMAIL PROTECTED]ups.com,
Andrew Trice andrew.trice@...
wrote:

 OK, so I've watching this thread going back and forth over and over...
 Now it's time for my two cents. It looks like this thread began by
 someone saying that you cannot use web services in a real world flex
 application. I've got to agree with Dave on this. You definitely can,
 and we have done it numerous times here at Cynergy. 
 
 
 
 Are there tradeoffs? Yes. As others have said already in the post:
 The decision on what mechanism to use should be dealt with on a case by
 case basis. Let's consider a few things:
 
 
 
 1. Do the web services already exist and can they handle the
 current load? If they do, use them. Why reinvent the wheel? 
 2. Yes, there is a performance advantage to using AMF, but most
 users will not notice the difference in transport speed... it is
 fractions of a second. If your application is properly architected and
 your backend is optimized, the end user will never know the difference.
 
 
 
 I personally like using remote objects, but not every solution allows
 for this. In the cases where you cannot use remote objects, web
 services still work great. SOAP is a very verbose protocol, but by no
 means is it unusable. If that were the case, why would web services be
 so prevalent? Why would there be all the buzz about service oriented
 architectures? 
 
 
 
 If you feel that a web service is too verbose or too slow, and you can't
 use remote objects, then use a HTTPService to return XML. There are
 many solutions. It really all boils down to how you use and retrieve
 your data and depends on your requirements and application architecture.
 If the processing time on the server is too much for your application to
 handle, then chances are there is a problem with your application's
back
 end, not the webservice/serialization layer. 
 
 
 
 To generalize and say that you should never use a web service is a very
 big mistake. 
 
 
 
 -Andy
 
 _
 
 Andrew Trice
 
 Cynergy Systems, Inc.
 
 http://www.cynergysystems.com
 
 
 
 Blog: http://www.cynergysystems.com/blogs/page/andrewtrice
 
 Email: andrew.trice@...
 
 Office: 866-CYNERGY 
 
 
 
 
 
 From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On
 Behalf Of Jack Caldwell
 Sent: Wednesday, August 23, 2006 10:40 AM
 To: [EMAIL PROTECTED]ups.com
 Subject: RE: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend
 systems - which provides
 
 
 
 Martin:
 
 
 
 OK . . . . so the lag time is when the data gets back to the end-user?
 
 
 
 Bottom line . . . . with all things being equal . . . .
 
 
 
 Does a web service request take longer to process on the server than
 
 a AMF request?
 
 
 
 If the answer is . . . . in general yes, then that can be an issue with
 an
 
 increase in users.
 
 
 
 If the answer is . . . . it depends on the data being requested and/or
 the
 
 data format then that seems to suggest that everyone must run tests to 
 
 compare results and then test again based on scaling up.
 
 
 
 Is that about right?
 
 
 
 Thanks,
 
 
 
 Jack
 
 
 
 
 
 From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On
 Behalf Of Martin Wood
 Sent: Wednesday, August 23, 2006 8:13 AM
 To: [EMAIL PROTECTED]ups.com
 Subject: Re: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend
 systems - which provides
 
 
 
 Jack Caldwell wrote:
  Dave:
  
  I agree that a 1/3 of a second is not going to be noticed by the
 end-user.
  
  However, when you add 100s or 1,000s of users . . . . does that make
a
  difference?
  
  I don't know . . . . that's why I am asking. You guys have the
 experience.
 
 It doesn't make any difference as the timings are on the client side,
 not the 
 server.
 
 There will be some difference in time required to handle requests on the
 server 
 which may be down to the data format but they would have to be
 investigated on a 
 case by case basis.
 
 martin.







__._,_.___





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








   






  
  
SPONSORED 

RE: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides

2006-08-23 Thread Franck de Bruijn












Hi Ted,



We all understand your arguments 1 and 2.
But in the end, and thats already identified in this topic, its
the user experience that counts. If it does not suffer by using web services,
its not an issue! Id like to hear the first story that changing
webservices by AMF increased the user experience significantly and sealed a
certain business proposition.



For argument 3 Developer
Productivity its true that developers need to program more lines
of code to obtain the same result (having your webservice result as an
ActionScript object), which is, I admit, error prone. But in the total view of
the costs of a development project ... it will not make much of a difference.
The actual additional lines of code Im talking about, however, are very
easy to generate from a model if you wish.



Again, FDS is cool, really true and it
does have its place. But for many applications FDS (including the extra
features messaging and data management) is neither an option nor necessary.



Cheers,

Franck 











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ted Patrick
Sent: Wednesday, August 23, 2006
6:47 PM
To: flexcoders@yahoogroups.com
Subject: RE: [Junk E-Mail - LOW]
[flexcoders] Re: Choice of backend systems - which provides













AMF is
faster in 3 fundamental ways:




 Bandwidth Size  Smaller, lighter,
 faster!!!





 Parsing Speed  Less work on both client
 and server!!!





 Developer Productivity  Less work for
 developers!!!




Web Services
are dependent on XML Parsing on both the client and server side. Although
its a good story, XML parsers are not very efficient as parsing
documents is an interpreted process. The Flash Player XML parser will always be
dramatically slower than AMF parsing, binary formats are notoriously faster in
this regard. 



XML
parsing additionally decays rapidly as the file size increases. Flash Player
XML parsing time increase non-linearly with larger XML documents. With AMF
parsing times are linear with data size. The XML decay can be attributed to the
number of inner objects that need to be created during a parsing run. AMF
objects are 1:1 with the data received where XML data is 1:N per
Elements/Attribute.



Comparing
XML to AMF is an unfair race, AMF wins every time. When you add in the overhead
of WS SOAP parsing atop the base XML parser speed you begin to see performance
issues. With SOAP, you interpret an XML document back into typed objects
depending on the SOAP specifics used. Sure 350ms is ok once or twice, but try
doing 200 transactions in this format and you will see performance issues
arise. Using Web Services you are forcing the Flash Player to do allot of
unneeded work. The goal is to build richer applications, not burn up player
performance in crud operations.



Additionally
non-proxied Web Service use suffers with Flash Player because of the browser
variation in the plug-in APIS. You cannot get the 500 Errors response content in
IE and thus the SOAP fault standard breaks down. In SOAP there are important
messages that arrive with 500 Errors and the inability of the Flash Player to
receive these is a problem. Unfortunately there is no seamless way to get 500
Errors into the Flash Player other then rewriting an HTTP Client in the Socket
class. This effort would also require a new SOAP library within Flex and socket
use on low ports requires a more complex crossdomain.xml configuration.
Even then you still suffer the same performance issues.



Performance
aside, the productivity discussion is much more important. AMF3 and Flex Data
Services are wildly productive. Once you compile your Java Class and configure
a destination in FDS (1 XML Element), you are done. All typing is handled, All
methods are ready to run with any number of client applications. It is the
easiest way to create a server side API that I know of. Actually most cases,
implementing FDS will removes $20,000 of developer time wasted on implementing
other data exchange for an application. FDS value is easy to see when viewed
through this productivity ROI metric. If you add CF integration into FDS, you
enjoy an even more productive jump. We spend so much time talking about
performance but we often waste so much developer time doing mundane data
exchange when things could be automated.



Having
worked at Cynergy Systems, everyone needs to realize that Carson, Dave and Team
are industry leading professionals at Web Services. They know SOAP better than
any single consulting firm that I know of. These guys were on teams at Sybase
and Microsoft building the first generation of Web Services integration servers
(MS BizTalk, EAServer)!!! They have the expertise to make Web Services/JAVA
work seamlessly with Flex but this is out of reach for most (unless you hire
them). They can jump through flaming hoops that few developers can with the
FLEX / TOMCAT / AXIS / JAVA stack. They have been down a very hard road and
have learning all 

RE: [flexcoders] Re: Choice of backend systems - which provides best functionality

2006-08-22 Thread Franck de Bruijn












Hi Barry,



Im not sure if I can be of much
help here. Im not into PHP, Im not into FDS and remoting and the
AMF protocol that is related to it. For me, but that is totally a personal
opinion, the only acceptable solution for communication with a back-end is
webservices, and nothing else. Briefly here are my reasons:


 The
 coolest thing about Flex is not the graphics ... but that you can make
 your server stateless, meaning that you obtain 100% fail-over
 characteristics including linear scalability. With FDS (or any other
 related solution) you highly likely lose this feature and my
 guess is that scalability will be tougher to achieve; for sure it is
 harder to guarantee ... with a stateless server solution you can. And we
 always want to grow with our applications, dont we???
 I
 like to keep my Flex layer totally independent of my back-end layer. My
 back-end layer should not be aware by any means of the client technology. With
 webservices you realize this. With FDS (or any other related solution) you
 get a vendor lock-in, which I consider undesirable.
 The
 trend in my business is that more and more you get projects only for a
 front-end or back-end solution. In the past it occurred more that you had
 to build them together, but that is changing. Its very acceptable
 to request a back-end to expose its operations through webservices. Its
 not very accetable to request them to expose it via FDS or something like
 that.




To be fair, there are some disadvantages
using web services as well; among others:


 No
 automatic conversion of the web service results into your custom action
 script classes. You have to make converters yourself to accomplish this. With
 FDS/AMF I understand you can have this conversion automatically done for
 you.
 Performance.
 People tend to say that webservices are slow. Its true that the
 serialization/deserialization of the XML (both on client and server) side
 takes computing time. My experiences so far are that this extra computing
 time is not causing any serious damage in the user experience.
 Flex
 has some trouble communicating with DOC/Literal encoded webservices. Especially
 in the .Net corner this is causing problems. But that should be
 temporarily ... The adobe guys are working on it and hopefully in a next
 release these issues will be fixed.




For me the advantages of webservices by
far outweigh the disadvantages. So if you ask me: use webservices! You keep
your freedom ...



Cheers,

Franck













From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of barry.beattie
Sent: Tuesday, August 22, 2006
9:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Choice
of backend systems - which provides best functionality











Franck and Doug: may I be so bold as to include here
some information
I sent to our programming team for them to have some context?

I offer it here as a talking point only - and would invite any
comments or corrections to help me gain a better understanding myself
... this has just been gathered by my own ad-hoc investigations. the
context of the email was a report that Adobe were seriously targeting
PHP developers for Flex.


regarding Flash remoting: some background to put it into context:

there are three basic ways of getting communication happening between
a SWF (now-a-days built with Flex) and server-side code:

webservices
XML HTTP requests
Flash Remoting (using the Async Message Format - AMF)

PHPAMF (Flash remoting with PHP) is not a Macromedia/Adobe product. It
was reverse engineered by the PHP community to use Flash remoting.
It's been around for a few years (that I know of) and may be even more
popular than CF-AMF (don't know for sure)

here's the important bit:

PHPAMF, OpenAMF, the Adobe .NET/ Java remoting add-in and ColdFusion
6.1 remoting all use the AMF0 protocol. ColdFusion 7.02 and
FlexDataServices (Java) all use AMF3

What's the diff? 2 things:
Apart from some removal of dumb stuff-ups and a reduction of data
packet size (thanx to new encoding), AMF3 is very strongly typed which
allows a seamless (and easy) mapping/conversion between server side
objects (eg: Java value objects and ColdFusion's CFC's). This is why
FlexBuilder can have a simple wizard to take your CFC and create
Actionscript classes from it (and/or visa-versa). Before it was all
manual with a tonne of testing (eg string to numeric conversions, etc).

[NOTE: the follow paragraph is total speculation]

Also, inside the latest Flash player (Flash9) there are actually 2
players. An older for backwards compatability and the latest
hot-rod
that has had some amazing improvements in functionality and speed.
Expect to see the use for the older player depricated in less than 5
years (the new player in Flash9 is like starting again). AMF0 is for
the older 

RE: [flexcoders] Choice of backend systems - which provides best functionality

2006-08-21 Thread Franck de Bruijn












Flex is supposed to be backend
independent. So you should choose the technology youre most comfortable
with.



There are in general 3 ways of integrating
with your back-end:


 webservices:
 total freedom, but can turn out to be hard. Especially with .Net there are
 some problems, although Adobe is working to fix it. With Java/Axis, youll
 probably find no issues.
 Remote
 Objects / Flex Data Services. The most advanced way of interoperating with
 your back-end, but requires JAVA on the backend.
 HTTP
 services: simple HTTP calls. For simple interfaces it will work, but for
 the more complex ones it will be insufficient.




Cheers,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of rhlarochelle
Sent: Tuesday, August 22, 2006
1:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Choice of
backend systems - which provides best functionality











I am new to Flex 2, and have the opportunity to
develop a new
application. Given all of the choices of back end technology out there
(J2EE, Coldfusion, PHP), which will provide for the richest user
experience?

It seems that leveraging J2EE and Java gives the best potential for
sharing objects (and updates to objects ) over the wire. Have I got
this right?






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Re: WebService - What's wrong with this code?

2006-08-21 Thread Franck de Bruijn
I have quite some experience with webservices now, both as consumer and
publisher. Even in non-flex areas it's very hard to get full integration
between clients and servers.

Webservices are overly complicated, but it's our only hope for what they
call hetergoneous interoperability. In the old days there was CORBA, but now
it's webservices.

The vendors' interpretation of the webservices spec is differing a lot. So
heavily that there is now a new organization (WS-I) narrowing the
webservices spec down (Basic Profile 1, and so forth). This organization
will define the future of webservices (and that's going to be DOC/Literal).

As long as the webservices spec leaves room for different interpretations,
it will be impossible for Flex to be compliant with all these different
interpretations. So, there will be cases where we have to accept that Flex
will not be able to fully interoperate with a certain obscure back-end
technology.

Flex should strive, however, to be compatible with the mostly used
technologies in the JAVA, .Net and PHP arena. That's already enough of a
challenge.

Cheers,
Franck

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Samuel D. Colak
Sent: Sunday, August 20, 2006 5:55 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: WebService - What's wrong with this code?
Importance: High

Guys,
 
flex's interoperability to webservices under Sun/IBM and Microsofts
specification is complete - what actually is missing is the literal
translation of some datatypes - take for instance the date structure under
dotNet is not supported under Flex UNLESS you provide the string
representation and then recode this is flex to parse the string.
 
I agree that if you are required to run flex to a back end server/service
infrastructure reliant upon one vendors technology then you are pretty much
burried. I most hasten to add that so far, flex has been (without any issues
i must add) shown to work with back ends running under MacOSX apache/php,
IIS 5.0 with dotNet 2 (dotNets framework V1 also works without any issues at
all). As for anything else i would suggest some lookup table.
 
Frankly although there is alot of chat here about FDS, i personally wonder
why - Its obvious that actionscript has taken a significant leap in
development, so why is everyone here talking about a 3rd product (FDS) to do
what you can really easily achieve under AS.
 
Just my two cents..
Samuel
 
PS. Im even willing to post my code if necessary to show how easy this is
!!!



Van: flexcoders@yahoogroups.com namens ben.clinkinbeard
Verzonden: zo 20/08/2006 17:12
Aan: flexcoders@yahoogroups.com
Onderwerp: [flexcoders] Re: WebService - What's wrong with this code?



Great post Franck, I think you pretty much hit the nail on the head.
Seth, thanks for your reply as well.

For those that didn't see the post where I mentioned it, I gave a
presentation this past Friday to the tech leads and members of the
architecture group in my department. Overall the meeting went very
well and most people seemed impressed. I included plenty of code demos
that showcased the RAD aspects of Flex and the power of databinding.
Most of the questions I got revolved around performance and
scalability (so I am looking for good info to send out on those topics
if anyone can recommend links), but interoperability was a big theme
as well.

FDS piqued everyone's interest, but learning that it was Java based
deflated that balloon a bit. (I know about WebOrb, if there is enough
interest I may investigate that further.) We are a large, Microsoft
top to bottom shop, so anything we do has to integrate into that
stack. Changing web services to suit Flex is certainly not an option,
as the app I am prototyping with it is the UI for one piece of a large
system. We will most likely never build an app whose only interface is
Flex, so being able to sit Flex on top of what is already there to
serve various other pieces is key. Flash/Flex is a hard enough sell as
it is most times, due to the fact that it is such a foreign approach
to most traditional developers.

As I originally said and Franck echoed, Flex's success (read:
adoption) will largely hinder on its ability to be plopped down on top
of an existing infrastructure and create a kickass user experience. If
this can only be done in environments based on Apache Axis, Flex will
surely not flourish. I cannot possibly stress enough the need to get
full web services support integrated sooner than Flex 3.

As for my bizarre problem with Flex sending nulls to my service, it
has been recommended that I reinstall FB. I will try that on Monday,
but if it doesn't resolve the issue (which I don't think it will), I
will need to seriously throttle my push for Flex adoption as I don't
enjoy looking like an idiot.

Thanks,
Ben

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ,
Franck de Bruijn
[EMAIL PROTECTED] wrote:

 Hi

RE: [flexcoders] Re: WebService - What's wrong with this code?

2006-08-20 Thread Franck de Bruijn
?
xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema;
xmlns:tns=http://server.webservices.tutorials.wakaleo.com/;
targetNamespace=http://server.webservices.tutorials.wakaleo.com/;
version=1.0
  xs:element xmlns:ns1=http://server.webservices.tutorials.wakaleo.com/;
type=ns1:sendStrings name=sendStrings/xs:element
  xs:complexType name=sendStrings
xs:sequence
  xs:element type=tns:ArrayOfString minOccurs=0 maxOccurs=1
name=strings/xs:element
/xs:sequence
  /xs:complexType 
  xs:complexType name=ArrayOfString
xs:sequence
  xs:element minOccurs=0 maxOccurs=unbounded name=string
nillable=true type=xs:string /
/xs:sequence
  /xs:complexType
  xs:element xmlns:ns2=http://server.webservices.tutorials.wakaleo.com/;
type=ns2:sendStringsResponse name=sendStringsResponse/xs:element
  xs:complexType name=sendStringsResponse
xs:sequence
  xs:element type=tns:ArrayOfString minOccurs=0 maxOccurs=1
name=strings/xs:element
/xs:sequence
  /xs:complexType
/xs:schema

And then make the call: ws.sendStrings([foo, bar]);

The outbound SOAP body contains the serialized array of strings:

?xml version=1.0 encoding=utf-8?
SOAP-ENV:Envelope
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xmlns:xsi=http://www..w3.org/2001/XMLSchema-instance;SOAP-ENV:Bodyns1:s
endStrings
xmlns:ns1=http://server.webservices.tutorials.wakaleo.com/;stringsstrin
gfoo/stringstringbar/string/strings/ns1:sendStrings/SOAP-ENV:Bod
y/SOAP-ENV:Envelope

I don't know if you can regenerate your service based on the updated schema
but it may be worth a try.

Best,
Seth 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Franck de Bruijn
Sent: Friday, August 18, 2006 9:49 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: WebService - What's wrong with this code?

And today this one came in:

http://groups.yahoo.com/group/flexcoders/message/47827

What I sense is that most of the problems are somehow related to DOC/Literal
versus RPC/Encoded, but of course I cannot be sure.

I'm exposing my webservices both via DOC/Literal and RPC/Encoded. These
webservices take a variety of arguments and also return a variety of
results. With variety I mean from simple primitive types, to complex objects
nested within complex objects containing arrays of Strings.

Via RPC/Encoded everything works as a charm (I'm using the Apache AXIS
engine), but via DOC/Literal issues arise.

Cheers,
Franck

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Lee
Sent: Friday, August 18, 2006 5:16 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: WebService - What's wrong with this code?

And my personal favorite:

http://groups.yahoo.com/group/flexcoders/message/47493

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Friday, August 18, 2006 10:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: WebService - What's wrong with this code?

Here are a couple.

http://groups.yahoo.com/group/flexcoders/messages/47267?threaded=1m=evar=1
tidx=1
http://groups.yahoo.com/group/flexcoders/messages/46548?threaded=1m=evar=1
tidx=1

I can confirm that I am working with an Adobe engineer to try and
resolve both issues (our company has a support contract with Adobe),
so they are listening and interested in fixing issues people are
having. I think thats a good sign.

Ben


--- In flexcoders@yahoogroups.com, Samuel D. Colak [EMAIL PROTECTED]
wrote:

 Umm ­ Franck ­ what issues with webservices?
 
 
 On 15/8/06 20:00, Franck de Bruijn [EMAIL PROTECTED] wrote:
 
   
   
   
  
  That¹s exactly what Ben is hammering at.
   
  It¹s too hard to get webservices up and running in a production-like
  application easy. It¹s true that Adobe is focussing more on FDS
than on the
  support for webservices, which is truely a pity. Let¹s hope it¹ll
change in
  the (near) future. I already saw a good sign of an Adobe engineer
trying to
  look into our problems.
   
  Cheers,
  Franck
   
  
  
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
  Of Samuel D. Colak
  Sent: Tuesday, August 15, 2006 10:22 AM
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Re: WebService - What's wrong with this
code?
   
  
  
  Hold on VS buggy ?? My god, that¹s amazing news ­ there was I
thinking for a
  moment that M$oft had got it right at least once - Œfraid to say
im most
  disappointed ­ my world has surely shattered ­ frankly I would
advise everyone
  that can to use the Eclipse plugin rather than the IDE under
Windows. I have
  experienced far fewer issues with Eclipse ;) But I have
experienced SOME !
  
  Im working with both VS.Net 2005 and Eclipse/Flex ­ cant say that
there have
  been any issues with WebServices AT-ALL categorically using
actionscript. I
  must admit it wasn¹t easy but its a tad different getting

RE: [flexcoders] Re: WebService - What's wrong with this code?

2006-08-18 Thread Franck de Bruijn
And today this one came in:

http://groups.yahoo.com/group/flexcoders/message/47827

What I sense is that most of the problems are somehow related to DOC/Literal
versus RPC/Encoded, but of course I cannot be sure.

I'm exposing my webservices both via DOC/Literal and RPC/Encoded. These
webservices take a variety of arguments and also return a variety of
results. With variety I mean from simple primitive types, to complex objects
nested within complex objects containing arrays of Strings.

Via RPC/Encoded everything works as a charm (I'm using the Apache AXIS
engine), but via DOC/Literal issues arise.

Cheers,
Franck

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Lee
Sent: Friday, August 18, 2006 5:16 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: WebService - What's wrong with this code?

And my personal favorite:

http://groups.yahoo.com/group/flexcoders/message/47493

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Friday, August 18, 2006 10:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: WebService - What's wrong with this code?

Here are a couple.

http://groups.yahoo.com/group/flexcoders/messages/47267?threaded=1m=evar=1
tidx=1
http://groups.yahoo.com/group/flexcoders/messages/46548?threaded=1m=evar=1
tidx=1

I can confirm that I am working with an Adobe engineer to try and
resolve both issues (our company has a support contract with Adobe),
so they are listening and interested in fixing issues people are
having. I think thats a good sign.

Ben


--- In flexcoders@yahoogroups.com, Samuel D. Colak [EMAIL PROTECTED]
wrote:

 Umm ­ Franck ­ what issues with webservices?
 
 
 On 15/8/06 20:00, Franck de Bruijn [EMAIL PROTECTED] wrote:
 
   
   
   
  
  That¹s exactly what Ben is hammering at.
   
  It¹s too hard to get webservices up and running in a production-like
  application easy. It¹s true that Adobe is focussing more on FDS
than on the
  support for webservices, which is truely a pity. Let¹s hope it¹ll
change in
  the (near) future. I already saw a good sign of an Adobe engineer
trying to
  look into our problems.
   
  Cheers,
  Franck
   
  
  
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
  Of Samuel D. Colak
  Sent: Tuesday, August 15, 2006 10:22 AM
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Re: WebService - What's wrong with this
code?
   
  
  
  Hold on VS buggy ?? My god, that¹s amazing news ­ there was I
thinking for a
  moment that M$oft had got it right at least once - Œfraid to say
im most
  disappointed ­ my world has surely shattered ­ frankly I would
advise everyone
  that can to use the Eclipse plugin rather than the IDE under
Windows. I have
  experienced far fewer issues with Eclipse ;) But I have
experienced SOME !
  
  Im working with both VS.Net 2005 and Eclipse/Flex ­ cant say that
there have
  been any issues with WebServices AT-ALL categorically using
actionscript. I
  must admit it wasn¹t easy but its a tad different getting use to
asyncronous
  webservice calling though Flex¹s event model but I finally managed
to make
  something very elegant and scalable. Obviously this isnt for the
fainthearted
  and you might have to unlearn somethings from the VS world (as I
did) to deal
  with the Flex logic.
  
  If anyone is stuck, give me a shout..
  Samuel
  
  
  On 15/8/06 10:02, sinatosk [EMAIL PROTECTED] wrote:
  
  
   
   
  
  ah white spaces. convert that URL using urlencode can't
remember the
  function/method name but it's around
  
  thats might do the trick :p
  
  On 14/08/06, Tom Lee [EMAIL PROTECTED] wrote:
  
   
   
  
  Thanks, Ben -
  
  Your code works fine.  My code, even after I manually edited to
make it
  identical to yours, does not.  I can only conclude that Flex
Builder is on
  crack.  Seriously, I went over it line by line...  No differences
except
  whitespace.  I hope this is not going to become a behavioral
pattern in
  Builder... I work with Visual Studio, and there's no room for
more than one
  buggy IDE in my life.
  
  Thanks again,
  
  -tom
  
  
  
  -Original Message-
  From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  [mailto: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com ]
  On
  Behalf Of ben.clinkinbeard
  Sent: Friday, August 11, 2006 10:01 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] Re: WebService - What's wrong with this code?
  
   Does it compile for you without errors?
  
  Yep, this exact code works for me.
  
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=absolute creationComplete=init()
  mx:Script
  ![CDATA[
  import mx.rpc.soap.LoadEvent;
  import mx.rpc.soap.WebService;
  
  private function init():void
  {
  var myWebService:WebService;
  myWebService = new WebService

RE: [flexcoders] Re: ComplexType in WSDL with webservice not sending arguments

2006-08-18 Thread Franck de Bruijn












Hi Kaleb,



Nice test.



Could you try exposing your webservice as
RPC/Encoded. Im very curious to see if that makes a difference. Personally,
I dont have a configuration running where I could test this.



Ben: The XSD is referred to from WSDL, so,
yes: its necessary. But as you already have asked many times, Im
curious what Flex DOES with a schema file in the serialization process.



Cheers,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of ben.clinkinbeard
Sent: Saturday, August 19, 2006
3:41 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re:
ComplexType in WSDL with webservice not sending arguments











I get the same result- an empty request that
successfully returns an
empty result. Do you have to use the XSD? I am not familiar with these
at all, so I don't understand exactly what purpose it may serve, but I
would not be surprised at all if the WebService library did not
support things like this.

Ben

--- In [EMAIL PROTECTED]ups.com,
kaleb_pederson [EMAIL PROTECTED] wrote:

 Hello all,
 
 My webservice has one function, sendStrings(), which takes a 
 sequence of arg0 values, each of which are strings. Despite the 
 simplicity of the request, I cannot get the web service to send 
 anything but an empty request across (other than variation 9 in 
 which I send XML across). I have tried every variation that I could 
 think of and have included them below:
 
 I'm hoping that one of you can try this and figure out if this is a 
 bug or if I'm just completely missing something.
 
 Feel free to hit this service as many times as needed to help with 
 this issue:
 
 WSDL: http://kibab.homeip.net:8080/myserv/myserv?wsdl
 XSD: http://kibab.homeip.net:8080/myserv/myserv?xsd=1
 (The crossdomain.xml file is setup to allow everyone access)
 
 If I send Array(One,Two,Three,...)
across, the expected result 
 would be: Array([0]One,[1]Two,[2]Three,...).
 
 Here are the different variations I've tried:
 
 /* NOTE: I fully re-initialize the web service each time:
 
 var ws:WebService = new mx.rpc.soap.mxml.WebService();
 ws.addEventListener(LoadEvent.LOAD,loadHandler);
 ws.addEventListener(FaultEvent.FAULT,faultHandler);
 ws.loadWSDL(http://kibab.homeip.net:8080/myserv/myserv?wsdl);
 // then after the load has completed perform the test
 
 */
 
 trace(variation1);
 var op:AbstractOperation = ws.getOperation(sendStrings);
 op.arguments = new Array(variation,one);
 op.send();
 
 trace(variation2);
 ws.sendStrings.arguments = new Array(variation,two);
 ws.sendStrings.send();
 
 trace(variation3);
 ws.sendStrings.send(new Array(variation,three));
 
 trace(variation4);
 ws.sendStrings.send(variation,four);
 
 trace(variation5);
 ws.sendStrings(variation,five);
 
 // this function results in a fault event:
 // Unexpected parameter sendStrings found in input arguments.
 trace(variation6);
 var op:AbstractOperation = ws.getOperation(sendStrings);
 op.arguments = {sendStrings:{arg0:new 
 Array(variation,six)}};
 op.send();
 
 trace(variation7);
 var op:AbstractOperation = ws.getOperation(sendStrings);
 op.send({sendStrings:{arg0:new Array(variation,six)}});
 
 trace(variation8);
 var xml:XML = new XML(ns1:sendStrings 
 xmlns:ns1=http://server.webservices.tutorials.wakaleo.com/
+
 arg0variation/arg0arg0eight/arg0
+
 /ns1:sendStrings);
 var op:AbstractOperation = ws.getOperation(sendStrings);
 op.send(xml);
 
 trace(variation9);
 // this WORKS (but variation 8 does not)
 var xml:XMLDocument = new XMLDocument(ns1:sendStrings 
 xmlns:ns1=http://server.webservices.tutorials.wakaleo.com/
+
 arg0variation/arg0arg0nine/arg0
+
 /ns1:sendStrings);
 var op:AbstractOperation = ws.getOperation(sendStrings);
 op.send(xml);
 
 trace(variation10);
 var op:Operation = ws.getOperation(sendStrings) as
Operation;
 op.resultFormat = e4x;
 var args:Object = new Object();
 args.arg0 = new Array(variation,ten);
 op.arguments = args;
 ws.sendStrings();
 
 trace(variation11);
 var op:Operation = ws.getOperation(sendStrings) as
Operation;
 op.resultFormat = e4x;
 var args:Object = new Object();
 args.sendStrings = new Object();
 args.sendStrings.arg0 = new Array(variation,eleven);
 op.arguments = args;
 ws.sendStrings();
 
 Please let me know if there is any other information that I can 
 provide to help resolve this issue.
 
 Thanks for the help!
 
 --Kaleb







__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  
   

RE: [flexcoders] Re: Deserializing WebService call... Flex/Cairngorm

2006-08-16 Thread Franck de Bruijn












I think that there is a difference in the
return types of Remote objects and WebServices. I dont have any
experience with remote objects, but its a Flex/Flash/CFC/FDS proprietary
protocol I guess. And by nature, proprietary protocols are often much more
powerful.



For sure, with web services, you get a
dynamic object that you cannot cast to anything.



Cheers,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of grahampengelly
Sent: Wednesday, August 16, 2006
11:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re:
Deserializing WebService call... Flex/Cairngorm











Thanks Ben  Franck for your help. Like you Franck
I couldn't see why
it would work to cast one completely unrelated thing to another but
this is the way it appeared to be being done in the samples.

Of course, what I hadn't got to grips with is that the two samples
that I was studying are both using RemoteObject rather than WebService
calls and consequently are returning something that can be cast...

Thanks...

Graham

--- In [EMAIL PROTECTED]ups.com,
ben.clinkinbeard
ben.clinkinbeard@... wrote:

 Nothing definitive here but I do have a couple of suggestions. Any
 time I see ObjectProxy mentioned in an error description, I
 immediately wonder if makeObjectsBindable is at fault. Try setting it
 to false on your WS and see what happens.
 
 Personally, I always use e4x as my resultFormat (for various reasons),
 so I don't have experience casting to a custom object but if you do
 end up needing to use Franck's suggested methodology I would certainly
 recommend creating a factory that will accept the SOAP return values
 and return an instance of your custom object.
 
 HTH,
 Ben
 
 
 --- In [EMAIL PROTECTED]ups.com,
grahampengelly graham@ wrote:
 
  I am just getting up to speed with the Cairngorm architecture and
have
  been struggling with this problem for a while. I have got to the
point
  where I am getting a response from my web service call that has
the data
  in that I expect but I cannot seem to get it to deserialize into the
  object that I need.
  
  The code (I have used IResponder rather than the cairngorm Responder
  here as suggested during an earlier post here 
  http://groups.yahoo.com/group/flexcoders/message/47366
)
  
  public function result( data:Object ):void
  {
  var event:ResultEvent = data as ResultEvent;
  
  var testString:String = ;
  for each(var thing:Object in event.result)
  {
  testString +=   + thing +  ;
  }
  //test alert 1
  Alert.show(testString);
  //test alert 2
  Alert.show(event.result.Id =  + event.result.Id
+ ,
  event.result.Name =  + event.result.Name);
  
  var tObj:TestObj = event.result as TestObj;
  Alert.show(TestObj.Id =  + tObj.Id);
  
  }
  The test alerts print out:
  test 1: Graham 1
  test 2: event.result.Id = 1, event.result.Name =
Graham
  
  The subsequent line throws an exception:
  
  TypeError: Error #1034: Type Coercion failed: cannot convert
  mx.utils::ObjectPro[EMAIL PROTECTED] to HASAW.ClientApp.Model.TestObj.
  
  The object that I am trying to create from the results looks like
this:
  
  public class TestObj implements ValueObject
  {
  
  public var Id:int;
  public var Name:String;
  public function TestObj()
  {
  Id = 0;
  Name = ;
  }
  }
  
  
  I have tried various implementations and can't get the web service
  response to cast to TestObj. To be honest, I wouldn't have thought
that
  it should cast to TestObj but I have followed all of the code samples
  for Cairngorm and they all do it like this.
  
  I am using .NET for the web service which may be an issue as the
samples
  don't. It is returning the following SOAP in event.result.body
  
  ?xml version=1.0 encoding=utf-8
? - # 
soap:Envelope
  xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance

  xmlns:xsd=http://www.w3.org/2001/XMLSchema
  soap:Body - # GetTesterResponse
xmlns= - #
  GetTesterResult Id1/Id 
  NameGraham/Name /GetTesterResult 
  /GetTesterResponse /soap:Body
/soap:Envelope
  I know I could manually populate the object with the values but the
  objects I will be deserializing in the application are much more
complex
  than this which would make a manual approach a pain.
  
  Thanks in advance...
  
  Graham
 







__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! 

RE: [flexcoders] Re: Deserializing WebService call... Flex/Cairngorm

2006-08-16 Thread Franck de Bruijn












It would be great if we would have some
component that could handle this, but Im afraid itll be extremely
hard to accomplish:


 You
 would need some sort of a reflection API, and Im not
 sure if that exists in Flash/Flex.
 Itll
 be tricky to deal with nested custom objects and collections of nested custom
 objects
 Plus,
 there are always these subtle naming issues.




It would be no option for me to start
writing XML-files and the like in order to make the conversion automatic. Then,
its better to program the conversions out in your own factory ActionScript
methods.



Another cue you could follow is to have
the conversions automatically generated. Thats what Im after ...



Cheers,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of grahampengelly
Sent: Wednesday, August 16, 2006
5:55 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re:
Deserializing WebService call... Flex/Cairngorm











Yes, I'm not sure of the specifics myself but from my
exploratory
rummaging in the docs it looks like FDS handles all of that mapping.
As I am using .NET on the server it looks like manual deserialization
into my objects is the way forward.

I have begun implementing my app with the factory methods you
suggested and all appears to be working well. Shame I can't get the
object mapping without using Java/FDS. Perhaps once I have got to
grips with it a bit more I might look into writing some sort of
component for the web service users amongst us, which , judging by the
volume of posts on this group regarding web services, amounts to a
fair few folk.

Cheers

Graham

--- In [EMAIL PROTECTED]ups.com,
ben.clinkinbeard
ben.clinkinbeard@... wrote:

 There is a decent chance I am wrong about this but I think when you
 use RemoteObject with FDS you set up some sort of Java - AS class
 mapping in a config file.
 
 Ben
 
 
 --- In [EMAIL PROTECTED]ups.com,
grahampengelly graham@ wrote:
 
  Thanks Ben  Franck for your help. Like you Franck I couldn't see
why
  it would work to cast one completely unrelated thing to another but
  this is the way it appeared to be being done in the samples.
  
  Of course, what I hadn't got to grips with is that the two samples
  that I was studying are both using RemoteObject rather than
WebService
  calls and consequently are returning something that can be cast...
  
  Thanks...
  
  Graham
  
  --- In [EMAIL PROTECTED]ups.com,
ben.clinkinbeard
  ben.clinkinbeard@ wrote:
  
   Nothing definitive here but I do have a couple of suggestions.
Any
   time I see ObjectProxy mentioned in an error description, I
   immediately wonder if makeObjectsBindable is at fault. Try
setting it
   to false on your WS and see what happens.
   
   Personally, I always use e4x as my resultFormat (for various
reasons),
   so I don't have experience casting to a custom object but if you
do
   end up needing to use Franck's suggested methodology I would
certainly
   recommend creating a factory that will accept the SOAP return
values
   and return an instance of your custom object.
   
   HTH,
   Ben
   
   
   --- In [EMAIL PROTECTED]ups.com,
grahampengelly graham@ wrote:
   
I am just getting up to speed with the Cairngorm
architecture
 and have
been struggling with this problem for a while. I have got
to the
 point
where I am getting a response from my web service call that
has
  the data
in that I expect but I cannot seem to get it to deserialize
into the
object that I need.

The code (I have used IResponder rather than the cairngorm
Responder
here as suggested during an earlier post here 
http://groups.yahoo.com/group/flexcoders/message/47366
)

public function result( data:Object ):void
{
var event:ResultEvent = data as ResultEvent;

var testString:String = ;
for each(var thing:Object in event.result)
{
testString +=   + thing +  ;
}
//test alert 1
Alert.show(testString);
//test alert 2
Alert.show(event.result.Id =  +
event.result.Id + ,
event.result.Name =  + event.result.Name);

var tObj:TestObj = event.result as TestObj;
Alert.show(TestObj.Id =  + tObj.Id);

}
The test alerts print out:
test 1: Graham 1
test 2: event.result.Id = 1, event.result.Name
= Graham

The subsequent line throws an exception:

TypeError: Error #1034: Type Coercion failed: cannot
convert
mx.utils::ObjectPro[EMAIL PROTECTED] to HASAW.ClientApp.Model.TestObj.

The object that I am trying to create from the results
looks like
  this:

public class TestObj implements ValueObject
{

public var Id:int;
public var Name:String;
public function TestObj()
{
Id = 0;
Name = ;
}
}


I have tried various implementations and can't get the web
service
response to cast to TestObj. To be honest, I wouldn't have
thought
  that
it should cast to 

RE: [flexcoders] Help regarding WebServices (FLEX) in Actionscript

2006-08-15 Thread Franck de Bruijn












Hi Samuel,



Good to hear that it works now. Its the
tedious hours chasing a stupid bug that gives the greatest learning curve!



When I start up my application I load all
the WSDLs I need. For each load I register on the LoadEvent. I know how much
WSDLs Im loading, so I count the number of events that I receive back. Only
when I have received all WSDLs I unlock the Login button. In my opinion you
have to wait until all WSDLs have loaded successfully, otherwise it has no use
to start your application.



I only (try to) use MXML for the visual
parts. For all other parts like models, controllers, webservices and the like Im
using actionscript.



Cheers,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Samuel Colak
Sent: Sunday, August 13, 2006 5:43
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Help
regarding WebServices (FLEX) in Actionscript



















Franck,











i managed to get it working without any issues - yes i own ifeel3.com,
so there arent any security violations as the flash file is originating from
the same site.











The code issue you mention is very valid for the startup - once the
wsdl is cached it doesnt take much more time - i forgot to take into account
that when you query an iis server running dotNet framework, the system takes
1-2 seconds to load in the dlls etc to run the application framework - in all
it was a learning curve involving a few hours of banging my head against the
wall.. finally it works ;)











The async stuff is usefull for dealing with multiple calls
simultaneously to the wsdl. When you do what you propose, you lock the wsdl
from doing anything else than one call at a time.











Thanks for the headsup on the doc/literal issue - you are quite right,
but i think i got that sneaky thing covered ;)











On another note its actually very interesting that the lack of clear
actionscript documentation for the components - seems adobe is pushing everyone
to use mxml which actually starts to tie your hands in a number of cases i can
think of. But one thing for sure, i cant wait for Flex on Mac - it pains me to
run two systems side by side and my trusty macbook pro no more than an mp3
player whilst coding on a dell ;(











Oh well - such is like ;) TTFN















On 13 Aug 2006, at 07:47, Franck de Bruijn wrote:























Hi Samuel,



A few things:


 Are
 you sure that you host your Flex application also at the www.ifeel3.comsite? This is a necessity for a Flex application to
 communicate with a webservice, due to Flashs security model. (unless
 there is somewhere a crossdomain.xml file with the correct content ... check the
 documentation)
 Your
 code might work, but not necessarily so.. The loadWSDL() operation is
 asynchronous, but takes quite some time to complete. Only after the
 loadWSDL() has completed (and then some milliseconds more ... see some
 recent threads in this mailing list) you can fire your operation. To
 accomplish this you have to register for the LoadEvent.LOAD event
 I
 dont know where all this AsyncToken stuff comes from, but invocation of
 webservices can be done much simpler. Just try: tsWS.createUser(sessionId,
 userName, dob).
 Expect
 some difficulties with Flex and the support of DOC/Literal webservices; I
 see that you are probably using .Net and DOC/Literal, and there are some
 issues with it. Also check the mailing list for this.




HTH,

Franck











From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Samuel Colak
Sent:
Sunday, August 13, 2006 1:29 AM
To: [EMAIL PROTECTED]ups.com
Subject:
[flexcoders] Help regarding WebServices (FLEX) in Actionscript











var tsWS:WebService = new WebService();
tsWS.wsdl = http://www.ifeel3.com/webservices/service.asmx?WSDL; 
tsWS.loadWSDL();

var op:AbstractOperation = tsWS[createUser];
tsWS.addEventListener(result, doResults);
tsWS.addEventListener(fault, doFailed);
var token:AsyncToken = op.send();
token.responder = new Responder(resultOut, null);

-

All,

i am tring to access some webservices i have
written in dotNet from Flex. If anyone can point 
out where i am going wrong, please send me an
email to [EMAIL PROTECTED]at-home.com.

The WSDL is publically visible - the only part
missing are the eventlistening functions. 

Many thanks,
Samuel




































__._,_.___





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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Re: Debugging Web Service call

2006-08-15 Thread Franck de Bruijn












Im not sure if my message made it
to the list ...





Hi Tom,



Try: myWebService.myMethod();



Thats how I invoke my webservice
operations from Flex.



Cheers,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tom Lee
Sent: Thursday, August 10, 2006
7:01 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re:
Debugging Web Service call











Yeah, I hate generic questions too, sorry about that.
Problem is, I can't
show you the web services due to company policy, and can't show you my code
because it would expose the web services. I can tell you that I've
connected successfully to other web services using the same syntax, so I'm
pretty sure my code's not at fault.

What I'm really after are general tips on debugging web service calls.
Usually you'd look at the fault message when a call fails, but this failure
isn't generating a fault. Also, it prevents subsequent function calls from
executing, which I find odd:

function doIt():void{
myWebService.myMethod.send();
//The following will not fire:
Alert.show(Call made to webservice);
}

Sorry I can't post my code. I appreciate anything you might be able to
offer despite that fact.

-tom

-Original Message-
From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On
Behalf Of flexnadobe
Sent: Thursday, August 10, 2006 12:29 PM
To: [EMAIL PROTECTED]ups.com
Subject: [flexcoders] Re: Debugging Web Service call

Hi Tom,

If you want try to post some code so we can see what you are doing?
There are alot of cool bro's on this site that will help but we will
need a starting point.

cya,

Rich

--- In [EMAIL PROTECTED]ups.com,
Tom Lee [EMAIL PROTECTED] wrote:

 Hi guys,
 
 
 
 I'm having some trouble with a WebService call and can't seem to
pinpoint
 the trouble. The WSDL loads fine, but any calls to the web service
result
 in nothing. No fault, no result, not even the busy cursor (even
though I've
 got showBusyCursor=true). Anyone have any suggestions for
how I might
 debug this? Are there any low-level status events I can hook into?
 
 
 
 I have better luck with the MXNA web services, so I know my syntax
is right.
 
 
 
 Thanks!
 
 
 
 -tom


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






__._,_.___





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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Re: Debugging Web Service call

2006-08-15 Thread Franck de Bruijn












Hi Tom,



Try: myWebService.myMethod();



Thats how I invoke my webservice
operations from Flex.



Cheers,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tom Lee
Sent: Thursday, August 10, 2006
7:01 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re:
Debugging Web Service call











Yeah, I hate generic questions too, sorry about that.
Problem is, I can't
show you the web services due to company policy, and can't show you my code
because it would expose the web services. I can tell you that I've
connected successfully to other web services using the same syntax, so I'm
pretty sure my code's not at fault.

What I'm really after are general tips on debugging web service calls.
Usually you'd look at the fault message when a call fails, but this failure
isn't generating a fault. Also, it prevents subsequent function calls from
executing, which I find odd:

function doIt():void{
myWebService.myMethod.send();
//The following will not fire:
Alert.show(Call made to webservice);
}

Sorry I can't post my code. I appreciate anything you might be able to
offer despite that fact.

-tom

-Original Message-
From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On
Behalf Of flexnadobe
Sent: Thursday, August 10, 2006 12:29 PM
To: [EMAIL PROTECTED]ups.com
Subject: [flexcoders] Re: Debugging Web Service call

Hi Tom,

If you want try to post some code so we can see what you are doing?
There are alot of cool bro's on this site that will help but we will
need a starting point.

cya,

Rich

--- In [EMAIL PROTECTED]ups.com,
Tom Lee [EMAIL PROTECTED] wrote:

 Hi guys,
 
 
 
 I'm having some trouble with a WebService call and can't seem to
pinpoint
 the trouble. The WSDL loads fine, but any calls to the web service
result
 in nothing. No fault, no result, not even the busy cursor (even
though I've
 got showBusyCursor=true). Anyone have any suggestions for
how I might
 debug this? Are there any low-level status events I can hook into?
 
 
 
 I have better luck with the MXNA web services, so I know my syntax
is right.
 
 
 
 Thanks!
 
 
 
 -tom


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






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Flex Data Services

2006-08-15 Thread Franck de Bruijn












Webservices are indeed never meant to be
hard and if they work its totally simple. If they dont work ...
youre in for trouble: check the posts ... :) Unfortunately, my feeling
tells me that Flex has more problems communicating with .Net webservices than Java
(AXIS based) webservices.



For the problem mentioned originally by Scott,
the following:



You cannot access the webservices behind a
firewall directly from the Flex application. The Flex application will be
served to the client, but in the end it does not matter. The Flex application
will run locally. And if the local machine cannot reach behind the firewall youre
out of luck. Even if the webservices are not behind the webservices you
probably will have a problem accessing them, since Flash only allows you to
address URLs with the base identical to the URL you have downloaded your app
from. Since you are talking about two different machines, these base addresses
will not match and youll have a security issue.



To solve this you have to the proxy
way, which gives you 2 directions:


 On
 the machine where you host your Flex application, set-up a server hosting
 your own webservices. These webservices can be called from the Flex app.
 The implementation behind these webservices can then forward the Flex
 requests to the real server.
 On
 the machine where you host your Flex application, set-up FDS. But here my
 experience lacks, so I cannot give you guidelines how to accomplish that.




Good luck!

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Samuel D. Colak
Sent: Tuesday, August 15, 2006
6:48 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex
Data Services











You can use Flex alone with its
webservice support.
Im not sure what all the fuss is with FDS but webservices were never meant to
be that hard in general.


On 15/8/06 08:10, scott.kinder scott.kinder@yahoo.com
wrote:







Hi All,

I'm new to Flex 2 and Flex Data Services. I have a problem and I need
to find out if I need Flex 2 Data Services. I have an external server
serving up a SWF, and then a server behind the firewall that contains
.NET web services. If I want my users to be able to browse to the SWF,
and then communicate with the .NET services behind the firewall, do I
need to use Flex Data Services or can I use regular Flex 2?

Cheers

Scott Kinder













__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Re: WSDLError:Element not resolvable = LoadEvent doesn't imply service ready

2006-08-15 Thread Franck de Bruijn












Hi Bill,



Great to see that someone from Adobe is looking
into this. I hope Kaleb is reading this post and can provide you with the WSDL.
I personally did not encounter this error myself, but it looks thoroughly
investigated by Kaleb.



If Kaleb is not responding, its
maybe an idea to create a huge WSDL, then load it and immediately after the
LoadEvent try to call an operation. It should fail. If you need help with
creating this WSDL I can try. Let me know.



Cheers,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Bill Sahlas
Sent: Wednesday, August 09, 2006
2:48 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re:
WSDLError:Element not resolvable = LoadEvent doesn't imply service ready













Howdy, 



Id like to reproduce this internally here in the FDS QA lab
using some of your examples. Can someone on this list forward me a link
to a WSDL that is publicly accessible with sample code to execute?



Thanks, Bill



FDS QA  Adobe Systems Inc.











From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On Behalf Of Franck de Bruijn
Sent: Tuesday, August 08, 2006
1:59 PM
To: [EMAIL PROTECTED]ups.com
Subject: RE: [flexcoders] Re:
WSDLError:Element not resolvable = LoadEvent doesn't imply service ready













Hi Kaleb,



Cool! Great stuff..



My guess is that the delay is machine dependent, but not
necessarily network dependent. I do believe that the LOAD event does indicate that
the WSDL actually has loaded successfully. Flex will not need any more access
to the network in order to initialize the web service.



Anyway, its a little bit sloppy that the LOAD event does not
indicate that the webservice is actually ready for use. I consider this a bug
if you ask me. So, maybe this is something we can put on the wish list???



Thanks,

Franck











From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On Behalf Of kaleb_pederson
Sent: Tuesday, August 08, 2006
7:18 PM
To: [EMAIL PROTECTED]ups.com
Subject: [flexcoders] Re:
WSDLError:Element not resolvable = LoadEvent doesn't imply service ready











Frank,

I did a bit more research into this. I don't need nearly a second 
for the WebService to be ready after the load event. I just put the 
whole process in a loop to see what kind of delay I need to make it 
work on my box (with the service running on my box). Unfortunately, 
the delay is probably machine and network dependent and, therefore, 
would have to be different on other machines.

My results were:

res[delay in ms] = # successes (out of 100)
res[1] = 0
res[2] = 5 ...
res[10] = 13 ...
res[15] = 42 ...
res[20] = 53 ...
res[30] = 77 ...
res[38] = 100
(and the rest were 100 also)

Somebody else had what may have been a similar problem and he just 
re-fired the request 
(http://groups.yahoo.com/group/flexcoders/message/46401).
That's 
certainly not an elegant solution

So, I still don't have a solution, just a work-around. Does anybody 
else have any ideas or suggestions?

Thanks.

--Kaleb

--- In [EMAIL PROTECTED]ups.com,
Franck de Bruijn 
franck.de.bruijn@... wrote:

 Hi Kaleb,
 
 
 
 I always expected the web service to be ready after the load event
 completed. Probably it's a matter of milliseconds. I never 
encountered your
 problem before, since I don't automatically call web services 
after loading.
 So far, my webservices are only invoked behind a button.
 
 
 
 But sooner or later I probably will, since I will want to push 
master data
 from the server into the application (like a country table or 
something like
 that) directly after startup.
 
 
 
 So, this does not sound good ...
 
 
 
 I expect that your workaround is the only solution.
 
 
 
 Cheers,
 
 Franck
 
 
 
 
 
 
 
 _ 
 
 From: [EMAIL PROTECTED]ups.com

[mailto:[EMAIL PROTECTED]ups.com]
On
 Behalf Of kaleb_pederson
 Sent: Tuesday, August 08, 2006 1:38 AM
 To: [EMAIL PROTECTED]ups.com
 Subject: [flexcoders] WSDLError:Element not resolvable = 
LoadEvent doesn't
 imply service ready
 
 
 
 I have been struggling with the Element not resolvable error 
today 
 in some of my unit tests using FlexUnit. As far as I can tell, the 
 LoadEvent doesn't imply that the service is ready. If I put a 
timer 
 in and wait 1 second after the load event to make my service call, 
 everything works correctly. If I don't wait 1 second, however, 
then 
 I receive the Element not resolvable error. This appears to be
a 
 bug in the WebService class.
 
 Here's my sample code:
 
 import mx.rpc.soap.WebService;
 import flash.events.Event;
 import mx.rpc.events.ResultEvent;
 import mx.rpc.soap.LoadEvent;
 import flash.utils.Timer;
 import flash.events.TimerEvent;
 
 public class SoapDemoTest {
 
 public function testListVocabularies():void {
 trace('testListVocabularies');
 ws = new mx.rpc.soap.WebService();
 ws.addEventListener(LoadEvent.LOAD, onLoadCompleted);
 ws.loadWSDL(http://192.168. 
http://192.168.1.1:8080/myserv

RE: [flexcoders] Deserializing WebService call... Flex/Cairngorm

2006-08-15 Thread Franck de Bruijn












Hi Graham,



I did not read your entire post, nor do I
have any knowledge about cairngorm. But Ill give a try ...



Your code: var tObj:TestObj = event.result
as TestObj; will not work.



event.result is a dynamic Object and you
cannot cast it to your own custom made ActionScript class TestObj. If you want
to put the webservice result into an ActionScript object, you will have to do
the following:


 var
 tObj:TestObj
 tObj
 = new TestObj();
 tObj.Id
 = event.result.Id
 tObj.Name
 = event.result.Name




Yep, its tedious and boring, but
thats exactly the way Im doing it at the moment ...



On the other hand: its quite
understandable. How can Flex know that the result coming back from a webservice
is actually some sort of custom type? It would be an extremely interesting
feature of Flex if you could specify that somehow ...



Cheers,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of grahampengelly
Sent: Tuesday, August 15, 2006
6:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders]
Deserializing WebService call... Flex/Cairngorm











I am just getting up to speed with
the Cairngorm architecture and have been struggling with this problem for a
while. I have got to the point where I am getting a response from my web
service call that has the data in that I expect but I cannot seem to get it to
deserialize into the object that I need.

The code (I have used IResponder rather than the cairngorm Responder here as
suggested during an earlier post here
)

  public function result( data:Object
):void
  {
   var
event:ResultEvent = data as ResultEvent;
   
   var
testString:String = ;
   for each(var
thing:Object in event.result)
   {
  
 testString +=   + thing +  ;
   }
   //test alert 1
  
Alert.show(testString);
   //test alert 2
   Alert.show(event.result.Id
=  + event.result.Id + , event.result.Name =  +
event.result.Name);
   
   var tObj:TestObj
= event.result as TestObj;
   Alert.show(TestObj.Id
=  + tObj.Id);
   
  }
The test alerts print out:
 test 1: Graham 1
 test 2: event.result.Id = 1, event.result.Name
= Graham

The subsequent line throws an exception:

TypeError: Error #1034: Type Coercion failed: cannot convert mx.utils::ObjectPro[EMAIL PROTECTED]
to HASAW.ClientApp.Model.TestObj.

The object that I am trying to create from the results looks like this:

 public class TestObj implements ValueObject
 {
  
  public var Id:int;
  public var Name:String;
  public function TestObj()
  {
   Id = 0;
   Name = ;
  }
 }


I have tried various implementations and can't get the web service response to
cast to TestObj. To be honest, I wouldn't have thought that it should cast to
TestObj but I have followed all of the code samples for Cairngorm and they all
do it like this.

I am using .NET for the web service which may be an issue as the samples don't.
It is returning the following SOAP in event.result.body



 ?xml version=1.0 encoding=utf-8 ? 







-
 soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance  xmlns:xsd=http://www.w3.org/2001/XMLSchema
soap:Body













-
  GetTesterResponse xmlns=









-
   GetTesterResult









 
   Id1/Id 









 
   NameGraham/Name








 
 /GetTesterResult









 
/GetTesterResponse









 
/soap:Body









 /soap:Envelope








I know I could manually populate the object with the values but the objects I
will be deserializing in the application are much more complex than this which
would make a manual approach a pain. 

Thanks in advance...

Graham






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Re: WSDLError:Element not resolvable = LoadEvent doesn't imply service ready

2006-08-15 Thread Franck de Bruijn












Wow! What a quick response!



Keep it coming!

Thanks,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of kaleb_pederson
Sent: Tuesday, August 15, 2006
11:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re:
WSDLError:Element not resolvable = LoadEvent doesn't imply service ready











Very cool Seth! Thanks for the heads up and the help
in resolving 
the issue.

--Kaleb

--- In [EMAIL PROTECTED]ups.com,
Seth Hodgson [EMAIL PROTECTED]. 
wrote:

 Hi Kaleb,
 
 
 
 Thanks for providing your WSDL/XSD/service code. We've identified 
and
 fixed the issue internally. The problem was that WSDL parsing 
dispatches
 the load event after the WSDL is loaded and parsed, but without 
properly
 waiting for schema imports to be fetched over the network and 
parsed.
 The simplest workaround is to avoid schema imports :-) If that 
isn't an
 option, catch the 'Element not resolvable' error and retry your 
call
 using a Timer on a short delay.
 
 
 
 Thanks again for your help closing out this bug,
 
 Seth
 
 
 
 
 
 From: [EMAIL PROTECTED]ups.com

[mailto:[EMAIL PROTECTED]ups.com]
On
 Behalf Of kaleb_pederson
 Sent: Tuesday, August 15, 2006 12:28 PM
 To: [EMAIL PROTECTED]ups.com
 Subject: [flexcoders] Re: WSDLError:Element not resolvable = 
LoadEvent
 doesn't imply service ready
 
 
 
 Hello all,
 
 I have provided Bill at Adobe with a copy of the WSDL and XSD for 
 the test service. I haven't received a response but assume that he 
 received them. The WSDL and XSD need not be large. For testing 
 purposes, I created a service that had only a single function that 
I 
 was able to use to reproduce this problem. I also offered to 
 provide that sample service to them.
 
 I'll take a look at www.xmethods.net and see if the error 
reproduces 
 on some of their publically available services. I'll post back 
once 
 I know whether or not it reproduces.
 
 Thanks.
 
 --Kaleb
 
 --- In [EMAIL PROTECTED]ups.com

mailto:flexcoders%40yahoogroups.com
 , Franck de Bruijn 
 franck.de.bruijn@ wrote:
 
  Hi Bill,
  
  
  
  Great to see that someone from Adobe is looking into this. I 
hope 
 Kaleb is
  reading this post and can provide you with the WSDL. I 
personally 
 did not
  encounter this error myself, but it looks thoroughly 
investigated 
 by Kaleb.
  
  
  
  If Kaleb is not responding, it's maybe an idea to create a huge 
 WSDL, then
  load it and immediately after the LoadEvent try to call an 
 operation. It
  should fail. If you need help with creating this WSDL I can try. 
 Let me
  know.
  
  
  
  Cheers,
  
  Franck
  
  
  
  _ 
  
  From: [EMAIL PROTECTED]ups.com

mailto:flexcoders%40yahoogroups.com
 
 [mailto:[EMAIL PROTECTED]ups.com

mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of Bill Sahlas
  Sent: Wednesday, August 09, 2006 2:48 PM
  To: [EMAIL PROTECTED]ups.com

mailto:flexcoders%40yahoogroups.com 
  Subject: RE: [flexcoders] Re: WSDLError:Element not resolvable 
= 
 LoadEvent
  doesn't imply service ready
  
  
  
  Howdy, 
  
  
  
  I'd like to reproduce this internally here in the FDS QA lab 
using 
 some of
  your examples. Can someone on this list forward me a link to a 
 WSDL that is
  publicly accessible with sample code to execute?
  
  
  
  Thanks, Bill
  
  
  
  FDS QA - Adobe Systems Inc.
  
  
  
  _ 
  
  From: [EMAIL PROTECTED]ups.com

mailto:flexcoders%40yahoogroups.com
 
 [mailto:[EMAIL PROTECTED]ups.com

mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of Franck de Bruijn
  Sent: Tuesday, August 08, 2006 1:59 PM
  To: [EMAIL PROTECTED]ups.com

mailto:flexcoders%40yahoogroups.com 
  Subject: RE: [flexcoders] Re: WSDLError:Element not resolvable 
= 
 LoadEvent
  doesn't imply service ready
  
  
  
  Hi Kaleb,
  
  
  
  Cool! Great stuff..
  
  
  
  My guess is that the delay is machine dependent, but not 
 necessarily network
  dependent. I do believe that the LOAD event does indicate that 
the 
 WSDL
  actually has loaded successfully. Flex will not need any more 
 access to the
  network in order to initialize the web service.
  
  
  
  Anyway, it's a little bit sloppy that the LOAD event does not 
 indicate that
  the webservice is actually ready for use. I consider this a bug 
if 
 you ask
  me. So, maybe this is something we can put on the wish list???
  
  
  
  Thanks,
  
  Franck
  
  
  
  _ 
  
  From: [EMAIL PROTECTED]ups.com

mailto:flexcoders%40yahoogroups.com
 
 [mailto:[EMAIL PROTECTED]ups.com

mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of kaleb_pederson
  Sent: Tuesday, August 08, 2006 7:18 PM
  To: [EMAIL PROTECTED]ups.com

mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] Re: WSDLError:Element not resolvable = 
 LoadEvent
  doesn't imply service ready
  
  
  
  Frank,
  
  I did a bit more research into this. I don't need nearly a 
second 
  for the WebService to be ready after the load event. I just put 
 the 
  whole process

RE: [flexcoders] Help regarding WebServices (FLEX) in Actionscript

2006-08-13 Thread Franck de Bruijn












Hi Samuel,



A few things:


 Are
 you sure that you host your Flex application also at the www.ifeel3.com site? This is a necessity
 for a Flex application to communicate with a webservice, due to Flashs
 security model. (unless there is somewhere a crossdomain.xml file with the
 correct content ... check the documentation)
 Your
 code might work, but not necessarily so. The loadWSDL() operation is
 asynchronous, but takes quite some time to complete. Only after the
 loadWSDL() has completed (and then some milliseconds more ... see some
 recent threads in this mailing list) you can fire your operation. To
 accomplish this you have to register for the LoadEvent.LOAD event
 I
 dont know where all this AsyncToken stuff comes from, but
 invocation of webservices can be done much simpler. Just try:
 tsWS.createUser(sessionId, userName, dob).
 Expect
 some difficulties with Flex and the support of DOC/Literal webservices; I
 see that you are probably using .Net and DOC/Literal, and there are some
 issues with it. Also check the mailing list for this.




HTH,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Samuel Colak
Sent: Sunday, August 13, 2006 1:29
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Help
regarding WebServices (FLEX) in Actionscript











var tsWS:WebService = new WebService();
tsWS.wsdl = http://www.ifeel3.com/webservices/service.asmx?WSDL;

tsWS.loadWSDL();

var op:AbstractOperation = tsWS[createUser];
tsWS.addEventListener(result, doResults);
tsWS.addEventListener(fault, doFailed);
var token:AsyncToken = op.send();
token.responder = new Responder(resultOut, null);

-

All,

i am tring to access some webservices i have written in dotNet from Flex. If
anyone can point 
out where i am going wrong, please send me an email to [EMAIL PROTECTED]at-home.com.

The WSDL is publically visible - the only part missing are the eventlistening
functions. 

Many thanks,
Samuel






__._,_.___





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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Re: Best way to reference items in a parent MXML component?

2006-08-13 Thread Franck de Bruijn












I was wondering about this after I sent my
reply ... What if you need a return value?



I think there are basically 3 ways to go:


 The
 circular dependency way: define an instance of your (custom)
 view stack in your child, with a setter. After you loaded the child into
 the view stack, also call the setter method with the ViewStack in it:
 easiest solution, but if its nice ... 
 The
 interface way: define an interface where you put the methods
 that you need in your children. Let the ViewStack implement this
 interface. Define an instance of this interface in your child, with a
 setter. Call the setter with the ViewStack as argument later.
 Use
 a utility action script. This might be the best solution for
 what you mention below: formatting dates. Probably you will want to have
 your dates formatted the same way throughout your application; formatting
 is most likely also a stateless operation, at least not
 something ViewStack specific, so you could perfectly place it behind some static
 operation.




I am using the event way quite
a lot myself, and Im happy with it. But, indeed, you can only use it for
notification cases only; where you need a return value, this
would not apply.



HTH,
Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of ben.clinkinbeard
Sent: Sunday, August 13, 2006
12:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Best way
to reference items in a parent MXML component?











How would a child call a function in the parent
though? Events don't
seem (semantically) like the right thing because I basically just want
to use a utility function defined in the parent. Like I have a
function that I am using to format the dataTips of my charts in the
child components, but dispatching an event every time I roll over a
chart item seems a bit tedious and extreme.

Is there a better way or do I just need to get used to using events? I
come from a Flash background and have not used events very much.

Thanks,
Ben

--- In [EMAIL PROTECTED]ups.com,
Sergey Kovalyov
skovalyov.flexcode[EMAIL PROTECTED] wrote:

 Events must be used here. Your child elements should dispatch custom
 events and container that holds them should listen to that events.
 Event listener will handle the child via target property of event
 object.
 
 On 8/12/06, ben.clinkinbeard ben.clinkinbeard@... wrote:
  I have a ViewStack whose child elements each contain a graph. I would
  like to define some things in the file that holds the ViewStack so
  that all of the child charts can use them, but am not sure of the
best
  way to reference and call these things. Ideally I would like to
  somehow pass in a reference to the containing object so that I don't
  have to pass several items into each child, but have yet to figure
out
  a way to do that. I know there has to be a better way than what I
have
  now:







__._,_.___





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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] loading xml

2006-08-13 Thread Franck de Bruijn












I use a function like this:



private
function loadXml(aXmlFileName:String, aResultCallBack:Function):void

{

 var
xmlLoader:HTTPService;

 

 xmlLoader
= new HTTPService();

 xmlLoader.resultFormat
= e4x;

 xmlLoader.url
= "">

 xmlLoader.addEventListener(fault,
Application.application.handleFault);

 xmlLoader.addEventListener(result,
aResultCallBack);

 xmlLoader.send();

}



The URL aXmlFileName follows
the format config/MasterData.xml for example, where config is a
directory in the folder where the Flex application has been downloaded from.



In your callback function, you can deal
with the XML as follows:



private
function handleMasterDataXmlLoaded(aEvent:ResultEvent):void

{


var masterDataXml:XML;

 masterDataXml
= aEvent.result as XML;

}



HTH,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of aaron smith
Sent: Sunday, August 13, 2006 2:45
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] loading xml











how do I load local XML? 

I was doing this:

private function loadXML():void
  {
   myXML = new XML();
   myXMLURL = new
URLRequest(XML_URL);
   myLoader = new
URLLoader( menu.xml);
   myLoader.addEventListener(complete,
xmlLoaded);
  }
  
  private function xmlLoaded():void
  {
   myXML = XML(myLoader.data);
   trace(Data loaded.);
  }



but it spits out errors. Is there security issues?

here are the errors..

SWF file file:///C|/Documents%20and%20Settings/aaronsh/Desktop/dev/flash/%5F%20AS3%20TESTING/3waylayout/classes/Main.swf
cannot access local resource file:///C|/Documents%20and%20Settings/aaronsh/Desktop/dev/flash/%5F%20AS3%20TESTING/3waylayout/classes/menu.xml
. Only local-with-filesystem and trusted local SWF files may access local
resources.

Do i need to do something different for local files? I would think it would be
the same as how you load from a URL... 

thanks.






__._,_.___





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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Best way to reference items in a parent MXML component?

2006-08-12 Thread Franck de Bruijn












Hi Ben,



I personally do not like circular
dependencies. In your case the ViewStack would know about its children and the
children also know about the ViewStack. If you later decide to hang your
children in a different container you will probably have to rewrite some code
in the children. Its a tight integration.



To communicate downwards
(from ViewStack to children) I use interfaces, which actually means that I can
call the methods of the children directly from the ViewStack.



To communicate upwards (from
the child to a container which could be the ViewStack) I use
event handling. So, the container registers himself as listener for a child
custom event; once the child encounters a situation where it wishes to
communicate with the container, it fires the event and the container catches
it.



HTH,

Franck











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard
Sent: Saturday, August 12, 2006
5:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Best way to
reference items in a parent MXML component?











I have a ViewStack whose child elements each contain a
graph. I would
like to define some things in the file that holds the ViewStack so
that all of the child charts can use them, but am not sure of the best
way to reference and call these things. Ideally I would like to
somehow pass in a reference to the containing object so that I don't
have to pass several items into each child, but have yet to figure out
a way to do that. I know there has to be a better way than what I have
now:

// App.mxml
mx:Script
![CDATA[
protected function woot():void
{
trace(called);
}
]]
/mx:Script
mx:ViewStack id=vs
one:OneChild f=woot /
two:TwoChild f=woot /
/mx:ViewStack

// OneChild.mxml
?xml version=1.0 encoding=utf-8?
mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml
mx:Script
![CDATA[
public var f:Function;
]]
/mx:Script
mx:Button label=One Child click=f.call(this);/
/mx:Canvas

Any help is greatly appreciated.

Thanks,
Ben






__._,_.___





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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Re: WSDLError:Element not resolvable = LoadEvent doesn't imply service ready

2006-08-09 Thread Franck de Bruijn












Hi Kaleb,



Cool! Great stuff.



My guess is that the delay is machine
dependent, but not necessarily network dependent. I do believe that the LOAD
event does indicate that the WSDL actually has loaded successfully. Flex will
not need any more access to the network in order to initialize the web service.



Anyway, its a little bit sloppy
that the LOAD event does not indicate that the webservice is actually ready for
use. I consider this a bug if you ask me. So, maybe this is something we can
put on the wish list???



Thanks,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of kaleb_pederson
Sent: Tuesday, August 08, 2006
7:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re:
WSDLError:Element not resolvable = LoadEvent doesn't imply service ready











Frank,

I did a bit more research into this. I don't need nearly a second 
for the WebService to be ready after the load event. I just put the 
whole process in a loop to see what kind of delay I need to make it 
work on my box (with the service running on my box). Unfortunately, 
the delay is probably machine and network dependent and, therefore, 
would have to be different on other machines.

My results were:

res[delay in ms] = # successes (out of 100)
res[1] = 0
res[2] = 5 ...
res[10] = 13 ...
res[15] = 42 ...
res[20] = 53 ...
res[30] = 77 ...
res[38] = 100
(and the rest were 100 also)

Somebody else had what may have been a similar problem and he just 
re-fired the request 
(http://groups.yahoo.com/group/flexcoders/message/46401).
That's 
certainly not an elegant solution

So, I still don't have a solution, just a work-around. Does anybody 
else have any ideas or suggestions?

Thanks.

--Kaleb

--- In [EMAIL PROTECTED]ups.com,
Franck de Bruijn 
franck.de.bruijn@... wrote:

 Hi Kaleb,
 
 
 
 I always expected the web service to be ready after the load event
 completed. Probably it's a matter of milliseconds. I never 
encountered your
 problem before, since I don't automatically call web services 
after loading.
 So far, my webservices are only invoked behind a button.
 
 
 
 But sooner or later I probably will, since I will want to push 
master data
 from the server into the application (like a country table or 
something like
 that) directly after startup.
 
 
 
 So, this does not sound good ...
 
 
 
 I expect that your workaround is the only solution.
 
 
 
 Cheers,
 
 Franck
 
 
 
 
 
 
 
 _ 
 
 From: [EMAIL PROTECTED]ups.com

[mailto:[EMAIL PROTECTED]ups.com]
On
 Behalf Of kaleb_pederson
 Sent: Tuesday, August 08, 2006 1:38 AM
 To: [EMAIL PROTECTED]ups.com
 Subject: [flexcoders] WSDLError:Element not resolvable = 
LoadEvent doesn't
 imply service ready
 
 
 
 I have been struggling with the Element not resolvable error 
today 
 in some of my unit tests using FlexUnit. As far as I can tell, the 
 LoadEvent doesn't imply that the service is ready. If I put a 
timer 
 in and wait 1 second after the load event to make my service call, 
 everything works correctly. If I don't wait 1 second, however, 
then 
 I receive the Element not resolvable error. This appears to be
a 
 bug in the WebService class.
 
 Here's my sample code:
 
 import mx.rpc.soap.WebService;
 import flash.events.Event;
 import mx.rpc.events.ResultEvent;
 import mx.rpc.soap.LoadEvent;
 import flash.utils.Timer;
 import flash.events.TimerEvent;
 
 public class SoapDemoTest {
 
 public function testListVocabularies():void {
 trace('testListVocabularies');
 ws = new mx.rpc.soap.WebService();
 ws.addEventListener(LoadEvent.LOAD, onLoadCompleted);
 ws.loadWSDL(http://192.168. 
http://192.168.1.1:8080/myserv/myserv?wsdl
 1.1:8080/myserv/myserv?wsdl);
 }
 
 private function onLoadCompleted(evt:LoadEvent):void {
 trace('onLoadCompleted');
 
 // if I just call ws.listVocabularies, I receive the
 // Cannot Resolve Element error.
 ws.addEventListener(ResultEvent.RESULT,onResultReceived);
 ws.listVocabularies(5,true);
 
 /*
 // if I use this timer instead of the above, everything works
 var timer:Timer = new Timer(1000, 1);
 timer.addEventListener(
 TimerEvent.TIMER_COMPLETE,
 onTimerComplete
 );
 timer.start();
 */
 }
 
 private function onTimerComplete(evt:TimerEvent):void {
 trace(onTimerComplete);
 ws.addEventListener(ResultEvent.RESULT,onResultReceived);
 ws.listVocabularies(5,true);
 } 
 
 private function onResultReceived(evt:ResultEvent):void {
 trace(onResultReceived);
 trace(result:  + evt.result.toString());
 }
 
 }
 
 To test, simply fire testListVocabularies() in a CreationComplete 
 event handler.
 
 Can anyone else confirm this? By the messages, it sounds like the 
 exact same thing that a number of people are running into.
 
 Thanks for the help.
 
 --Kaleb







__._,_.___





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








   






  
  
SPONSORED LINKS

RE: [flexcoders] Re: Clarification needed on how WSDL affects conversion of AS objects to SOAP

2006-08-09 Thread Franck de Bruijn












Hi Ben,



Lets try not to be too pessimistic,
although you might be right that Adobes focus is more on the FDS part
than the webservices part. It must be a hell of a complicated module and
indeed, more money to be gained.



I have quite some experience now with
webservices, and they are extremely difficult to work with. And I dont
believe that the first release of a product can be error free. So far, I am
quite impressed with the support of Flex for webservices, but there will be
bugs. Its up to us to signal them.



I agree with you though that webservices
is actually the only interesting way of communication with a back-end. For the
near future, I dont expect to use any of the FDS features for the
applications that I wish to build (and that is for large corporations that
could afford the investment of an FDS module). Although webservices are a
pain-in-the-neck, they are the only hope for a full heterogeneous world of
clients and servers.



How are you exposing your webservice? Doc/Literal
or RPC/Encoded?



Cheers,

Franck

















From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of ben.clinkinbeard
Sent: Tuesday, August 08, 2006
8:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re:
Clarification needed on how WSDL affects conversion of AS objects to SOAP











Hi Franck,

I am pretty sure this is all related to types and the fact that Flex
will serialize primitive types differently than complex ones. The C#
code that creates the WS looks like this for the correctly functioning
elements:

[XmlArray(ContainersToRetrieve)]
[XmlArrayItem(ContainerType, typeof(ContainerType))]
ContainerType[] containersToRetrieve,

and like this for the incorrect ones:

[XmlArray(SelectedPlans)]
[XmlArrayItem(PlanNumber)]
string[] SelectedPlans

I think the only way to fix this would be to have SelectedPlans be an
array of complex objects rather than an array of strings.
Unfortunately, I don't believe this is an option as there is other
code that relies on this WS.

Sigh. I really wish there was more focus on, documentation of and
support for web services in Flex. The apparent concentration on FDS
seems misguided to me as I don't see is as being a viable option for
nearly as many organizations as web services are. I suppose I
understand that FDS deployments are where the real money would be for
Adobe, but it rings of the unrealistic and arguably unsuccessful model
upon which Flex 1 and 1.5 were based on.

Ben

--- In [EMAIL PROTECTED]ups.com,
Franck de Bruijn
franck.de.bruijn@... wrote:

 Hi Ben,
 
 
 
 I'm not sure if I'm following you, but I'll try :).
 
 
 
 I don't have answers, just questions. Let me put them to you:
 
 * Could it maybe be the type=s:string part? Is 's' pointing to
the
 right xsd namespace?
 * I'm curious what is exactly making the 'ContainerType' element in
 your SOAP-message. Is it the name attribute or the type attribute?
If it is
 the type attribute, then for sure in the PlanNumber element it'll
not work
 ...
 * Could the nesting be a problem? What I see from your code example,
 is that the PlanNumber elements are one level deeper than the
ContainerType
 elements. Maybe it's an idea to test a webservice operation that takes
 straight PlanNumber elements?
 
 
 
 Good luck!
 
 Franck
 
 
 
 _ 
 
 From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On
 Behalf Of ben.clinkinbeard
 Sent: Tuesday, August 08, 2006 7:29 PM
 To: [EMAIL PROTECTED]ups.com
 Subject: [flexcoders] Re: Clarification needed on how WSDL affects
 conversion of AS objects to SOAP
 
 
 
 I meant to hit preview... here is the rest of my post.
 
 The pieces of the WSDL that correspond are:
 
 s:element minOccurs=0 maxOccurs=unbounded
name=ContainerType
 type=tns:ContainerType/ (works correctly)
 
 and 
 
 s:element minOccurs=0 maxOccurs=unbounded
name=PlanNumber
 nillable=true type=s:string/ (array is
disregarded)
 
 Is nillable=true causing a problem here? What changes need to
be
 made to make Flex treat arrays just like objects, like it does in the
 first operation?
 
 Thanks,
 Ben
 
 --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
ups.com,
 ben.clinkinbeard
 ben.clinkinbeard@ wrote:
 
  In one part of my app, I am creating my Operation.arguments object
  like this:
  
  args.ContainersToRetrieve = new Array();
  args.ContainersToRetrieve.push(Client); 
  args.ContainersToRetrieve.push(IndustryTrends);
  
  which, as expected, results in a SOAP call like this:
  
  ContainersToRetrieve
  ContainerTypeClient/ContainerType
  ContainerTypeIndustryTrends/ContainerType
  
  In a different spot, I am constructing a call in the same manner:
  args.RPRSelections = new Object();
  args.RPRSelections.SelectedPlans = new Array();
  for(var i:int = 0; i  model.arr_selectedPlans.length; i++)
  {
  args.RPRSelections.SelectedPlans.push(model.arr_selectedPlans[i]);
  }
  
  but that produces the following output, seemingly ignoring the
  SelectedPlans

RE: [flexcoders] WSDLError:Element not resolvable = LoadEvent doesn't imply service ready

2006-08-08 Thread Franck de Bruijn












Hi Kaleb,



I always expected the web service to be
ready after the load event completed. Probably its a matter of
milliseconds. I never encountered your problem before, since I dont
automatically call web services after loading. So far, my webservices are only
invoked behind a button.



But sooner or later I probably will, since
I will want to push master data from the server into the application (like a
country table or something like that) directly after startup.



So, this does not sound good ...



I expect that your workaround is the only
solution.



Cheers,

Franck















From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of kaleb_pederson
Sent: Tuesday, August 08, 2006
1:38 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders]
WSDLError:Element not resolvable = LoadEvent doesn't imply service ready











I have been struggling with the Element not
resolvable error today 
in some of my unit tests using FlexUnit. As far as I can tell, the 
LoadEvent doesn't imply that the service is ready. If I put a timer 
in and wait 1 second after the load event to make my service call, 
everything works correctly. If I don't wait 1 second, however, then 
I receive the Element not resolvable error. This appears to be a 
bug in the WebService class.

Here's my sample code:

import mx.rpc.soap.WebService;
import flash.events.Event;
import mx.rpc.events.ResultEvent;
import mx.rpc.soap.LoadEvent;
import flash.utils.Timer;
import flash.events.TimerEvent;

public class SoapDemoTest {

public function testListVocabularies():void {
trace('testListVocabularies');
ws = new mx.rpc.soap.WebService();
ws.addEventListener(LoadEvent.LOAD, onLoadCompleted);
ws.loadWSDL(http://192.168.1.1:8080/myserv/myserv?wsdl);
}

private function onLoadCompleted(evt:LoadEvent):void {
trace('onLoadCompleted');

// if I just call ws.listVocabularies, I receive the
// Cannot Resolve Element error.
ws.addEventListener(ResultEvent.RESULT,onResultReceived);
ws.listVocabularies(5,true);

/*
// if I use this timer instead of the above, everything works
var timer:Timer = new Timer(1000, 1);
timer.addEventListener(
TimerEvent.TIMER_COMPLETE,
onTimerComplete
);
timer.start();
*/
}

private function onTimerComplete(evt:TimerEvent):void {
trace(onTimerComplete);
ws.addEventListener(ResultEvent.RESULT,onResultReceived);
ws.listVocabularies(5,true);
} 

private function onResultReceived(evt:ResultEvent):void {
trace(onResultReceived);
trace(result:  + evt.result.toString());
}

}

To test, simply fire testListVocabularies() in a CreationComplete 
event handler.

Can anyone else confirm this? By the messages, it sounds like the 
exact same thing that a number of people are running into.

Thanks for the help.

--Kaleb






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Re: Clarification needed on how WSDL affects conversion of AS objects to SOAP

2006-08-08 Thread Franck de Bruijn












Hi Ben,



Im not sure if Im following
you, but Ill try :).



I dont have answers, just
questions. Let me put them to you:


 Could
 it maybe be the type=s:string part? Is s
 pointing to the right xsd namespace?
 Im
 curious what is exactly making the ContainerType element in
 your SOAP-message. Is it the name attribute or the type attribute? If it
 is the type attribute, then for sure in the PlanNumber element itll
 not work ...
 Could
 the nesting be a problem? What I see from your code example, is that the
 PlanNumber elements are one level deeper than the ContainerType elements. Maybe
 its an idea to test a webservice operation that takes straight
 PlanNumber elements?




Good luck!

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of ben.clinkinbeard
Sent: Tuesday, August 08, 2006
7:29 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re:
Clarification needed on how WSDL affects conversion of AS objects to SOAP











I meant to hit preview... here is the rest of my post.

The pieces of the WSDL that correspond are:

s:element minOccurs=0 maxOccurs=unbounded
name=ContainerType
type=tns:ContainerType/ (works correctly)

and 

s:element minOccurs=0 maxOccurs=unbounded
name=PlanNumber
nillable=true type=s:string/ (array is
disregarded)

Is nillable=true causing a problem here? What changes need to be
made to make Flex treat arrays just like objects, like it does in the
first operation?

Thanks,
Ben

--- In [EMAIL PROTECTED]ups.com,
ben.clinkinbeard
ben.clinkinbeard@... wrote:

 In one part of my app, I am creating my Operation.arguments object
 like this:
 
 args.ContainersToRetrieve = new Array();
 args.ContainersToRetrieve.push(Client); 
 args.ContainersToRetrieve.push(IndustryTrends);
 
 which, as expected, results in a SOAP call like this:
 
 ContainersToRetrieve
 ContainerTypeClient/ContainerType
 ContainerTypeIndustryTrends/ContainerType
 
 In a different spot, I am constructing a call in the same manner:
 args.RPRSelections = new Object();
 args.RPRSelections.SelectedPlans = new Array();
 for(var i:int = 0; i  model.arr_selectedPlans.length; i++)
 {
 args.RPRSelections.SelectedPlans.push(model.arr_selectedPlans[i]);
 }
 
 but that produces the following output, seemingly ignoring the
 SelectedPlans array that was created.
 
 RPRSelections
 item78167/item
 item78173/item







__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Re: WSDLError:Element not resolvable

2006-08-07 Thread Franck de Bruijn












Hi,



I am not sure if my answer is really the
answer, since I personally dont use the Webservice tag, but the
webservice action script classes.



When a webservice is initialized, it will
load the wsdl from an URL. This can take some time and is an asynchronous
process. This means that the webservice loads the WSDL in the background. If it
is not finished loading/parsing the wsdl and you try to invoke an operation it
will return errors.



Try to wait a few seconds and invoke it
then, if the error still remains, then this is the reason. How to solve it? I
did it like this:

 

 secWsImpl
= new WebService();

 secWsImpl.addEventListener(LoadEvent.LOAD,
handleWsLoaded);

 secWsImpl.addEventListener(fault,
handleWsError);

 secWsImpl.loadWSDL(/FlexTestWebServices/wsdl/SecurityWebServiceRpcEnc8080.wsdl);



In the method handleWsLoaded
you can then invoke an operation if youd like, or enable a button or
something like that.



Cheers,

Frnack













From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Derek Adams
Sent: Sunday, August 06, 2006
11:56 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re:
WSDLError:Element not resolvable











Did you have any luck figuring this one out? I am
having the same 
problem. The first call to a particular operation always fails, then 
all calls after that work fine. Even weirder is the fact that a call 
to another operation on the same service is successful right before 
the other call fails.

--- In [EMAIL PROTECTED]ups.com,
flexava [EMAIL PROTECTED] wrote:

 I ran into a strange problem when I was trying to call a web
 service.Here's the source:
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
 layout=vertical
 mx:Script
 ![CDATA[
 import mx.rpc.events.FaultEvent;
 import mx.controls.Alert;
 import mx.rpc.events.ResultEvent;
 import 
com.adobe.cairngorm.control.CairngormEventDispatcher;
 import com.ceno.umc.control.LoginEvent;
 
 private function onResult(event : 
ResultEvent) : void
 {
 Alert.show(event.result.toString
(),result);
 }
 
 private function onFault(event : 
FaultEvent) : void
 {
 Alert.show
(event.fault.faultString,faultString);
 }
 ]]
 /mx:Script
 mx:WebService id=aService service=umc/umc/auth
 port=umc/umc/authHttpPort 
 wsdl=http://localhost:8008/ws/services/umc/umc/auth?
wsdl
 showBusyCursor=true
 result=onResult(event) fault=onFault(event)

 mx:operation name=login resultFormat=e4x
 mx:request
 req
 subject
 admin
 /subject
 username
 admin
 /username
 password
 admin
 /password
 /req
 /mx:request
 /mx:operation 
 /mx:WebService 
 mx:Button label=Login click=aService.login.send()/
 /mx:Application
 when I clicked the login button it first showed me an error dialog 
saying:
 [WSDLError faultString=Element 
http://cmd.umc.ceno.com:loginResponse
 not resolvable faultCode=WSDL.BadElement
faultDetail=null]
 at
 
mx.rpc.soap::WSDLParser/http://www.adobe.com/2006/flex/mx/internal::p
arseMessage()
 at mx.rpc.soap::WSDLOperation/parseMessages()
 at
 
mx.rpc.soap::Operation/http://www.adobe.com/2006/flex/mx/internal::in
vokePendingCall()
 at mx.rpc.soap::Operation/send()
 at Function/http://adobe.com/AS3/2006/builtin::apply()
 at mx.rpc.soap.mxml::Operation/send()
 at WSTest/___Button1_click()
 then I clicked the login button again,eveything worked.Any idea? 
Thanks.







__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Web Service arguments in AS - how do you create repeated children?

2006-08-07 Thread Franck de Bruijn












Hi Ben,



I do the following to achieve this.



Lets say I have a Customer who can
have multiple Address objects. Compare Customer with your SelectedPlans and
Address with PlanNumber.



My Customer AS class looks like this
(boring parts omitted)



package
model {



 your
imports ...

 

 public
class Customer 

 {

 your
other attributes

 public var addresses:Array
= new Array();



 and the rest ...



The Address AS class is nothing more than
this:



package
model {



 your
imports ...

 

 public
class Address {

 public
var street:String;

 public var
houseNumber:int = 0;



 ... you get the idea



To store multiple Address objects into the
Customer object, you just fill the array addresses with Address
objects.



You can now throw the entire Customer
object as single argument into your webservice call. Flex will unmarshal the
array correctly and generate the XML as you describe below.



Hope this helps,

Cheers,

Franck













From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of ben.clinkinbeard
Sent: Monday, August 07, 2006 3:11
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Web Service
arguments in AS - how do you create repeated children?











Hello, I am sending arguments to my SOAP method, but
can't figure out
how to do repeated children in AS. For example, part of my call looks
like this in XML:

SelectedPlans
PlanNumber12345/PlanNumber
PlanNumber56789/PlanNumber
/SelectedPlans

I cannot figure out how to create this structure in AS. It seems that
I have to use an Object (args.SelectedPlans = new Object();) in order
for the name to be preserved during the conversion to XML, but objects
obviously can't have 2 properties with the same name.

Does anyone know how to do this?

Thanks,
Ben






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Java developers: How do you organize your projects?

2006-08-07 Thread Franck de Bruijn






















Hi Dave,



I use Eclipse WTP with the Flex plugin.



I develop my Flex application in a single Flex
project.



I then have a dummy Eclipse WTP Dynamic
project, which is nothing more than an empty shell. I have than an ant script
copying over all the binary files from the Flex project to the Dynamic project.



After that I publish the dynamic web project
to Tomcat.



Its a little bit manual and sounds
maybe tedious, but once you get the hang of it and define some shortcuts, it
goes pretty slick and quick. You can also define a run-command to run your
application remotely from within Eclipse.



Cheers,

Franck







Van: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] Namens Dave Bobby
Verzonden: zondag 6 augustus 2006
23:41
Aan: [EMAIL PROTECTED]ups.com
Onderwerp: [flexcoders] Java
developers: How do you organize your projects?



Currently, I have a client-side flex running in Flex
Builder stand-
alone and a java server-side which is running in Eclipse, eventually 
deployed to tomcat.

Now when I run from my Flex Builder, I can access my tomcat by just 
saying http://localhost:8080/project/login.html?user=apass=b

.. but this is not extensible, so the question is how do you 
physically lay out your projects? 

.. do you have ant builds that create a war with all the files copied 
over?

.. do you separate your flex builder from eclipse or run them together 
as flex (plugin) and java (in eclipse) at one time

.. if you develop all in one project (java and flex) how do you 
separate these concerns, for example, flex requires that application 
mxml be in the root of the project and say cairngorm files would be 
in root/com/... 

I need to set this up fast before other developers join the project, 
appreciate your inputs.

Thanks.

Dave.












__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Re: Web Service arguments in AS - how do you create repeated children?

2006-08-07 Thread Franck de Bruijn












Hi Ben,



I think I am starting to understand what
you mean. I dont have the environment up-and-running to really test ...



In my case, the XML will probably be
something like:

customer

 addresses

 street1/street

 ...

 /addresses

 addresses

 street2/street

 ...

 /addresses

/customer



Im sure that Flex is doing the
right thing there, since I am basing some of my webservices on this kind of
structures and all is working fine.



In your case you have a list of simple
strings/numbers, while my list is of objects (having their own attributes) ...



Would it be acceptable for you if your XML
would look like this?



SelectedPlans
 PlanNumber

 Value12345/Value

 /PlanNumber
 PlanNumber

 Value56789/Value

 /PlanNumber

/SelectedPlans



Then, you could make a PlanNumber action
script object with a property Value in it. The SelectedPlans object would have
an array having PlanNumber objects ...



Cheers,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of ben.clinkinbeard
Sent: Monday, August 07, 2006 8:30
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Web
Service arguments in AS - how do you create repeated children?











Hi Franck,

Thanks for the response. I am still having the same problem though,
which is that I end up with a generic 'item' tag or property being
created somewhere along the way. I am beginning to think that this
structure cannot be created in AS as it seems like I would need an
object with 2 properties named PlanNumber.

I tried using an object with a PlanNumber property of type Array, and
then stuffing the values into that, but that turns into

SelectedPlans xmlns=
item xmlns=78167/item
item xmlns=78173/item
/SelectedPlans

Is there a way to create a default property of an object or something?
Does valueOf() still exist?

Ben

--- In [EMAIL PROTECTED]ups.com,
Franck de Bruijn
franck.de.bruijn@... wrote:

 Hi Ben,
 
 
 
 I do the following to achieve this.
 
 
 
 Let's say I have a Customer who can have multiple Address objects.
Compare
 Customer with your SelectedPlans and Address with PlanNumber.
 
 
 
 My Customer AS class looks like this (boring parts omitted)
 
 
 
 package model {
 
 
 
 your imports ...
 
 
 
 public class Customer 
 
 {
 
 your other attributes
 
 public var addresses:Array = new Array();
 
 
 
 and the rest ...
 
 
 
 The Address AS class is nothing more than this:
 
 
 
 package model {
 
 
 
 your imports ...
 
 
 
 public class Address {
 
 public var street:String;
 
 public var houseNumber:int = 0;
 
 
 
 ... you get the idea
 
 
 
 To store multiple Address objects into the Customer object, you just
fill
 the array 'addresses' with Address objects.
 
 
 
 You can now throw the entire Customer object as single argument into
your
 webservice call. Flex will unmarshal the array correctly and
generate the
 XML as you describe below.
 
 
 
 Hope this helps,
 
 Cheers,
 
 Franck
 
 
 
 
 
 _ 
 
 From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On
 Behalf Of ben.clinkinbeard
 Sent: Monday, August 07, 2006 3:11 PM
 To: [EMAIL PROTECTED]ups.com
 Subject: [flexcoders] Web Service arguments in AS - how do you create
 repeated children?
 
 
 
 Hello, I am sending arguments to my SOAP method, but can't figure out
 how to do repeated children in AS. For example, part of my call looks
 like this in XML:
 
 SelectedPlans
 PlanNumber12345/PlanNumber
 PlanNumber56789/PlanNumber
 /SelectedPlans
 
 I cannot figure out how to create this structure in AS. It seems that
 I have to use an Object (args.SelectedPlans = new Object();) in order
 for the name to be preserved during the conversion to XML, but objects
 obviously can't have 2 properties with the same name.
 
 Does anyone know how to do this?
 
 Thanks,
 Ben







__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Re: Problems making SOAP calls via WSDL file

2006-08-02 Thread Franck de Bruijn












Hi Charles,



Yes, thats right.



If you want to access a web service on a
different machine than the machine youre hosting your application you
have to develop some sort of a proxy on your own machine. Flex can then connect
to this proxy (no security issues there), and the proxy can then connect to the
desired web service. The examples given in this thread are (I think) referring
to the Flex Data Services component, but I would use my own proxy web service.



Anyway, you do need some active component
on the server you are hosting your service. Thats the security model of
Flash/Flex. Otherwise, in principle, you could spam the entire world with your
Flex application... :).



Cheers,

Franck



















From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Charles
Sent: Tuesday, August 01, 2006
10:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Problems
making SOAP calls via WSDL file











Oh, so what you're saying is that even though I am
running locally,
since the SOAP call invokes a remote operation not hosted on my
machine, it should fail anyways? So I can't make a successful API
call with Flex, at least not until I get my IP put on a crossdomain on
the Google server? Is that right?

Charles

--- In [EMAIL PROTECTED]ups.com,
Franck de Bruijn
franck.de.bruijn@... wrote:

 I checked the WSDL with SOAPUI and the WSDL looks fine.
 
 
 
 I do see however that the WSDL is of the type doc/literal. I have
had some
 serious issues with that connecting with Flex to such a web service
 back-end. I have not verified if the final release of Flex 2 has
resolved
 all these issues. I never encountered issues like Charles described,
so this
 statement probably does not apply.
 
 
 
 With respect to 'running the files locally' the following: if you
are using
 the WSDL that you pointed out to us, it contains the following section:
 
 
 
 wsdl:service name=ReportService
 
 wsdl:port binding=api:ReportServiceSoapBinding
 name=ReportService
 
 wsdlsoap:address
 location=https://adwords.google.com/api/adwords/v4/ReportService/
 
 /wsdl:port
 
 /wsdl:service
 
 You might actually load the WSDL successfully from your local
machine (if
 you include it with your app-distribution), but once you try to
invoke an
 operation (as you describe in your first mail) it should fail, since
the web
 service itself is hosted on a different machine (I presume that
 'adwords.google.com' is not your machine). 
 
 
 
 Even here some easy-to-miss subtleties can arise: if you load your
flex app
 from e.g. 'localhost' and the WSDL points to your local machine but
with a
 different name (like 127.0.0.1), it will still fail. At least,
that's what I
 experienced from testing.
 
 
 
 Cheers,
 
 Franck
 
 
 
 _ 
 
 From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On
 Behalf Of Dave Wolf
 Sent: Tuesday, August 01, 2006 6:21 PM
 To: [EMAIL PROTECTED]ups.com
 Subject: [flexcoders] Re: Problems making SOAP calls via WSDL file
 
 
 
 Do you have any kind of proxy tool, like the SOAPMonitor or Tcptunnel
 where you can see the response coming back?
 
 -- 
 Dave Wolf
 Cynergy Systems, Inc.
 Adobe Flex Alliance
Partner
 http://www.cynergys http://www.cynergysystems.com
ystems.com
 http://www.cynergys http://www.cynergysystems.com/blogs
ystems.com/blogs
 
 Email: [EMAIL PROTECTED] mailto:dave.wolf%40cynergysystems.com
stems.com
 Office: 866-CYNERGY
 
 --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
ups.com,
 Charles charles.bihis@ wrote:
 
  Hi Frank,
  
  Yes, you're right. I'm familiar with the need for the crossdomain.xml
  file on server that I am making the calls to, but I don't think it's
  necessary since I am running the files locally. As far as I know, if
  the machine that I am running the files from, the client, is the same
  as the machine hosting the files, then it's fine. Otherwise, if I
  post these files to some web server and run them remotely, then my
  client machine is different from the machine hosting the files, and
in
  that case I need the crossdomain.
  
  Either way, I am making a successful connection to the WSDL, but my
  problem isn't actually with connecting. It's that when I make the RPC
  through the WSDL, I get an error returned: The request XML was
  invalid. So that is currently where I'm hung up. Thanks for the
  reply though.
  
  
  Charles
  
  --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
ups.com,
 Franck de Bruijn
  franck.de.bruijn@ wrote:
  
   Hi Charles,
   
   
   
   Due to the Flash security model, you cannot access a URL that is
not
  hosted
   on the same server your Flex application is hosted, unless a
  crossdomain.xml
   is present (which does not seem to be, I checked).
   
   
   
   If you want to access a webservice on a different host, you have
to
  provide
   a proxy on your own server.
   
   
   
   See also the documentation on: Getting Started with Flex 2.0

  Tutorials 
   Data: Use

RE: [flexcoders] Problem connecting to the Webservice

2006-08-02 Thread Franck de Bruijn












Hi Kiran,



Are you sure that the URL http://misdevservices/wsCommon/Options.asmx?wsdl
is actually a valid URL? If you are running the web services on your local
machine, youd probably have something like localhost in the URL.



How did you actually run your application?
Through FlexBuilder? Or did you deploy your .swf file (and all files related to
it) together with your webservice? I always do the latter in order to get it
working.



Cheers,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Kiran
Sent: Wednesday, August 02, 2006
5:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problem
connecting to the Webservice











Hi,

I have
never used Flash or Flex in my life before and am a .NET developer. Stumbled
across Flexbuilder yesterday and was really impressed by the RUI features it
offers so I decided to download a trial version and play with it. 

This is
what I did :


 Created a simple .NET Webservice with a
 method called 'SayHello'
 which returns a string message 'Hello World' (duh..very ingenious of
 me
 ) and does not take any parameters. The service resided on a virtual
 windows server machine(called 'misdevservices')
 Created an mxml file called 'Lesson.mxml'. I
 am pasting the code below :




?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
layout=absolute 

creationComplete=kino.SayHello.send()

mx:WebService id=kino

wsdl=http://misdevservices/wsCommon/Options.asmx?wsdl

useProxy=false 

mx:operation
name=SayHello/mx:operation

/mx:WebService

mx:Panel x=21 y=10
width=350 height=400 layout=absolute
title=Hello World Test

mx:Text id=txtHello text={kino.SayHello.result}
x=27 y=28/

/mx:Panel

mx:TraceTarget level=0

/mx:TraceTarget

/mx:Application



When i try to run this , i dont get any result back. I have
even placed a 'crossdomain.xml' file in the root folder of the virtual
server where the webservice is, but still the same problem. I cannot do
anything else if I dont get this sorted Been
trying since yesterday but no luck! Would greatly appreciate if anyone could
help me in this matter!!



Thanks in advance.

Kiran






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Problems making SOAP calls via WSDL file

2006-08-01 Thread Franck de Bruijn












Hi Charles,



Due to the Flash security model, you
cannot access a URL that is not hosted on the same server your Flex application
is hosted, unless a crossdomain.xml is present (which does not seem to be, I
checked).



If you want to access a webservice on a
different host, you have to provide a proxy on your own server.



See also the documentation on: Getting
Started with Flex 2.0  Tutorials  Data: Use Web Services  Review
your access to remote data sources.



Cheers,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Charles
Sent: Monday, July 31, 2006 5:40
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problems
making SOAP calls via WSDL file











Hi
everyone,

I'm trying to make a SOAP call using this WSDL file: https://adwords.google.com/api/adwords/v4/ReportService?WSDL

Through the WSDL, I'm trying to do a getAllJobs function calll,
which takes no arguments. My code goes something like this...

 
 ... 

   private function
Init():void
   {
var
qname:QName = new QName(https://adwords.google.com/api/adwords/v4);

   
header_email = new SOAPHeader(qname, {String:email,
String:myemailhere});
   
header_password = new SOAPHeader(qname, {String:password,
String:mypasswordhere});
   
header_useragent = new SOAPHeader(qname, {String:useragent,
String:Test call from with AS3});
   
header_token = new SOAPHeader(qname, {String:token,
String:mytokenhere});

   
api_call.addHeader(header_email);
   
api_call.addHeader(header_password);
   
api_call.addHeader(header_useragent);
   
api_call.addHeader(header_token);
   } // AddHeaders

   mx:WebService
id=api_call wsdl=https://adwords.google.com/api/adwords/v4/ReportService?WSDL
service=ReportService port=ReportService
  mx:operation
name=getAllJobs result=ResultHandler(event)
fault=FaultHandler(event)
   mx:request/
  /mx:operation
 /mx:WebService

   ...

I can connect to the webservice, but only to get an error returned; The
request XML was invalid

If anyone has any insight as to what I'm doing wrong, please let me know.

Thanks in advance!


Charles






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Re: Problems making SOAP calls via WSDL file

2006-08-01 Thread Franck de Bruijn












I checked the WSDL with SOAPUI and the
WSDL looks fine.



I do see however that the WSDL is of the
type doc/literal. I have had some serious issues with that connecting with Flex
to such a web service back-end. I have not verified if the final release of
Flex 2 has resolved all these issues. I never encountered issues like Charles
described, so this statement probably does not apply.



With respect to running the files
locally the following: if you are using the WSDL that you pointed out to
us, it contains the following section:



 wsdl:service
name=ReportService

 wsdl:port
binding=api:ReportServiceSoapBinding
name=ReportService

 wsdlsoap:address
location=https://adwords.google.com/api/adwords/v4/ReportService/

 /wsdl:port

 /wsdl:service



You might actually load the WSDL successfully
from your local machine (if you include it with your app-distribution), but
once you try to invoke an operation (as you describe in your first mail) it
should fail, since the web service itself is hosted on a different machine (I
presume that adwords.google.com is not your machine). 



Even here some easy-to-miss subtleties can
arise: if you load your flex app from e.g. localhost and the WSDL
points to your local machine but with a different name (like 127.0.0.1), it
will still fail. At least, thats what I experienced from testing.



Cheers,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Dave Wolf
Sent: Tuesday, August 01, 2006
6:21 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Problems
making SOAP calls via WSDL file











Do you have any kind of proxy tool, like the
SOAPMonitor or Tcptunnel
where you can see the response coming back?

-- 
Dave Wolf
Cynergy Systems, Inc.
Adobe Flex Alliance
Partner
http://www.cynergysystems.com
http://www.cynergysystems.com/blogs

Email: [EMAIL PROTECTED]stems.com
Office: 866-CYNERGY

--- In [EMAIL PROTECTED]ups.com,
Charles charles.bihis@... wrote:

 Hi Frank,
 
 Yes, you're right. I'm familiar with the need for the crossdomain.xml
 file on server that I am making the calls to, but I don't think it's
 necessary since I am running the files locally. As far as I know, if
 the machine that I am running the files from, the client, is the same
 as the machine hosting the files, then it's fine. Otherwise, if I
 post these files to some web server and run them remotely, then my
 client machine is different from the machine hosting the files, and in
 that case I need the crossdomain.
 
 Either way, I am making a successful connection to the WSDL, but my
 problem isn't actually with connecting. It's that when I make the RPC
 through the WSDL, I get an error returned: The request XML was
 invalid. So that is currently where I'm hung up. Thanks for the
 reply though.
 
 
 Charles
 
 --- In [EMAIL PROTECTED]ups.com,
Franck de Bruijn
 franck.de.bruijn@ wrote:
 
  Hi Charles,
  
  
  
  Due to the Flash security model, you cannot access a URL that is not
 hosted
  on the same server your Flex application is hosted, unless a
 crossdomain.xml
  is present (which does not seem to be, I checked).
  
  
  
  If you want to access a webservice on a different host, you have to
 provide
  a proxy on your own server.
  
  
  
  See also the documentation on: Getting Started with Flex 2.0 
 Tutorials 
  Data: Use Web Services  Review your access to remote data
sources.
  
  
  
  Cheers,
  
  Franck
  
  
  
  _ 
  
  From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On
  Behalf Of Charles
  Sent: Monday, July 31, 2006 5:40 PM
  To: [EMAIL PROTECTED]ups.com
  Subject: [flexcoders] Problems making SOAP calls via WSDL file
  
  
  
  Hi everyone,
  
  I'm trying to make a SOAP call using this WSDL file:
  https://adwords.google.com/api/adwords/v4/ReportService?WSDL
  
  Through the WSDL, I'm trying to do a getAllJobs function
calll,
which
  takes no arguments. My code goes something like this...
  
  ... 
  
  private function Init():void
  {
  var qname:QName = new
  QName(https://adwords.google.com/api/adwords/v4);
  
  header_email = new SOAPHeader(qname, {String:email,
  String:myemailhere});
  header_password = new SOAPHeader(qname,
 {String:password,
  String:mypasswordhere});
  header_useragent = new SOAPHeader(qname,
  {String:useragent, String:Test call from with
AS3});
  header_token = new SOAPHeader(qname, {String:token,
  String:mytokenhere});
  
  api_call.addHeader(header_email);
  api_call.addHeader(header_password);
  api_call.addHeader(header_useragent);
  api_call.addHeader(header_token);
  } // AddHeaders
  
  mx:WebService id=api_call
  wsdl=https://adwords.google.com/api/adwords/v4/ReportService?WSDL
  service=ReportService port=ReportService
  mx:operation name=getAllJobs result=ResultHandler(event)
  fault=FaultHandler(event)
  mx:request/
  /mx:operation
  /mx:WebService
  
  ...
  
  I can connect to the webservice, but only to get an error
returned; The
  request XML

RE: [flexcoders] Re: Simple way to do Please wait... type window

2006-08-01 Thread Franck de Bruijn












Asynchronous event driven architecture are
a nice thing, however In a GUI you sometimes just *have* to wait before things come back, otherwise your system
becomes instable.



For example, lets say Im
doing an expensive search (takes a couple of seconds). The result needs to be
placed into a datagrid or something like that. If I can close the window in
which the datagrid is hosted within the waiting period, the
datagrid will be gone. Once the result of the search comes back it will not
find the datagrid anymore, and highly likely an error will be the result.



I used the TitleWindow approach myself,
but I did not like the blurring happening all the time. Is there
a way to switch the blurring off?



Cheers,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Paul Andrews
Sent: Tuesday, August 01, 2006
5:07 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re:
Simple way to do Please wait... type window











- Original Message - 
From: JesterXL [EMAIL PROTECTED]n.com
To: [EMAIL PROTECTED]ups.com
Sent: Tuesday, August 01, 2006 2:26 AM
Subject: Re: [flexcoders] Re: Simple way to do Please wait... type
window

 One way I did it was making a Singleton class that popups up a small
 TitleWindow. This TitleWindow has a ProgressBar in it. The ProgressBar's
 indeterminate is bound to the visibility (you don't want it playing while
 the window is invisible; takes up resources). You can then do:

 WaitWindow.showProgress(Loading...);

 Inside, it'll create a popup if none exists, and put the text in there.
 It's modal by default. You can then later go:

 WaitWindow.remove();

 And if one exists, it'll remove it. Subsequent calls to showProgress 
 merely
 update the text. You can use this for changed commands.

Are modal windows really a good way to go with this? It seems to me to be a 
step backward when you are stopping the user from doing anything whilst data 
is loading. What happens if the load is particularly slow, fails, or was 
accidentally initiated and the user changes their mind?

Seems to me that modal progress windows just go completely against the idea 
of an asynchronous event driven architecture.

Paul

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







 






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Re: WebService Call

2006-07-30 Thread Franck de Bruijn












You can also post the WSDL here (if it is not
to big), otherwise send it to me by mail: franck (dot) de (dot) bruijn (at) zonnet
(dot) nl and Ill have a look.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of richmcgillicuddy
Sent: Sunday, July 30, 2006 9:15
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re:
WebService Call











I'll try that and let you know what the results are.

Rich

--- In [EMAIL PROTECTED]ups.com,
Franck de Bruijn
franck.de.bruijn@... wrote:

 Have you tried to access the wsdl and call the webservice operation from
 another webservice client than Flex?
 
 
 
 The tool I always use is: http://www.soapui.org/jnlp/1.5/soapui.jnlp
(this
 is a webstart link; if you click it, and you have Java installed on your
 machine it should start automatically).
 
 
 
 Cheers,
 
 Franck
 
 
 
 _ 
 
 From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On
 Behalf Of richmcgillicuddy
 Sent: Friday, July 28, 2006 9:43 PM
 To: [EMAIL PROTECTED]ups.com
 Subject: [flexcoders] Re: WebService Call
 
 
 
 Yes,
 
 I see the definition but with most XML parse errors (not just flex),
 the error messages are difficult to track down. It is telling me that
 it cannot add the node . I'll get the exact error message and
post
 it later tonight. I'd prefer to use a WebService rather than an Service.
 
 Rich
 
 --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
ups.com,
 slangeberg slangeberg@ wrote:
 
  So when you point your browser to: http://localhost:
 http://localhost:9126/SOAP
9126/SOAP
  you are seeing the WSDL definition?
  
  Scott
  
  
  On 7/28/06, richmcgillicuddy rich@ wrote:
  
   Thanks for the pointers, they are really helpful. I have my own
app
   server and can tell that the flex application calls it, tries to
   retrieve the wsdl file and then in flex it tells me that there
is an
   XML parsing error in the wsdl file. It this point, I am leaning
   towards using simple XML since I can generate that if needed.
Other
   than download and testing SOAP wsdl validators and making sure
it is
   standard, i think the only other option is the straight XML.
  
   Rich
  
  
   --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
ups.com
 flexcoders%40yahoogroups.com,
   slangeberg slangeberg@ wrote:
   
Yeah,
   
Try something more like (I'm not sure what your 'FlexData'
 object was
supposed to refer to... ):
   
mx:..sometag >wsTest.getData()
   
mx:WebService
id=wsTest
wsdl=http://localhost:
http://localhost:9126/SOAP
9126/SOAP
fault={trace(-1);}
result={trace(1);}/
   
/mx:...sometag
   
   
On 7/26/06, richmcgillicuddy rich@ wrote:

 I have a simple web service calling a SOAP web service
on my
local
 machine. The call looks like:

 mx:WebService id=wsTest
 wsdl=http://localhost:
http://localhost:9126/SOAP
9126/SOAP
 load=wsTest.FlexData.getData()
 fault=trace(-1); /

 It seems to hang waiting for localhost and if I let it
wait long
 enough, it will give me the following error:

 ReferenceError: Error #1069: Property getData not
found on
 mx.rpc.soap.mxml.Operation and there is no
default value.
 at Step2/__wsTest_load()
 ...

 On the Web Server side, I am looking for client
connects from
 flash
 and do not seem to get even the client connect. Any
ideas?

 Is there anything that looks odd with the WebService
statement?

 Rich



   
   
   
--
   
: : ) Scott
   
  
   
  
  
  
  
  -- 
  
  : : ) Scott
 







__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Re: WebService Call

2006-07-29 Thread Franck de Bruijn












Have you tried to access the wsdl and call
the webservice operation from another webservice client than Flex?



The tool I always use is: http://www.soapui.org/jnlp/1.5/soapui.jnlp
(this is a webstart link; if you click it, and you have Java installed on your
machine it should start automatically).



Cheers,

Franck











From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of richmcgillicuddy
Sent: Friday, July 28, 2006 9:43
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re:
WebService Call











Yes,

I see the definition but with most XML parse errors (not just flex),
the error messages are difficult to track down. It is telling me that
it cannot add the node . I'll get the exact error message and post
it later tonight. I'd prefer to use a WebService rather than an Service.

Rich

--- In [EMAIL PROTECTED]ups.com,
slangeberg slangeberg@... wrote:

 So when you point your browser to: http://localhost:9126/SOAP
 you are seeing the WSDL definition?
 
 Scott
 
 
 On 7/28/06, richmcgillicuddy [EMAIL PROTECTED] wrote:
 
  Thanks for the pointers, they are really helpful. I have my own app
  server and can tell that the flex application calls it, tries to
  retrieve the wsdl file and then in flex it tells me that there is an
  XML parsing error in the wsdl file. It this point, I am leaning
  towards using simple XML since I can generate that if needed. Other
  than download and testing SOAP wsdl validators and making sure it is
  standard, i think the only other option is the straight XML.
 
  Rich
 
 
  --- In [EMAIL PROTECTED]ups.com
flexcoders%40yahoogroups.com,
  slangeberg slangeberg@ wrote:
  
   Yeah,
  
   Try something more like (I'm not sure what your 'FlexData'
object was
   supposed to refer to... ):
  
   mx:..sometag >wsTest.getData()
  
   mx:WebService
   id=wsTest
   wsdl=http://localhost:9126/SOAP
   fault={trace(-1);}
   result={trace(1);}/
  
   /mx:...sometag
  
  
   On 7/26/06, richmcgillicuddy rich@ wrote:
   
I have a simple web service calling a SOAP web service on
my local
machine. The call looks like:
   
mx:WebService id=wsTest
wsdl=http://localhost:9126/SOAP
load=wsTest.FlexData.getData()
fault=trace(-1); /
   
It seems to hang waiting for localhost and if I let it wait
long
enough, it will give me the following error:
   
ReferenceError: Error #1069: Property getData not found on
mx.rpc.soap.mxml.Operation and there is no default
value.
at Step2/__wsTest_load()
...
   
On the Web Server side, I am looking for client connects
from
flash
and do not seem to get even the client connect. Any ideas?
   
Is there anything that looks odd with the WebService
statement?
   
Rich
   
   
   
  
  
  
   --
  
   : : ) Scott
  
 
  
 
 
 
 
 -- 
 
 : : ) Scott







__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Re: WebService Call

2006-07-28 Thread Franck de Bruijn












The error you get means that the WSDL was
not loaded/parsed correctly.



Are you sure that http://localhost:9126/SOAP returns a
WSDL document?



And are you sure that you serve your application from localhost. I
mean, if you run the application locally through FlexBuilder for example,
highly likely this will not work. You first have to deploy your flex app on the
same host you want to run your webservice on.



Cheers,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of richmcgillicuddy
Sent: Friday, July 28, 2006 3:41
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re:
WebService Call











Thanks for the pointers, they are really helpful. I
have my own app
server and can tell that the flex application calls it, tries to
retrieve the wsdl file and then in flex it tells me that there is an
XML parsing error in the wsdl file. It this point, I am leaning
towards using simple XML since I can generate that if needed. Other
than download and testing SOAP wsdl validators and making sure it is
standard, i think the only other option is the straight XML.

Rich

--- In [EMAIL PROTECTED]ups.com,
slangeberg slangeberg@... wrote:

 Yeah,
 
 Try something more like (I'm not sure what your 'FlexData' object was
 supposed to refer to... ):
 
 mx:..sometag >wsTest.getData()
 
 mx:WebService
 id=wsTest
 wsdl=http://localhost:9126/SOAP
 fault={trace(-1);}
 result={trace(1);}/
 
 /mx:...sometag
 
 
 On 7/26/06, richmcgillicuddy [EMAIL PROTECTED] wrote:
 
  I have a simple web service calling a SOAP web service on my local
  machine. The call looks like:
 
  mx:WebService id=wsTest
  wsdl=http://localhost:9126/SOAP
  load=wsTest.FlexData.getData()
  fault=trace(-1); /
 
  It seems to hang waiting for localhost and if I let it wait long
  enough, it will give me the following error:
 
  ReferenceError: Error #1069: Property getData not found on
  mx.rpc.soap.mxml.Operation and there is no default value.
  at Step2/__wsTest_load()
  ...
 
  On the Web Server side, I am looking for client connects from flash
  and do not seem to get even the client connect. Any ideas?
 
  Is there anything that looks odd with the WebService statement?
 
  Rich
 
  
 
 
 
 
 -- 
 
 : : ) Scott







__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Flex 2.0b3 WebServices

2006-06-06 Thread Franck de Bruijn










I am using wsdl imports for schemas and
that works ok.



You have to be careful with the URL in the
import though. Initially, in my situation, the external IP-address of the
server was used in the import-URL, while I was testing the application from localhost.
Flex security mechanism then prohibits to download from the URL on an
other IP-address.



After I started my application on the
external IP-address, all worked fine.



Cheers,
Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Peter Farland
Sent: Tuesday, June 06, 2006 5:18
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex
2.0b3  WebServices











Do you have a fully qualified URL for the
wsdl attribute on the mx:WebService tag?









Flex 2 should support WSDL imports.
















From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, June 06, 2006 10:52
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 2.0b3
 WebServices



Guys,

I'm trying to call a webservice and getting an error when FlexServer tries
to read the wsdl.

The WebService is deployed on a Websphere box and the wsdl files are
divided into two pieces :

a) A Service Wsdl and,
b) An Interface wsdl.

The Service Wsdl imports the Interface wsdl file and runs fine when tested
inside WebSphere test environment. I'm using Cairngorm2b3 to get to the
WebService but receive the following error at the start of the application
:

[RPC Fault faultString=Cannot resolve relative WSDL import without a
fully
qualified base address. faultCode=Client.WSDL.Import
faultDetail=Please
specify the location of the WSDL document for the WebService.]
at mx.rpc.soap::WSDLParser/::dispatchFault()
at
mx.rpc.soap::WSDLParser/http://www.adobe.com/2006/flex/mx/internal::httpResultHandler()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()
at mx.rpc::Responder/result()
at mx.rpc::AsyncRequest/acknowledge()
at
::HTTPMessageResponder/HTTPChannel.as$8:HTTPMessageResponder::resultHandler()
at ::HTTPMessageResponder/completeHandler()
at ::ChannelRequestLoader/::callEventCallback()
at ::ChannelRequestLoader/::completeHandler()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()

I'm guessing that Flex can only read WSDL files with inline schemas ? Does
anyone have any pointers ?

Thanks in advance,
Praful

Praful Aggarwal
Lending Projects Team
EBS IT Department
praful.aggarwal@mail.ebs.ie
Ph : +353-1-6659256

Wrinkles should merely indicate where smiles have been - Mark Twain

Savings - Home Loans - Personal Loans - Investments - Credit Card - Insurance

all together better EBS Building Society www.ebs.ie

**
Terms and Conditions apply. EBS is regulated by the Financial Regulator.
**
The information contained in this communication is intended solely for
the use of the individual or entity to whom it is addressed. It may
contain confidential or legally privileged information. If you are not
the intended recipient you are hereby notified that
any disclosure, copying, distribution or taking any action in reliance
on the contents of this information is strictly prohibited and may be
unlawful. If you have received this communication in error, please
notify us immediately by responding to this email and then delete it from 
your system.

Any personal opinions expressed in this e-mail are views of the
individual and do not necessarily reflect the views of the EBS Group.
The content of this e-mail may have been sent without the authority of
the EBS Group.

EBS Group cannot guarantee that this e-mail and attachments are free of viruses
and you must ensure that you carry out your own virus checks. EBS 

Group accepts no liability for any loss or damage caused by software
viruses.

www.ebs.ie

***








__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from 

RE: [flexcoders] E4X, SOAP and namespaces, oh my!

2006-06-03 Thread Franck de Bruijn



Hi Ben,

Seeing all your e-mails with questions about webservices, it looks, like
myself, you are struggling to get webservices to work within Flex.

Personally I investigated the compliance of Flex for both RPC/Encoded and
DOC/Literal webservices. I concluded that Flex supports the RPC/Encoded
webservices fully, but for support of the DOC/Literal webservices it was
less complete. From the SOAP message below, it looks like you are using
DOC/Literal webservices, since the encoding is missing in your XML
attributes like wsu:Created.

I wrote a detailed report on this compliance analysis, and sent it to the
Flex development team. If you send me your private e-mail address, I can
send the same report to you, since it might help you.

My email address is: franck (dot) de (dot) bruijn (at) zonnet (dot) nl

Cheers,
Franck

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Friday, June 02, 2006 10:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] E4X, SOAP and namespaces, oh my!

There seems to be a significant shortage of information regarding the
use of these 3 things together. For the life of me I cannot solve this
seemingly simple problem. I have a SOAP call whose returned xml starts
out like this:

soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
xmlns:xsd=http://www.w3.org/2001/XMLSchema
 soap:Header
 wsu:Timestamp
xmlns:wsu=http://schemas.xmlsoap.org/ws/2002/07/utility
 wsu:Created2006-06-02T19:48:15Z/wsu:Created
 wsu:Expires2006-06-02T19:53:15Z/wsu:Expires
 /wsu:Timestamp
 /soap:Header
 soap:Body
 GetDocumentResponse
xmlns=http://mysite.com/BackOffice/DocumentMetadata

But when I use the following code to retrieve content from it

namespace dm = http://mysite.com/BackOffice/DocumentMetadata;
use namespace dm;
var x:XML;
x = new XML(event.message.body);
wtf = new XMLListCollection(x..RPRDocumentHistory.Entry);

I get a list of Entry nodes that have all 4 namespace declarations
attached to them even though the original nodes didn't have any.
Additionally, my DataGrid that uses wtf as its dataProvider gets
populated with blank entries (I can roll over them but no text is
displayed), which I have experienced before and is somehow related to
namespace issues.

How can I fix this? Are there any articles/tutorials that address
these topics in depth? 

Thanks,
Ben







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



 








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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












RE: [flexcoders] Help with this error.

2006-05-30 Thread Franck de Bruijn



Hi Jeremy,

The most I have for you is a guess ... I had once the same error ...

Are you sure that you are downloading your application from the url
http://fx3.homesmartagent.com?

Due to security rules, Flex applications can only stuff from the URL they
are downloaded from themselves. That also applies for URLs that may be
referred from the WSDL itself (for example, if your WSDL includes an XSD on
a different URL, Flex will fail).

You could try to solve it by encoding your wsdl property in a relative way
like: wsdl=/hs2f/cfc/adminList.cfc?wsdl. The good thing about Flex is that
you can address URL's with a different context root, as long as you maintain
the same ip-address.

Cheers,
Franck



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jeremy Rottman
Sent: Tuesday, May 30, 2006 4:23 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Help with this error.

I am working on my app, and I a part that I thought was some what
finish is now erroring out on me. When I run a search for listing
files, I get this error. I know my cfc is working, because I can run
tests against it. But when I try to search from flex, I get the error
below. Anyone have a clue what this is.

Here is my test code.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
layout=absolute
 mx:WebService id=EditListMod useProxy=false
wsdl=http://fx3.homesmartagent.com/hs2f/cfc/adminList.cfc?wsdl
showBusyCursor=true
  mx:operation name=fileSearchQry
result=EditListModfileSearchQryResult(
EditListMod.fileSearchQry.result )
fault=EditListModfileSearchQryFault( event )/  
 /mx:WebService
mx:Script
 ![CDATA[
  import mx.rpc.events.FaultEvent;
 
 import mx.controls.Alert;
 import mx.rpc.events.FaultEvent;
 import mx.utils.ObjectUtil;
  
  var searchKey = 'fileNum'
  var statusKey = 'All'
  
 // used to call the service for
VENDOR dg populate
   function
EditListModfileSearchQry(search,searchKey,statusKey){
 
EditListMod.fileSearchQry(search,searchKey,statusKey);}
   
   // called when results received
function EditListModfileSearchQryResult(
result ){
 testDG.dataProvider = result;

}
 
function EditListModfileSearchQryFault (
event:FaultEvent ){
errorBox.text =
ObjectUtil.toString(event.fault);
}
   
  
 ]]
/mx:Script


 mx:TextInput x=10 id=search y=10/
 mx:Button x=178 y=10 id=myButton
click=EditListModfileSearchQry(search.text, searchKey, statusKey)
label=Button/
 mx:DataGrid x=10 y=51 id=testDG
  mx:columns
   mx:DataGridColumn headerText=Column 1
dataField=FLD_FILENUM/
   mx:DataGridColumn headerText=Column 2
dataField=SIDE/
   mx:DataGridColumn headerText=Column 3
dataField=TYPE/
  /mx:columns
 /mx:DataGrid
 mx:TextArea x=10 y=217 id=errorBox width=874 height=367/
 
 
/mx:Application





(mx.rpc::Fault)#0
 description = HTTP request error
 detail = Error: [IOErrorEvent type=ioError bubbles=false
cancelable=false eventPhase=2 text=Error #2032 URL:
http://fx3.homesmartagent.com/hs2f/cfc/adminList.cfc]. URL:
http://fx3.homesmartagent.com/hs2f/cfc/adminList.cfc
 errorID = 0
 faultcode = Server.Error.Request
 faultCode = Server.Error.Request
 faultDetail = Error: [IOErrorEvent type=ioError bubbles=false
cancelable=false eventPhase=2 text=Error #2032 URL:
http://fx3.homesmartagent.com/hs2f/cfc/adminList.cfc]. URL:
http://fx3.homesmartagent.com/hs2f/cfc/adminList.cfc
 faultstring = HTTP request error
 faultString = HTTP request error
 message = faultCode:Server.Error.Request faultString:'HTTP request
error' faultDetail:'Error: [IOErrorEvent type=ioError bubbles=false
cancelable=false eventPhase=2 text=Error #2032 URL:
http://fx3.homesmartagent.com/hs2f/cfc/adminList.cfc]. URL:
http://fx3.homesmartagent.com/hs2f/cfc/adminList.cfc'
 rootCause = (null)







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



 









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Flex WebService error, CF Okay

2006-05-28 Thread Franck de Bruijn










Hi Tom,



I encountered the same error today.



Your webservice is probably exposing an
operation called logout. The same method is already present in
the class mx.rpc.AbstratctService, which is a baseclass of
mx.rpc.soap.mxml.WebService. When Flex is parsing your wsdl it tries to add the
encountered operations as methods to the WebService class dynamically. In the
case of the logout operation this gives a clash.



If you rename your operation to logoff
all goes well.



Cheers,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tom Ortega
Sent: Wednesday, May 24, 2006 7:58
PM
To: flexcoders
Subject: [flexcoders] Flex
WebService error, CF Okay





I'm trying to use an
internal Java Web Service.

When I call from cf using cfinvoke, all is well.

When I try to call from flex, however, I get this runtime error (see below) on
app startup. No calls to the ws yet, just error on parsing the wsdl. 

I was under the impression they (CF and Flex) both used Axis to process the
WSDLs. Is this not the case? If they do, why does one error but not
the other?

TypeError: Error #1034: Type Coercion failed: cannot convert MC{
mx.rpc.soap.mxml::[EMAIL PROTECTED] mx.rpc::AbstractService/logout()[EMAIL PROTECTED]
to mx.rpc.soap.Operation.
at mx.rpc.soap::WebService/::createOperationsFromPort()
at
mx.rpc.soap::WebService/http://www.adobe.com/2006/flex/mx/internal::wsdlHandler
()
at flash.events::EventDispatcher/dispatchEvent()
at mx.rpc.soap::WSDLParser/dispatchEvent()
at mx.rpc.soap::WSDLParser/::parseCompleted()
at
mx.rpc.soap::WSDLParser/http://www.adobe.com/2006/flex/mx/internal::httpResultHandler
()
at flash.events::EventDispatcher/dispatchEvent()
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler
()
at mx.rpc::Responder/result()
at mx.rpc::AsyncRequest/acknowledge()
at ::DirectHTTPMessageResponder/completeHandler()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete ()
at mx.rpc.soap::WebService/::setPort()

Thanks,
Tom








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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Re: New to Flex, and mxml and getting an error trying to use RSS

2006-01-06 Thread Franck de Bruijn










Hi Malik,



I have been able to reproduce your error.



The ?xml   part
needs to start at exactly the 1st row and the 1st column
of your .mxml file. If you add a space or a new line before it, the error you
mention below will appear.



I think we were a little bit put on the
wrong foot thinking your problem was a runtime error, but it appears to be a
compile time error. Try to be more specific next time.



Cheers,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of malik_robinson
Sent: vrijdag 6 januari 2006 8:52
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: New to
Flex, and mxml and getting an error trying to use RSS





Hi,

I get this error with that code:

The processing instruction target matching
[xX][mM][lL] is not 
allowed.

I copied that exact code into flex builder 2 alpha
version and I get 
that error message.

I wonder do I not have it setup correctly.

-Malik 

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

 the example still works for me today
 
 try this code:
 
 ?xml version=1.0
encoding=utf-8?
 mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml

xmlns=*
 initialize=feedRequest.send()
 mx:HTTPService

id=feedRequest

url="" href="http://weblogs.macromedia.com/mchotin/index.xml">http://weblogs.macromedia.com/mchotin/index.xml

useProxy=false/
 
 mx:Canvas
width=100% height=100%

mx:Label x=20 y=50 
text={feedRequest.result.rss.channel.title
 }/

mx:DataGrid x=20 y=80 width=400
dataProvider={
 feedRequest.result.rss.channel.item}
id=dgPosts

mx:columns

mx:DataGridColumn headerText=Posts 
columnName=title/

mx:DataGridColumn headerText=Date 
columnName=pubDate/

/mx:columns

/mx:DataGrid

mx:TextArea x=20 y=245 width=400
htmlText={
 dgPosts.selectedItem.description}/

mx:Link x=20 y=300 label=Read full post
click=getURL
(
 dgPosts.selectedItem.link);/
 /mx:Canvas
 /mx:Application
 
 
 
 On 04/01/06, malik_robinson
[EMAIL PROTECTED] wrote:
 
  Hi,
 
  I tried pointing it at the following
URL:
 
  weblogs.macromedia.com/mchotin
 
  and I received the same error, can you
try it using this URL and 
let me
  know if you are able to see the
result. This URL should have the
  crossdomain.xml file in it as this URL
is used in a tutorial on 
the
  Macromedia/Adobe website.
 
  Thanks for the response.
 
  Malik
 
 
  --- In flexcoders@yahoogroups.com,
Franck de Bruijn 
[EMAIL PROTECTED]
  wrote:
  
   Hi Malik,
  
  
  
   It looks like your url is not
pointing to a real XML file. I 
tried your
  app
   and I got the message 'Error #1090:
XML parser failure: element 
is
   malformed'.
  
  
  
   Also be aware that you cannot point
to any arbitrary URL in the 
WWW,
  since
   Flex apps are only allowed to
obtain resources from the server 
they have
   been deployed from, unless there is
a crossdomain.xml file 
present
  granting
   you access to the resource.
  
  
  
   Cheers,
  
   Franck
  
  
  
   _
  
   From: flexcoders@yahoogroups.com

[mailto:flexcoders@yahoogroups.com]
On
   Behalf Of malik_robinson
   Sent: dinsdag 3 januari 2006 8:14
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] New to Flex,
and mxml and getting an 
error trying
  to
   use RSS
  
  
  
   Hi,
  
   I am very new to Flex and trying to
try some basic tutorials in 
the
   help documentation that comes with
Flex Builder 2 alpha.
  
   I searched the mailing
list/archives trying to find out why I 
get the
   following error message but to no
avail. The error is below:
  
   The processing instruction
target matching [xX][mM][IL] is 
not
   allowed.
  
   My code is below and is basically
from the documentation that 
comes
   with the flex builder 2 alpha 1
version. The main difference is 
I am
   trying to point it as a different
url other than the
   weblogs.macromedia.com/mchotin or
whatever the exact url is. I 
am
   trying to point it at a different
URL.
  
   ?xml version=1.0 encoding=utf-8?
   mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml
   xmlns=*
  
initialize=feedRequest.send() 
  
   mx:HTTPService
   id=feedRequest
   url=""
href="http://groups.yahoo.com/group/flexcoders/">http://groups.yahoo.com/group/flexcoders/
   useProxy=false/
  
   mx:Canvas
width=100% height=100%
   mx:Label x=20
y=50
  
text={feedRequest.result.rss.channel.title}/
   mxataGrid x=20
y=80 id=dgPosts width=400
   mx:columns
   mxataGridColumn
headerText=Column 1
   columnName=col1/
   mxataGridColumn
headerText=Column 2
   columnName=col2/
   /mx:columns
   /mxataGrid
   mx:TextArea x=20
y=245 width=400 /
   mx:Link x=20
y=300 label=Read Full Post /
   /mx:Canvas
   /mx:Application
  
  
  
  
  
  
  
  
  
   --
   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
  
  
  
   * Visit yo

RE: [flexcoders] open sourced Flex app

2006-01-03 Thread Franck de Bruijn










Since you are writing an open source
application, I would stick as much as possible to open source frameworks and
tools.



Im currently prototyping a Flex 2
application on the following software stack:


 Frontend:
 Flex 2
 Interface
 towards backend: Web services with Apache Axis
 Middleware:
 Hibernate
 Wiring:
 plain java, but this is not so modern. So, maybe you will prefer Spring.
 Database:
 any one you prefer. For the prototype Im using HSQLDB.
 Building:
 Maven 2
 Developing:
 Flex 2 Builder (standalone) and Eclipse WTP (unfortunately they do not
 work together yet)




For the build part Im not satisfied
yet. Maybe Ill write my own Maven 2 plugin for Flex 2 applications. Ill
keep you posted on that.



People say that web services are the
slowest alternative for interfacing, but Im having very good experiences
with it with respect to performance. Can anyone tell me why remoting (AMF
framework?) is preferred? Does anyone have benchmarks on this?



Cheers,

Franck











From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Douglas Knudsen
Sent: dinsdag 3 januari 2006 15:41
To: flexcoders@yahoogroups.com
Subject: [flexcoders] open sourced
Flex app





Ok, so I want to mess around building something to let everyone in the
community have. Using Flex 2what to use
on the backend? With DAO
Factories, I suppose any back end DB will do,
eh? start with MySQL
and fill in for others. Now what about the
middle ware? Java,
ColdFusion, etc... What would be a good
popular fit, eh? Your
thoughts?

--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?








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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] open sourced Flex app

2006-01-03 Thread Franck de Bruijn










Hi Douglas,



Exactly the same reason why I chose for
web services. Its standards based, so youre free to go on the
back end.



I dont know what you exactly meant
with staying clear of frameworks, but I think using Hibernate is
a safe bet or maybe later EJB3 (which should be an easy migration). Im
personally not a fan of Spring, but its extremely hot in the Java
community. Im afraid that if youre not using Spring, you will not
be taken seriously.



This brings me to another point. I
personally have a JAVA background and I follow the community sites www.javalobby.org and www.theserverside.com closely. What I
notice is that Flex is not considered a serious alternative for building Rich
Internet Applications. A search on flex does not result in many
hits. Worse, people who vouch for flex are often barked at shamelessly. 



I dont know your intentions behind
your idea of starting an open source flex project. Could you tell us more? To
me it would be a great idea showing the JAVA community that there is a much
cleaner and leaner alternative for web applications than this JSF/AJAX/_javascript_
stuff that is getting so much attention. One of the key success factors would
be to have your back-end state-of-the-art, showing the JAVA people that you
know your stuff. That means IMHO that you need to use popular frameworks like
Hibernate and Spring.



Does anyone have an explanation why Flex is
not taken seriously in JAVA land? Is there something I should know J?



Cheers,

Franck















From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Knudsen
Sent: dinsdag 3 januari 2006 19:27
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] open
sourced Flex app





yeah, seems better to target
Java as middle ware. Probably stay clear
of any frameworks though to make it lighter in
weight. Thanks for the
info...

 People say that web services are the slowest
alternative for interfacing,
 but I'm having very good experiences with it
with respect to performance.
 Can anyone tell me why remoting (AMF
framework?) is preferred? Does anyone
 have benchmarks on this?

Adobe has info on this and preach use of AMF for
speed. This is
talked about around this list a bit already...some
guy named Dave
might have said something :) I'm thinking
for an open sourced
project, web services is the way to go, should
make it easier to plug
in different middle-wares.

DK


On 1/3/06, Franck de Bruijn [EMAIL PROTECTED] wrote:



 Since you are writing an open source
application, I would stick as much as
 possible to open source frameworks and tools.



 I'm currently prototyping a Flex 2
application on the following software
 stack:

 Frontend: Flex 2
 Interface towards backend: Web services with
Apache Axis
 Middleware: Hibernate
 Wiring: plain java, but this is not so
modern. So, maybe you will prefer
 Spring.
 Database: any one you prefer. For the
prototype I'm using HSQLDB.
 Building: Maven 2
 Developing: Flex 2 Builder (standalone) and
Eclipse WTP (unfortunately they
 do not work together yet)



 For the build part I'm not satisfied yet.
Maybe I'll write my own Maven 2
 plugin for Flex 2 applications. I'll keep you
posted on that.



 People say that web services are the slowest
alternative for interfacing,
 but I'm having very good experiences with it
with respect to performance.
 Can anyone tell me why remoting (AMF
framework?) is preferred? Does anyone
 have benchmarks on this?



 Cheers,

 Franck



 


 From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
 Behalf Of Douglas Knudsen
 Sent: dinsdag 3 januari 2006 15:41
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] open sourced Flex
app



 Ok, so I want to mess around building
something to let everyone in the
 community have. Using Flex
2what to use on the backend? With DAO
 Factories, I suppose any back end DB
will do, eh? start with MySQL
 and fill in for others. Now what
about the middle ware? Java,
 ColdFusion, etc... What would
be a good popular fit, eh? Your
 thoughts?

 --
 Douglas Knudsen
 http://www.cubicleman.com
 this is my signature, like it?



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


 Visit your group flexcoders
on the web.

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

 Your use of Yahoo! Groups is subject to
the Yahoo! Terms of Service.

 





--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?








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








  
  
SPONSORED LINKS
  
  
  

Web site design development

RE: [flexcoders] open sourced Flex app

2006-01-03 Thread Franck de Bruijn










Hi Weyert,



Im not into ECM personally. I
mostly develop administrative systems like order management systems and the
like.



I had a look though at Alfresco and after
10 minutes I have a good impression. The webservices api was not entirely
developed yet, but a quick glance at the Authentication WSDL showed my that is
was pretty much similar to the api I developed myself. This makes me conclude
that these web services should be perfectly accessible and usable by a FLEX
app. So, go ahead, if you ask me J.



One thing I noticed though is that the
fault handling of web services within Flex 2 is not working as it should (see
my post at the macromedia labs forum: http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=584threadid=1097471#3924351).
Maybe Im doing wrong, but I dont know what.



Cheers,

Franck











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Weyert de Boer
Sent: dinsdag 3 januari 2006 19:04
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] open
sourced Flex app





Hi Franck,

Looks like a good collection of tools to do the
job. Maybe you can 
consider talking to a
ECM system such as Alfresco? It offers webservices
for content 
retrieval. ;-)

Yours,
Weyert de Boer








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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] open sourced Flex app

2006-01-03 Thread Franck de Bruijn










Hi Douglas,



Its not wrong to use a framework. Some
frameworks are really awesome, like Hibernate. You really dont want to
write your own JDBC calls anymore. But, be my guest, of course  Dont
mistaken yourself though in the complexity of back-end work. Good frameworks do
provide added value.



Are you looking to only increase your Flex
skills or also back-end skills? If you only want to increase your Flex skills I
think your idea to program against an existing API is the best way to go. Another
thread of this post mentions the open source product Alfresco, which has (or
will have) a nice set of web services to program against 



If you do want to increase your back-end
skills you have to do it right 



On the other hand youre right to
say that to know your stuff is not equivalent how fluent you are
in a certain framework. Thats also not what I intended to say. My
reasoning had more to do with the fact that in the cruel and bitter world out
there, unfortunately, its not important how good you are, but how good
others think you are.



Cheers,

Franck











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Knudsen
Sent: dinsdag 3 januari 2006 22:12
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] open
sourced Flex app









On 1/3/06, Franck de
Bruijn [EMAIL PROTECTED]
wrote:



Hi Douglas,



Exactly the same reason why I chose for web services. It's
standards based, so you're free to go on the back end.



I don't know what you exactly meant with 'staying clear of
frameworks', but I think using Hibernate is a safe bet or maybe later EJB3
(which should be an easy migration). I'm personally not a fan of Spring, but
it's extremely hot in the Java community. I'm afraid that if you're not using
Spring, you will not be taken seriously.






I meant that it would seem lighter as there would be only the requirement that
a J2EE container be available, nothing else. I'm not from the hardcore
Java background wither, so I have not got Spring, Hibernate, etc under me
firmly empyet/emp either. 









This brings me to another point. I personally have a JAVA
background and I follow the community sites www.javalobby.org and www.theserverside.com
closely. What I notice is that Flex is not considered a serious alternative for
building Rich Internet Applications. A search on 'flex' does not result in many
hits. Worse, people who vouch for flex are often barked at shamelessly. 



I don't know your intentions behind your idea of starting an
open source flex project. Could you tell us more? 








In my desire to increase my skills, I was thinking of writing a little issue
tracking tool. heck, maybe just hook up a cool Flex2 UI to a already
existing opensourced issue traker, eh? hmm









To me it would be a great idea showing the JAVA community
that there is a much cleaner and leaner alternative for web applications than
this JSF/AJAX/_javascript_ stuff that is getting so much attention. One of the
key success factors would be to have your back-end state-of-the-art, showing
the JAVA people that you know your stuff. That means IMHO that you need to use
popular frameworks like Hibernate and Spring.







So to 'know your stuff'
you must use a framework? I'm not a believer in this. Perhaps
knowing of and how to use frameworks displays the notion that you 'know your
stuff', eh? 









Does anyone have an explanation why Flex is not taken
seriously in JAVA land? Is there something I should know J ?



Cheers,

Franck















From: flexcoders@yahoogroups.com
[mailto:
flexcoders@yahoogroups.com] On Behalf Of Douglas
Knudsen
Sent: dinsdag 3 januari 2006 19:27
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] open
sourced Flex app







yeah, seems better to target Java as middle ware. Probably stay
clear
of any frameworks though to make it lighter in weight.
Thanks for the
info...

 People say that web services are the slowest
alternative for interfacing,
 but I'm having very good experiences with it
with respect to performance.
 Can anyone tell me why remoting (AMF
framework?) is preferred? Does anyone
 have benchmarks on this?

Adobe has info on this and preach use of AMF for
speed. This is
talked about around this list a bit already...some
guy named Dave
might have said something :) I'm thinking
for an open sourced
project, web services is the way to go, should
make it easier to plug
in different middle-wares.

DK


On 1/3/06, Franck de Bruijn [EMAIL PROTECTED]
wrote: 



 Since you are writing an open source
application, I would stick as much as
 possible to open source frameworks and tools.



 I'm currently prototyping a Flex 2
application on the following software
 stack:

 Frontend: Flex 2
 Interface towards backend: Web services with
Apache Axis
 Middleware: Hibernate
 Wiring: plain java, but this is not so
modern. So, maybe you will prefer
 Spring.
 Database: any one you prefer. For the
prototype I'm using HSQLDB.
 Building: Maven

RE: [flexcoders] open sourced Flex app

2006-01-03 Thread Franck de Bruijn










Java folks are very stubborn  Are
the Flex/Flash people so much different??? All engineers are probably the same 
:)



Java folks are also very picky if it comes
to spending money on development tools. We/They are so much used to get
everything for free. Thats why they probably vouch for Laszlo. On the
surface Laszlo and Flex/Flash look very similar. And most Java people will not
look much further than the surface, if they look at all 



Is Macromedia/Adobe going to take the
ball? What would be the right way to go to get some market in the Java arena?



Cheers,

Franck











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL
Sent: dinsdag 3 januari 2006 20:58
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] open
sourced Flex app







Yeah, no one has become an evenagelist there, and those that
have vouch for Laszlo. It's extremely frustrating repeating myself to
those people, but it has to be done. The problem is, my background is
Flash, not Flex, so I'm not taken seriously by a lot of Java folks, nor am I
involved in their community. Someone needs to take the ball.











- Original Message - 



From: Franck
de Bruijn 





To: flexcoders@yahoogroups.com






Sent: Tuesday, January
03, 2006 2:04 PM





Subject: RE: [flexcoders]
open sourced Flex app











Hi Douglas,



Exactly the same reason why I chose for
web services. Its standards based, so youre free to go on the
back end.



I dont know what you exactly meant
with staying clear of frameworks, but I think using Hibernate is
a safe bet or maybe later EJB3 (which should be an easy migration). Im
personally not a fan of Spring, but its extremely hot in the Java
community. Im afraid that if youre not using Spring, you will not
be taken seriously.



This brings me to another point. I
personally have a JAVA background and I follow the community sites www.javalobby.org and www.theserverside.com closely. What I
notice is that Flex is not considered a serious alternative for building Rich
Internet Applications. A search on flex does not result in many
hits. Worse, people who vouch for flex are often barked at shamelessly. 



I dont know your intentions behind
your idea of starting an open source flex project. Could you tell us more? To
me it would be a great idea showing the JAVA community that there is a much
cleaner and leaner alternative for web applications than this
JSF/AJAX/_javascript_ stuff that is getting so much attention. One of the key
success factors would be to have your back-end state-of-the-art, showing the
JAVA people that you know your stuff. That means IMHO that you need to use
popular frameworks like Hibernate and Spring.



Does anyone have an explanation why Flex
is not taken seriously in JAVA land? Is there something I should know J?



Cheers,

Franck















From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Knudsen
Sent: dinsdag 3 januari 2006 19:27
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] open
sourced Flex app





yeah, seems better to target
Java as middle ware. Probably stay clear
of any frameworks though to make it lighter in
weight. Thanks for the
info...

 People say that web services are the slowest
alternative for interfacing,
 but I'm having very good experiences with it
with respect to performance.
 Can anyone tell me why remoting (AMF
framework?) is preferred? Does anyone
 have benchmarks on this?

Adobe has info on this and preach use of AMF for
speed. This is
talked about around this list a bit already...some
guy named Dave
might have said something :) I'm thinking
for an open sourced
project, web services is the way to go, should
make it easier to plug
in different middle-wares.

DK


On 1/3/06, Franck de Bruijn [EMAIL PROTECTED] wrote:



 Since you are writing an open source
application, I would stick as much as
 possible to open source frameworks and tools.



 I'm currently prototyping a Flex 2
application on the following software
 stack:

 Frontend: Flex 2
 Interface towards backend: Web services with
Apache Axis
 Middleware: Hibernate
 Wiring: plain java, but this is not so
modern. So, maybe you will prefer
 Spring.
 Database: any one you prefer. For the
prototype I'm using HSQLDB.
 Building: Maven 2
 Developing: Flex 2 Builder (standalone) and
Eclipse WTP (unfortunately they
 do not work together yet)



 For the build part I'm not satisfied yet.
Maybe I'll write my own Maven 2
 plugin for Flex 2 applications. I'll keep you
posted on that.



 People say that web services are the slowest
alternative for interfacing,
 but I'm having very good experiences with it
with respect to performance.
 Can anyone tell me why remoting (AMF
framework?) is preferred? Does anyone
 have benchmarks on this?



 Cheers,

 Franck



 


 From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
 Behalf Of Douglas Knudsen
 Sent: dinsdag 3 januari 2006 15:41

RE: [flexcoders] New to Flex, and mxml and getting an error trying to use RSS

2006-01-03 Thread Franck de Bruijn










Hi Malik,



It looks like your url is not pointing to
a real XML file. I tried your app and I got the message Error #1090: XML
parser failure: element is malformed.



Also be aware that you cannot point to any
arbitrary URL in the WWW, since Flex apps are only allowed to obtain resources
from the server they have been deployed from, unless there is a crossdomain.xml
file present granting you access to the resource.



Cheers,

Franck











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of malik_robinson
Sent: dinsdag 3 januari 2006 8:14
To: flexcoders@yahoogroups.com
Subject: [flexcoders] New to Flex,
and mxml and getting an error trying to use RSS





Hi,

I am very new to Flex and trying to try some basic
tutorials in the 
help documentation that comes with Flex Builder 2
alpha.

I searched the mailing list/archives trying to
find out why I get the 
following error message but to no avail. The
error is below:

The processing instruction target matching
[xX][mM][IL] is not 
allowed.

My code is below and is basically from the
documentation that comes 
with the flex builder 2 alpha 1 version. The
main difference is I am 
trying to point it as a different url other than
the 
weblogs.macromedia.com/mchotin or whatever the
exact url is. I am 
trying to point it at a different URL.

?xml version=1.0
encoding=utf-8? 
mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml

xmlns=*

initialize=feedRequest.send() 

 mx:HTTPService 

id=feedRequest 

url="" href="http://groups.yahoo.com/group/flexcoders/">http://groups.yahoo.com/group/flexcoders/

useProxy=false/

 mx:Canvas
width=100% height=100%

mx:Label x=20 y=50 
text={feedRequest.result.rss.channel.title}/

mx:DataGrid x=20 y=80 id=dgPosts
width=400

mx:columns

mx:DataGridColumn headerText=Column 1 
columnName=col1/

mx:DataGridColumn headerText=Column 2 
columnName=col2/

/mx:columns

/mx:DataGrid

mx:TextArea x=20 y=245 width=400 /

mx:Link x=20 y=300 label=Read Full Post
/
 /mx:Canvas 
/mx:Application















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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.