Skip to content

Commit

Permalink
README: Add example on how to provide the wsdl document as a string (#…
Browse files Browse the repository at this point in the history
…968)

as requested in #720 (comment)
  • Loading branch information
fiedl authored Feb 5, 2022
1 parent 6ab5f98 commit 54ad125
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ require 'savon'
# create a client for the service
client = Savon.client(wsdl: 'http://service.example.com?wsdl')

# or: create a client with a wsdl provided as a string
client = Savon.client do |config|
wsdl_content = File.read("/path/to/wsdl")
config.wsdl wsdl_content
end

client.operations
# => [:find_user, :list_users]

Expand Down

0 comments on commit 54ad125

Please sign in to comment.