Permalink
Browse files

Changed the criteria for accepting valid WSA headers, to adhere with …

  • Loading branch information...
1 parent 749eb01 commit 25c78b99dc8c05925e21df16974ed7a4ffb2cea6 @redbar0n committed Jan 28, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 lib/savon/wsa.rb
View
9 lib/savon/wsa.rb
@@ -29,7 +29,14 @@ def []=(key, value)
attr_accessor :action, :message_id, :reply_to, :to
def ws_addressing?
- action && message_id && reply_to && to
+ ret_val = false
+ if (action && to)
+ ret_val = true
+ if reply_to && !message_id
+ ret_val = false
+ end
+ end
+ ret_val
end
# Returns the XML for a WSA header.

0 comments on commit 25c78b9

Please sign in to comment.