change type of faultCode in marshaled SOAP faults to a QName,

and its value to 'Server' in the SOAP namespace. should fix #804.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@882 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Leon Breedt
2005-03-10 06:29:55 +00:00
parent 651ea0d39c
commit 4e8ca35def

View File

@@ -23,7 +23,7 @@ module WS
if param.value.is_a?(Exception)
detail = SOAP::Mapping::SOAPException.new(param.value)
soap_obj = SOAP::SOAPFault.new(
SOAP::SOAPString.new('Server'),
SOAP::SOAPQName.new('%s:%s' % [SOAP::SOAPNamespaceTag, 'Server']),
SOAP::SOAPString.new(param.value.to_s),
SOAP::SOAPString.new(self.class.name),
SOAP::Mapping.obj2soap(detail))