Class: AKaynak::XmlBody

Inherits:
Object
  • Object
show all
Defined in:
lib/akaynak/xml_body.rb

Class Method Summary collapse

Class Method Details

.get_currencyObject



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/akaynak/xml_body.rb', line 3

def self.get_currency()
	result = "<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:data='http://data.altinkaynak.com/'>
<soapenv:Header>
<data:AuthHeader>
<data:Username>#{AKaynak.configuration.usercode}</data:Username>
<data:Password>#{AKaynak.configuration.password}</data:Password>
</data:AuthHeader>
</soapenv:Header>
<soapenv:Body>
<data:GetCurrency/>
</soapenv:Body>
</soapenv:Envelope>"

	return result
end

.get_goldObject



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/akaynak/xml_body.rb', line 19

def self.get_gold()
	result = "<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:data='http://data.altinkaynak.com/'>
<soapenv:Header>
<data:AuthHeader>
<data:Username>#{AKaynak.configuration.usercode}</data:Username>
<data:Password>#{AKaynak.configuration.password}</data:Password>
</data:AuthHeader>
</soapenv:Header>
<soapenv:Body>
<data:GetGold/>
</soapenv:Body>
</soapenv:Envelope>"

 	#puts result
 	return result
end