Now that the Beta 2 of Silverlight
provides support for WSI web services, I can now get an all-C#
Silverlight app to call Rails (Action Web Service) web services.
So I encapsulated my generated web service proxy in its own DLL so I
can use it from Ruby, like so:
...
require
2008/6/12 Philippe Monnet [EMAIL PROTECTED]:
- the require mywebsvcproxy returns true
- if I evaluate mywebsvcproxyns I get undefined
This is the expected behavior. See:
irb require 'date'
= true
irb date
NameError: ...
irb Date
= Date
As in the above Ruby session, require in Ruby does
For me that just works with a namespace
what I do is I have my assemblies in a folder bin in my application but that
could be what ever
I call require 'bin/AssemblyName.dll'
In that assembly I have a namespace MyNamespace.Model
then I can do
include MyNamespace::Model
if that namespace
Of Philippe Monnet
Sent: Thursday, June 12, 2008 5:37 AM
To: IronRuby
Subject: [Ironruby-core] Having difficulties using custom C# dlls with
namespaces within IronRuby code
Now that the Beta 2 of Silverlight provides support for WSI web services, I can
now get an all-C# Silverlight app to call
-
From: [EMAIL PROTECTED] [mailto:ironruby-core-
[EMAIL PROTECTED] On Behalf Of Tomas Matousek
Sent: Thursday, June 12, 2008 9:32 AM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Having difficulties using custom C# dlls
with namespaces within IronRuby code
The casing is not right
9:32 AM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Having difficulties using custom C# dlls
with namespaces within IronRuby code
The casing is not right.
include mywebsvcproxyns
is the same as
include(mywebsvcproxyns())
I.e. mywebsvcproxyns is a method call.
You need