Sha256: 98e5a0d374f3c8b307b0be1896b884c34e261a257d816a4bd6e3af1424a9127c

Contents?: true

Size: 1.09 KB

Versions: 40

Compression:

Stored size: 1.09 KB

Contents

# This class represent SOAP Api calls for the <%= @name %> API
class <%= @name %> < Soaspec::SoapHandler
  # Wsdl for <%= @name %>
  def savon_options
      {
          # wsdl 'https://my_host/api?wsdl' TODO: Change this to the wsdl that this SOAP service uses
      }
  end

  ## Verifying on response

  # Values that must have a certain value for 'success scenario' shared example
  # mandatory_json_values '$..status' => 'available'

  # Elements that must be in the response for 'success scenario' shared example
  # Below will expect an element at the path 'tags' to be present
  # mandatory_elements :tags

  # Use this to extract the value of either a JSON (JSONPath) or XML (Xpath) element. 'element_name' is the method that will be
  # generated on an Exchange to obtain it
  # element :element_name, 'element_path'

  # Use this to extract an attribute from XML. If the name of the method and the attribute name are the same then only one parameter is
  # needed
  # attribute(:attribute_method_name, 'name_of_attribute')

  # Set an attribute on the root XML element
  # root_attributes 'Version' => '1'

end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
soaspec-0.2.20 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.2.19 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.2.18 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.2.17 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.2.16 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.2.15 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.2.14 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.2.13 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.2.12 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.2.11 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.2.10 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.2.9 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.2.8 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.2.7 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.2.5 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.2.4 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.2.3 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.2.2 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.2.1 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.2.0 lib/soaspec/generator/lib/new_soap_service.rb.erb