method

new

Importance_2
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ActionWebService::Client::Soap
  • 1.0.0 (0)
  • 1.1.6 (0)
  • 1.2.6 (0)
  • 2.0.3
  • 2.1.0
  • 2.2.1
  • 2.3.8
  • 3.0.0
  • 3.0.9
  • 3.1.0
  • 3.2.1
  • 3.2.8
  • 3.2.13
  • 4.0.2
  • 4.1.8
  • 4.2.1
  • 4.2.7
  • 4.2.9
  • 5.0.0.1
  • 5.1.7
  • 5.2.3
  • 6.0.0
  • 6.1.3.1
  • 6.1.7.7
  • 7.0.0
  • 7.1.3.2
  • 7.1.3.4
  • What's this?

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1.2.6) is shown here.

These similar methods exist in v7.1.3.2:

new(api, endpoint_uri, options={}) public

Creates a new web service client using the SOAP RPC protocol.

api must be an ActionWebService::API::Base derivative, and endpoint_uri must point at the relevant URL to which protocol requests will be sent with HTTP POST.

Valid options:

:namespace
If the remote server has used a custom namespace to declare its custom types, you can specify it here. This would be the namespace declared with a [WebService(Namespace = "http://namespace")] attribute in .NET, for example.
:driver_options
If you want to supply any custom SOAP RPC driver options, you can provide them as a Hash here

The :driver_options option can be used to configure the backend SOAP RPC driver. An example of configuring the SOAP backend to do client-certificate authenticated SSL connections to the server:

  opts = {}
  opts['protocol.http.ssl_config.verify_mode'] = 'OpenSSL::SSL::VERIFY_PEER'
  opts['protocol.http.ssl_config.client_cert'] = client_cert_file_path
  opts['protocol.http.ssl_config.client_key'] = client_key_file_path
  opts['protocol.http.ssl_config.ca_file'] = ca_cert_file_path
  client = ActionWebService::Client::Soap.new(api, 'https://some/service', :driver_options => opts)
Show source
Register or log in to add new notes.