Class: RBook::TitlePage::TitleQueryPortType

Inherits:
SOAP::RPC::Driver
  • Object
show all
Defined in:
lib/rbook/titlepage/titlepage_driver.rb

Constant Summary collapse

DefaultEndpointUrl =
"http://www.titlepage.com.au/ws/TitleQuery.php"
MappingRegistry =
::SOAP::Mapping::Registry.new
Methods =
[
  [ XSD::QName.new("http://www.titlepage.com/ws", "Login"),
    "http://www.titlepage.com.au/ws/TitleQuery.php/Login",
    "login",
    [ ["in", "UserName", ["::SOAP::SOAPString"]],
      ["in", "Password", ["::SOAP::SOAPString"]],
      ["retval", "Token", ["::SOAP::SOAPString"]] ],
    { :request_style =>  :rpc, :request_use =>  :encoded,
      :response_style => :rpc, :response_use => :encoded }
  ],
  [ XSD::QName.new("http://www.titlepage.com/ws", "SearchByISBN"),
    "http://www.titlepage.com.au/ws/TitleQuery.php/SearchByISBN",
    "searchByISBN",
    [ ["in", "Token", ["::SOAP::SOAPString"]],
      ["in", "ISBN", ["::SOAP::SOAPString"]],
      ["retval", "SearchResults", ["SearchResults", "urn:TitleQuery", "SearchResults"]] ],
    { :request_style =>  :rpc, :request_use =>  :encoded,
      :response_style => :rpc, :response_use => :encoded }
  ],
  [ XSD::QName.new("http://www.titlepage.com/ws", "SearchByEAN"),
    "http://www.titlepage.com.au/ws/TitleQuery.php/SearchByEAN",
    "searchByEAN",
    [ ["in", "Token", ["::SOAP::SOAPString"]],
      ["in", "EAN", ["::SOAP::SOAPString"]],
      ["retval", "SearchResults", ["SearchResults", "urn:TitleQuery", "SearchResults"]] ],
    { :request_style =>  :rpc, :request_use =>  :encoded,
      :response_style => :rpc, :response_use => :encoded }
  ],
  [ XSD::QName.new("http://www.titlepage.com/ws", "Logout"),
    "http://www.titlepage.com.au/ws/TitleQuery.php/Logout",
    "logout",
    [ ["in", "token", ["::SOAP::SOAPString"]] ],
    { :request_style =>  :rpc, :request_use =>  :encoded,
      :response_style => :rpc, :response_use => :encoded }
  ]
]

Instance Method Summary collapse

Constructor Details

#initialize(endpoint_url = nil) ⇒ TitleQueryPortType

Returns a new instance of TitleQueryPortType.



109
110
111
112
113
114
# File 'lib/rbook/titlepage/titlepage_driver.rb', line 109

def initialize(endpoint_url = nil)
  endpoint_url ||= DefaultEndpointUrl
  super(endpoint_url, nil)
  self.mapping_registry = MappingRegistry
  init_methods
end