I'm in the process of building a rails app that will basically wrap around a bunch of SOAP commands.
Rather than fetch the WSDL each time I'd like to implement some sort of caching method, though I'm not quite sure on where to even start to do this.
Is there something specific to Rails that would help me out or should I just download the file through Ruby and load it in? Just looking for some sort of general direction...
The WSDL Generator component is not essential for using SOAP. Administrators can still write service calls to Content Server in SOAP if needed. The WSDL Generator provides flexibility in altering existing client applications.
What is a WSDL? WSDL, or Web Service Description Language, is an XML based definition language. It's used for describing the functionality of a SOAP based web service. WSDL files are central to testing SOAP-based services. SoapUI uses WSDL files to generate test requests, assertions and mock services.
Typically, all WSDL or XSD files are initially placed into the META-INF/wsdl directory when using Enterprise JavaBeans (EJB) or the WEB-INF/wsdl directory when using Java™.
If you're using savon then a remote WSDL will be downloaded once per client instance:
the (remote) WSDL has to be downloaded and parsed once for every client and so comes with a performance penalty
If that is too often, you can load the WSDL from a local file:
client = Savon::Client.new do
wsdl.document = '/path/to/wsdl.xml'
end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With