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.3.11 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.3.10 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.3.9 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.3.8 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.3.7 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.3.6 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.3.3 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.3.2 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.3.1 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.2.32 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.2.31 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.2.30 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.2.29 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.2.28 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.2.27 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.2.26 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.2.25 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.2.23 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.2.22 lib/soaspec/generator/lib/new_soap_service.rb.erb
soaspec-0.2.21 lib/soaspec/generator/lib/new_soap_service.rb.erb