Skip to content

Commit

Permalink
Improve soap version detection
Browse files Browse the repository at this point in the history
The soap 1.2 namespace might be present but unused
  • Loading branch information
jonleighton committed Dec 9, 2013
1 parent d46998b commit b51be5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lolsoap/wsdl_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def operations
end

def soap_version
@soap_version ||= namespaces.values.include?(SOAP_1_2) ? '1.2' : '1.1'
@soap_version ||= doc.at_xpath("//s2:*", "s2" => SOAP_1_2) ? '1.2' : '1.1'
end

def ns
Expand Down

0 comments on commit b51be5c

Please sign in to comment.