# Layered SOAP webservices

**URL:** <https://www.ruby-forum.com/t/layered-soap-webservices/111621>\
**Category:** Rails\
**Created:** [August 9, 2007, 8:19am UTC](https://www.ruby-forum.com/t/layered-soap-webservices/111621 "2007-08-09T08:19:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gnuman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b19c9b/32.png) [@gnuman](https://www.ruby-forum.com/u/gnuman)\
**Post date:** [August 9, 2007, 8:19am UTC](https://www.ruby-forum.com/t/layered-soap-webservices/111621/1 "2007-08-09T08:19:09Z")

</div>

Hi all,

My SOAP web service works with direct and delegated dispatching. But  
as soon as I switch to layered, I get an error message

no such web service ‘api’

Now, the actionwebservice/lib/action\_web\_service/protocol/  
soap\_protocol.rb, in function

decode\_action\_pack\_request(action\_pack\_request),

service\_name = action\_pack\_request.parameters[‘action’]

But doesn’t this mean the service\_name is always going to be set to  
‘api’ in case of layered dispatch? Shouldn’t the service name come  
from the SOAP message itself? (ie. NOT the SOAPAction HTTP header --\>  
that header should not really be used because the service name is in  
the SOAP message, AFAIK).

I am not an export on SOAP messages, but is the layered SOAP  
dispatching implemented at all?

I’m using latest stable rails. I’ve tried the SVN trunk, but I get  
some error about actionwebservice being undefined symbol or  
something…

Thanks in advance for any light on this.
