I apologize for dumping my not fully thought trough thoughts on you guys, but I hope to validate if I am on the right track.
At a customer we have a product that integrates against a Web Service. This solution is requested by other customers. Our product use the excellent Savon gem. Unfortunately (in my book) our current solution downloads the WSDL directly and there is no way of validating change in Web Service. Things either work or they brake unpredictable. The difference between working with SOAP messages in Ruby versus static typed languages is that we don't generate proxy classes. I tried to get around this by exporting the WSDL to disk with SoapUI, writing unit tests and mocking the service in Savon, but then I learned that Savon can't handle wsdl:import correctly. If I want to get around that, I assume I have to flatten the WSDL by hand - but I think that's asking to much if we need to do more than one or two integrations.
Instead I am thinking about moving the library to jRuby (Ruby on Java) and just generate Java proxy classes that I call from Ruby code.
Thanks in advance.
At a customer we have a product that integrates against a Web Service. This solution is requested by other customers. Our product use the excellent Savon gem. Unfortunately (in my book) our current solution downloads the WSDL directly and there is no way of validating change in Web Service. Things either work or they brake unpredictable. The difference between working with SOAP messages in Ruby versus static typed languages is that we don't generate proxy classes. I tried to get around this by exporting the WSDL to disk with SoapUI, writing unit tests and mocking the service in Savon, but then I learned that Savon can't handle wsdl:import correctly. If I want to get around that, I assume I have to flatten the WSDL by hand - but I think that's asking to much if we need to do more than one or two integrations.
Instead I am thinking about moving the library to jRuby (Ruby on Java) and just generate Java proxy classes that I call from Ruby code.
- Is this a good approach for consuming Web Services in "Ruby"?
- Is it easy to call Java SOAP client and consume the Web Service response from jRuby?
- I don't have experience with Java SOAP clients. If Web Service change, do we get good validation or error messages from client?
Thanks in advance.