From 75c304f82f7a5e8b061537cde6e605920c5d9b0b Mon Sep 17 00:00:00 2001
From: Leon Breedt <bitserf@gmail.com>
Date: Sun, 20 Mar 2005 07:14:12 +0000
Subject: make the response QName match up with that declared for the message
 in the WSDL, to not do so violates the spec. also fixes this error that
 occurred with SOAP::WSDLDriverFactory: "RuntimeError: Cannot find {}return as
 a children of {urn:ServiceName}messageName"

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@920 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
---
 actionwebservice/lib/action_web_service/protocol/soap_protocol.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'actionwebservice/lib')

diff --git a/actionwebservice/lib/action_web_service/protocol/soap_protocol.rb b/actionwebservice/lib/action_web_service/protocol/soap_protocol.rb
index 51d37ba032..2dab7954f9 100644
--- a/actionwebservice/lib/action_web_service/protocol/soap_protocol.rb
+++ b/actionwebservice/lib/action_web_service/protocol/soap_protocol.rb
@@ -28,7 +28,7 @@ module ActionWebService # :nodoc:
           else
             return_value = nil
           end
-          body = @encoder.encode_rpc_response(method_name, return_value)
+          body = @encoder.encode_rpc_response(method_name + 'Response', return_value)
           Response.new(body, 'text/xml')
         end
 
-- 
cgit v1.2.3