diff options
author | Leon Breedt <bitserf@gmail.com> | 2005-06-25 06:27:39 +0000 |
---|---|---|
committer | Leon Breedt <bitserf@gmail.com> | 2005-06-25 06:27:39 +0000 |
commit | ebb6fb09280f828258432223fd543de9dfda6370 (patch) | |
tree | 27a5aba70164b1a9d0264d8c04b4df14f49317e5 /actionwebservice/lib/action_web_service/protocol/discovery.rb | |
parent | af33a6a6b193f4470d2c072d6fa197b72c74001b (diff) | |
download | rails-ebb6fb09280f828258432223fd543de9dfda6370.tar.gz rails-ebb6fb09280f828258432223fd543de9dfda6370.tar.bz2 rails-ebb6fb09280f828258432223fd543de9dfda6370.zip |
fix WSDL generation, change the way protocols are instantiated, and add
the ability to override the namespace used in WSDL instead of always forcing
'urn:ActionWebService'
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1501 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionwebservice/lib/action_web_service/protocol/discovery.rb')
-rw-r--r-- | actionwebservice/lib/action_web_service/protocol/discovery.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionwebservice/lib/action_web_service/protocol/discovery.rb b/actionwebservice/lib/action_web_service/protocol/discovery.rb index a911c7d017..3d4e0818da 100644 --- a/actionwebservice/lib/action_web_service/protocol/discovery.rb +++ b/actionwebservice/lib/action_web_service/protocol/discovery.rb @@ -16,7 +16,7 @@ module ActionWebService # :nodoc: private def discover_web_service_request(action_pack_request) (self.class.read_inheritable_attribute("web_service_protocols") || []).each do |protocol| - protocol = protocol.new + protocol = protocol.create(self) request = protocol.decode_action_pack_request(action_pack_request) return request unless request.nil? end @@ -25,7 +25,7 @@ module ActionWebService # :nodoc: def create_web_service_client(api, protocol_name, endpoint_uri, options) (self.class.read_inheritable_attribute("web_service_protocols") || []).each do |protocol| - protocol = protocol.new + protocol = protocol.create(self) client = protocol.protocol_client(api, protocol_name, endpoint_uri, options) return client unless client.nil? end |