[Ironruby-core] IronRuby and MarkLogic

John Lam (DLR) jflam at microsoft.com
Thu Nov 29 19:35:17 EST 2007


N. F.:

> Now, I am trying the same thing with IronRuby and here is how far I
> got:
>
> require 'System, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b77a5c561934e089'
> require "c:\\IronRuby\\build\\release\\MarklogicXcc.dll"
> # all xcc dlls have to be in the same dir as ironruby (except for
> MarklogicXcc.dll)
> puts 'connecting to db...'
> $uri = System::Uri.new('xcc://admin:admin@localhost:9003') # help from
> John Lam here...thanks!
> $content_source =
> Marklogic::Xcc::ContentSourceFactory::NewContentSource($uri)
> puts 'creating session...'
> $session = $content_source::NewSession()
>
> For some reason, NewSession is not seen as a valid method. Here is part
> of the interpreter's output:
>
> System.MissingMethodException: undefined local variable or method
> `NewSession' for
> #<Marklogic::Xcc::Impl::ContentSourceImpl:0x0000058>:Ruby.Builtins.Ruby
> Class

What's the visibility of ContentSourceImpl type and the NewSession method? If you could do a quick dump via Reflector that would help.

Thanks,
-John



More information about the Ironruby-core mailing list