Now, now, lets be nice :) Took me two seconds to add the appropriate trace output to my AS delegate and I am calling the correct method.
 
See when calling the getList method:
 
in AS:
calling getList
11/21 23:2:26 [INFO] SOAP: Asynchronously invoking SOAPCall: getList
11/21 23:2:26 [INFO] SOAP: Encoding SOAPCall request
Warning: registerPrefix is not a function
11/21 23:2:26 [INFO] SOAP: Sent SOAP Request Message
11/21 23:2:26 [INFO] WebService: Invoking call getList
11/21 23:2:29 [INFO] SOAP: Received SOAP response from network [3025 millis]
11/21 23:2:29 [INFO] SOAP: Parsed SOAP response XML [0 millis]
11/21 23:2:29 [INFO] SOAP: Decoding SOAPCall response
11/21 23:2:29 [INFO] SOAP: Decoded SOAP response into result [20 millis]
 
And I see the appropriate logging on the Java side:
 
2005-11-21 23:02:26 DEBUG - Searching for FMA:
 
Now calling the getRecord method:
 
calling getRecord
11/21 23:2:58 [INFO] SOAP: Asynchronously invoking SOAPCall: getRecord
11/21 23:2:58 [INFO] SOAP: Encoding SOAPCall request
Warning: registerPrefix is not a function
11/21 23:2:58 [INFO] SOAP: Sent SOAP Request Message
11/21 23:2:58 [INFO] WebService: Invoking call getRecord
11/21 23:2:58 [INFO] SOAP: Received SOAP response from network [411 millis]
11/21 23:2:58 [INFO] SOAP: Parsed SOAP response XML [10 millis]
11/21 23:2:58 [INFO] SOAP: Decoding SOAPCall response
11/21 23:2:58 [INFO] SOAP: Decoded SOAP response into result [0 millis]
 
But on the server side, I see the same method being called:
 
2005-11-21 23:02:58 DEBUG - Searching for FMA:
 
So go figure eh?
 
Dimitrios "Jimmy" Gianninas
RIA Developer
Optimal Payments Inc.
 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Wolf
Sent: Monday, November 21, 2005 10:37 PM
To: [email protected]
Subject: [flexcoders] Re: Web service question

Cairngorn huh.... I'll bet dollars to donuts that somehow the event is
being mis-dispatched.

<flame bait>
Show what you have, but to me these situations are the biggest proof
where abstracted frameworks, especially around event dispatching come
back to bite you.  Something simple like clicking a button to fire a
service wanders through hard to debug framework.  Why go through
something as abstracted as a FrontController/Command/Locator pattern
soup to do something as simple as fire a service from a button click.
</flame bait>

Ahem.

I can tell you we've built seriously complex applications using
<mx:WebService/>. It's likely just a fat finger in the implementation.
<mx:WebService/> works like a champ. (ok it has a cpl issues but this
isnt one of them!)

Your friendly neigborhood KISS pontificator,

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

Email: [EMAIL PROTECTED]
Office: 866-CYNERGY


--- In [email protected], "Dimitrios Gianninas"
<[EMAIL PROTECTED]> wrote:
>
> Its Flex 1.5. What code do you want to see exactly? My AS delegate? The
> Services.mxml ? The WSDL ?

> Dimitrios "Jimmy" Gianninas
> RIA Developer
> Optimal Payments Inc.

>
> ________________________________
>
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of Dave Wolf
> Sent: Monday, November 21, 2005 4:32 PM
> To: [email protected]
> Subject: [flexcoders] Re: Web service question
>
>
> Could you post your code?  Also is this Flex 1.5 or Flex 2?  We use
> web services a over the place and they work like a champ.
>
> --
> Dave Wolf
> Cynergy Systems, Inc.
> Macromedia Flex Alliance Partner
> http://www.cynergysystems.com
>
> Email: [EMAIL PROTECTED]
> Office: 866-CYNERGY
>
> --- In [email protected], "Dimitrios Gianninas"
> <[EMAIL PROTECTED]> wrote:
> >
> > Toying with calling web services for the first time in a long time
> with
> > Flex... So here my question. I have a Java class exposed as a web
> > service, and it has two methods exposed.
> > 
> > When I call the first method from Flex, all is good. When I call the
> > second one, its still calling the first one! Am i missing something?
> > 
> > Dimitrios "Jimmy" Gianninas
> > RIA Developer
> > Optimal Payments Inc.
> >
>
>
>
>
>
>
>
> --
> 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
> <http://groups.yahoo.com/group/flexcoders> " on the web.
>        
> *      To unsubscribe from this group, send an email to:
>       [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
>        
> *      Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/> .
>
>
> ________________________________
>






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




Reply via email to