[Ironruby-core] More WCF fail
Curt Hagenlocher
curth at microsoft.com
Thu Mar 12 13:15:48 EDT 2009
There's no CLR Type object that can fully represent your Ruby class, so you can't meaningfully pass the type to any API that wants to be able to create an object from it. This is still an area of active investigation and thought for us.
From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Orion Edwards
Sent: Wednesday, March 11, 2009 4:44 PM
To: ironruby-core at rubyforge.org
Subject: [Ironruby-core] More WCF fail
Had time to get back to the WCF stuff: Here's the latest
class MyService
include IWcfContract
def ping(x)
x
end
end
uri = Uri.new "http://localhost:8700/MyService"
binding = WSHttpBinding.new
host = ServiceHost.new MyService
host.add_service_endpoint(IWcfContract.to_clr_type, binding, uri);
=> Now raises the following error (new and different from last time, exciting!):
The contract name 'IWcfContract' could not be found in the list of contracts implemented by the service 'IronRuby.Builtins.RubyClass'.
I also tried creating an abstract C# class as follows:
public abstract class WcfContractClass : IWcfContract
{
public abstract string Ping(string input);
}
and then having the ruby class do this:
class MyService < WcfContractClass
however the same error occurs. Still running the dlr nightly v12211 build...
Any ideas?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20090312/5761c17d/attachment-0001.html>
More information about the Ironruby-core
mailing list