| Module | Commands::SoapDriver |
| In: |
commands.rb
|
SoapDriver is meant to be used as a mixin for every Dispatcher or NamespaceDispatcher that requires SOAP operations with the dradis server.
The module provides with a @driver variable to the including code. This variable can be used to access remote SOAP services.
Get the driver ready to perform a new query. If @driver has not been initialized this is done, otherwise the driver is resetted.
# File commands.rb, line 69
69: def setup_soap()
70: if ($driver == nil)
71: wsdlfile = $config.get_option(:wsdluri)
72: $driver = SOAP::WSDLDriverFactory.new(wsdlfile).create_rpc_driver
73: end
74: if @driver == nil
75: @driver = $driver
76: else
77: @driver.reset_stream
78: end
79: end