Sha256: da85b36dc2eb4b1b02e5869cf05387c9ab99c6357ced10027c2955a0979ac3a0

Contents?: true

Size: 753 Bytes

Versions: 4

Compression:

Stored size: 753 Bytes

Contents

require 'soaspec'

# This class is not part of the gem. It's an example of a class you can make
# to describe your APIs. Usually this would exist in the 'lib' directory
# Common configuration for the Savon client should go here
class BLZService < Soaspec::SoapHandler
  # Add to or override default Savon client options
  def savon_options
    {
      wsdl: 'http://localhost:4999/BLZService?wsdl'
    }
  end

  # # Specifying that get_weather_result must be present in the SOAP response
  mandatory_elements [:plz]

  # Example of xpath value that must be true for all success scenarios
  mandatory_xpath_values 'ns1:bezeichnung' => 'Deutsche Bank'

  # Example of setting an attribute on the root XML element
  root_attributes 'Version' => '1'

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
soaspec-0.0.81 lib/soaspec/generator/lib/blz_service.rb.erb
soaspec-0.0.80 lib/soaspec/generator/lib/blz_service.rb.erb
soaspec-0.0.79 lib/soaspec/generator/lib/blz_service.rb.erb
soaspec-0.0.78 lib/soaspec/generator/lib/blz_service.rb.erb