# Delegated Webservice Problem

**URL:** <https://www.ruby-forum.com/t/delegated-webservice-problem/68392>\
**Category:** Rails\
**Created:** [September 12, 2006, 10:10am UTC](https://www.ruby-forum.com/t/delegated-webservice-problem/68392 "2006-09-12T10:10:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 12, 2006, 10:10am UTC](https://www.ruby-forum.com/t/delegated-webservice-problem/68392/1 "2006-09-12T10:10:22Z")

</div>

## I set up a webservice controller like this:

class ServiceController \< ApplicationController  
wsdl\_service\_name ‘Service’  
wsdl\_namespace ‘urn:inuservicexml’

web\_service\_dispatching\_mode :delegated  
web\_service\_scaffold :invoke

## web\_service :userinfo, UserService.new end

In the UserService class and UserApi class, I defined a login method,  
so I tried to access the login service by this url,  
“localhost:3000/service/userinfo/login”. But this generated me a very  
weird warning page –

* * *

## Internal protocol error: undefined local variable or method `source' for REXML::SourceFactory:Class Backtrace: c:/ruby/lib/ruby/1.8/rexml/source.rb:20:in`create\_from’ c:/ruby/lib/ruby/1.8/rexml/parsers/baseparser.rb:123:in `stream=' c:/ruby/lib/ruby/1.8/rexml/parsers/baseparser.rb:100:in`initialize’ c:/ruby/lib/ruby/1.8/rexml/parsers/streamparser.rb:6:in `initialize' c:/ruby/lib/ruby/1.8/rexml/document.rb:185:in`parse\_stream’ c:/ruby/lib/ruby/1.8/xmlrpc/parser.rb:717:in `parse' c:/ruby/lib/ruby/1.8/xmlrpc/parser.rb:475:in`parseMethodCall’ c:/ruby/lib/ruby/1.8/xmlrpc/marshal.rb:63:in `load_call' c:/ruby/lib/ruby/1.8/xmlrpc/marshal.rb:32:in`load\_call’ … … …

And when I run funcational tests associating with this webservice, it  
told me “ActionWebService::Container::Delegated::ContainerError: no  
such web service ‘login’”.  
I really have no idea what’s going on. I have been stucking on this  
problem for days… Please help me on this…  
Thank you very much~
