REXML::XPath.each(REXML::Document.new(doc),
“/transactions/transaction[RefVendeur=‘2215’]”) do |elt|
ref_wexpay = elt
puts “Order XXX is confirmed. #{ref_wexpay}”
end
----------------><8------------------------------------
Et cela fonctionne également très bien avec ruby-xpath ;)
Donc, il va falloir nous en dire un peu plus.
De mon côté :
$ uname -a
Darwin Titane.local 9.1.0 Darwin Kernel Version 9.1.0: Wed Oct 31
17:46:22 PDT 2007; root:xnu-1228.0.2~1/RELEASE_I386 i386
username = "1027305991" # your wexpay username
password = "WFSYLJWY" # your wexpay password
resp = href = ref_wexpay = "";
#vefiry that request from wexpay
#verify command is valid also in xml
begin
http = Net::HTTP.new("partenaires.wexpay.com", 443)
http.use_ssl = true
http.start do |http|
#your xml
req = Net::HTTP::Get.new("/marchands/2/transactions.xml",
no comment sur le code, sinon je crois que je vais m’énerver…
Pourquoi, c’était une faute de frappe … No Comment
également …
Sinon grégoire dans ma bonne version, étrangement quand je désactive
le https ca marche En tout ca je sais que ca ne viens pas de l’
Xpath mais un problème avec l’Https