Class: PowaApi::PowaService

Inherits:
Object
  • Object
show all
Defined in:
lib/powa_api/powa_service.rb

Direct Known Subclasses

OrderService, ProductService

Class Method Summary collapse

Class Method Details

.get_publish_infoObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/powa_api/powa_service.rb', line 4

def self.get_publish_info
  client = Savon.client wsdl

  response = client.request :get_publish_info do
    soap.xml do |xml|
      xml.soapenv(:Envelope, namespaces) do |xml|

        header_block(xml)

        xml.soapenv(:Body) do |xml|
          xml.urn(:GetPublishInfoRequest) do |xml|
         end
        end
      end
    end
  end

  response.to_array(:get_publish_info_response).first
end