Skip to content
Browse files

fix that functional testing for :layered SOAP would complain that it

was not XML-RPC.

git-svn-id: 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 884fd47 commit 190eaf93078d2fae54b0f88a3325f2965b560fe3 @bitserf bitserf committed
Showing with 1 addition and 4 deletions.
  1. +1 −4 actionwebservice/lib/action_web_service/test_invoke.rb
5 actionwebservice/lib/action_web_service/test_invoke.rb
@@ -21,9 +21,6 @@ def invoke_delegated(service_name, method_name, *args)
# invoke the specified layered API method on the correct service
def invoke_layered(service_name, method_name, *args)
- if protocol.is_a?(ActionWebService::Protocol::Soap::SoapProtocol)
- raise "SOAP protocol support for :layered dispatching mode is not available"
- end
prepare_request('api', service_name, method_name, *args)
@controller.process(@request, @response)
@@ -66,7 +63,7 @@ def decode_rpc_response
def public_method_name(service_name, api_method_name)
public_name = service_api(service_name).public_api_method_name(api_method_name)
- if @controller.web_service_dispatching_mode == :layered
+ if @controller.web_service_dispatching_mode == :layered && protocol.is_a?(ActionWebService::Protocol::XmlRpc::XmlRpcProtocol)
'%s.%s' % [service_name.to_s, public_name]

0 comments on commit 190eaf9

Please sign in to comment.
Something went wrong with that request. Please try again.