|
Yes, logout is a reserved method that we
have on the AbstractService class. If your WebService has a logout method you’ll
need to call service.getOperation(“logout”).send(arg1, arg2, …). Matt From:
[email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Vishwajit Girdhari Figured out a weird issue with Flex 2.0 / Flash
Player 9 . Your comments welcome. Issue: When you are calling any webservice where the
API contains a method/function/ and you get the exception mentioned in trace . Just to confirm the issue I tried writing
webservice in Intersystems Cache and .NET 1.0 . The issue lies with webmethod name 'logout' , if its renamed
to something else the life is good. Trace : TypeError: Error #1034: Type Coercion failed: cannot convert
MC{mx.rpc.soap. Code: .Net (C#) Webservice ------------ using System; using System.Collections; using System.ComponentMod using System.Data; using System.Diagnostics; using System.Web; using System.Web.Services namespace TestWS { [WebService( public class Service1 : System.Web.Services { public Service1() { InitializeComponent } private IContainer components = null; private void InitializeComponent { } protected override void Dispose( bool disposing ) { if(disposing && components != null) { components.Dispose( } base.Dispose(disposing) } [WebMethod] public string login(string loginId , string password) { return "ok" ; } [WebMethod] public string logout(string sessionId) { return "ok" ; } }//class }//namespace Flex 2.0 (AS3) Code for Webservice Client ------------ <?xml version="1.0" encoding="utf- ------------ Thank you. Feedback / comments welcome. Vishwajit Girdhari 9890946721 | [EMAIL PROTECTED] The best way to be prepared for
future is to invent it ! Flex Blog: http://flexiness. -- 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
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 __,_._,___ |

