lib/savon/soap.rb in savon-0.6.8 vs lib/savon/soap.rb in savon-0.7.0
- old
+ new
@@ -74,9 +74,14 @@
# the corresponding URI's (values).
def namespaces
@namespaces ||= { "xmlns:env" => SOAPNamespace[version] }
end
+ # Convenience method for setting the "xmlns:wsdl" namespace.
+ def namespace=(namespace)
+ namespaces["xmlns:wsdl"] = namespace
+ end
+
# Sets the SOAP version.
def version=(version)
@version = version if Savon::SOAPVersions.include? version
end