提交 190eaf93 编写于 作者: L Leon Breedt

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

was not XML-RPC.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1295 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 884fd479
......@@ -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)
decode_rpc_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]
else
public_name
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册