Skip to content

savonrb/wasabi

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fa04747 · Feb 20, 2024
Mar 27, 2023
Feb 13, 2024
Feb 20, 2024
Feb 20, 2024
Jul 3, 2011
Jul 3, 2011
Jul 20, 2020
Feb 13, 2024
Feb 13, 2024
Jul 3, 2011
Jan 25, 2022
Aug 4, 2020
Jan 8, 2024

Repository files navigation

Wasabi

A simple WSDL parser.

Test Gem Version Code Climate Coverage Status

Installation

Wasabi is available through RubyGems and can be installed via:

$ gem install wasabi

Probably, you are using this gem as a dependency of some other gem. But, if you want to control which version of Wasabi to pick, you can add a gem line to your Gemfile:

gem "wasabi"

Getting started

document = Wasabi.document File.read("some.wsdl")

Get the SOAP endpoint:

document.endpoint
# => "http://soap.example.com"

Get the target namespace:

document.namespace
# => "http://v1.example.com"

Check whether elementFormDefault is set to :qualified or :unqualified:

document.element_form_default
# => :qualified

Get a list of available SOAP actions (snakecase for convenience):

document.soap_actions
# => [:create_user, :find_user]

Get a map of SOAP action Symbols, their input tag and original SOAP action name:

document.operations
# => { :create_user => { :input => "createUser", :action => "createUser" },
# =>   :find_user => { :input => "findUser", :action => "findUser" } }