Soap client for ruby โ€‹โ€‹1.9 and rails

So far, I have used soap4r as my SOAP client with Ruby 1.8.x, but now I'm moving on to Ruby 1.9.x. Unfortunately, soap4r does not work with Ruby 1.9.x. I just get an โ€œinvalid multi-ticket escapeโ€ that seems unsolvable, mainly because the soap4r stone has not been updated since 2007, so I assume the project is dead.

I looked at handsoap, but there I need to map all things manually, it will take several days to do it manually, this is a great API.

Is there any other click for soap that automatically matches all soap-xml materials with ruby โ€‹โ€‹objects (soap4r link) and vice versa?

+4
source share
2 answers

Savon abstracts the XML part in Ruby Hash. Take a look: http://github.com/rubiii/savon

+5
source

If this is a problem with handsoap, then you can use a hash gem with handsoap. Hashie converts xml elements to instance method calls if that helps.

Soap4R is a pain, but I like it for one reason, that is, the stand-alone soap server it provides. This greatly simplifies testing of external soap services by creating your own custom soap server, which simply mocks the answer, so you do not need to request an external soap server for integration tests, and secondly, it does not exit the code associated with an inactive soap client.

+3
source

Source: https://habr.com/ru/post/1300246/


All Articles