WsdlMapper is a ruby gem to communicate with SOAP services. It provides:
- A generator to create classes from
- (De)Serializers to parse and write
XMLfiles to/from instances of these classes.
- A generator to create SOAP clients from
Currently it supports only WSDL 1.1, but with Document or RPC message style and literal or encoded style.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install wsdl-mapper
$ wsdl-mapper generate all some-schema.xsd --out some-schema --module SomeSchema
Will generate models and (de)serializers for the given
XSD schema. The generated classes are all nested within the
SomeSchema and are put under
pwd == current working directory).
For all available options, see
$ wsdl-mapper help generate
SOAP / WSDL
$ wsdl-mapper generate svc some-svc.wsdl --out some-schema --module SomeSchema
Will generate models, (de)serializers and a client for the given
- loosen the dependency on concurrent-ruby, make the async way optional.
- loosen the dependency on faraday, make the user choose which http library.
- refactor code to mitigate the naming mess. (there are so many different domain objects called name or type, which causes a mess in naming variables and methods. probably it makes sense to define acronyms and use them consistently throughout the code.)
- add more documentation, especially:
- how-tos / tutorials / walkthroughs
- inline documentation
- add logging to parsing + generating
- Fork it ( https://github.com/kayoom/wsdl-mapper/fork )
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create a new Pull Request