I was investigating the ability to call SOAP services (developed in either Rails or .NET) from a Silverlight/IronRuby client. Since I think the Ruby Soap libraries are not yet available I looked into using the Wcf classes in System.ServiceModel but it looks like I have to wait for generics support so that we can use things like ChannelFactory. Is that right? Btw what is the 50,000 feet direction for dealing with generics? Otherwise another option is to generate the client proxies in C# and include them in the .xap file. I guess I would prefer to keep all my code in IronRuby though. What are other folks doing in that space? Philippe PS-I am still blown away by the work you guys are doing!
2008/4/29 Philippe Monnet <ironruby at monnet-usa.com>:> Is that right? Btw what is the 50,000 feet direction for dealing with > generics?Following code works *right now*. (Put it in a file and run with rbx.exe.) require ''mscorlib'' include System::Collections::Generic IntList = List.of(Fixnum) a = IntList.new a.add 1 puts a[0] -- Seo Sanghyeon
John Lam (IRONRUBY)
2008-Apr-29 13:45 UTC
[Ironruby-core] Calling SOAP services from IronRuby
Philippe Monnet:> I was investigating the ability to call SOAP services (developed in > either Rails or .NET) from a Silverlight/IronRuby client. Since I > think the Ruby Soap libraries are not yet available I looked into > using the Wcf classes in System.ServiceModel but it looks like I have > to wait for generics support so that we can use things like > ChannelFactory<IMyContract>. > Is that right? Btw what is the 50,000 feet direction for dealing with > generics? > > Otherwise another option is to generate the client proxies in C# and > include them in the .xap file. I guess I would prefer to keep all my > code in IronRuby though. What are other folks doing in that space?The bigger problem that you''re likely to run into is lack of support for attributes in IronRuby. In the Silverlight sample that I wrote which defines the contracts in C# http://www.iunknown.com/2008/03/dynamic-silve-1.html Thanks, -John