[#8484] strptime fails to properly parse certain inputs — <noreply@...>

Bugs item #5263, was opened at 2006-08-01 23:14

13 messages 2006/08/02
[#8485] Re: [ ruby-Bugs-5263 ] strptime fails to properly parse certain inputs — Yukihiro Matsumoto <matz@...> 2006/08/02

Hi,

[#8538] Re: [ ruby-Bugs-5263 ] strptime fails to properly parse certain inputs — nobu@... 2006/08/06

Hi,

[#8561] sandbox timers & block scopes — why the lucky stiff <ruby-core@...>

Two puzzles I am trying to solve:

28 messages 2006/08/08
[#8624] Re: sandbox timers & block scopes — why the lucky stiff <ruby-core@...> 2006/08/15

raise ThisDecayingInquisition, "anyone? anyone at all?"

[#8627] Re: sandbox timers & block scopes — MenTaLguY <mental@...> 2006/08/15

On Wed, 2006-08-16 at 00:35 +0900, why the lucky stiff wrote:

[#8628] Re: sandbox timers & block scopes — why the lucky stiff <ruby-core@...> 2006/08/15

On Wed, Aug 16, 2006 at 02:46:30AM +0900, MenTaLguY wrote:

[#8629] Re: sandbox timers & block scopes — "Charles O Nutter" <headius@...> 2006/08/15

On 8/15/06, why the lucky stiff <ruby-core@whytheluckystiff.net> wrote:

[#8690] a ruby-core primer — why the lucky stiff <ruby-core@...>

Hello, all. I've been working on the ruby-core page for the new Ruby site.

21 messages 2006/08/22

Help Needed: <SOAP/WSDL/BETFAIR>

From: tad.bochan@...
Date: 2006-08-22 14:46:16 UTC
List: ruby-core #8681
Hi,

I have been making a foray into the world of SOAP/WSDL etc and having
been encouraged with the success of running the googleapi demo code,
I thought I would have a go with Betfair.

Alas, things are not going well,
and I'm not sure if I'm doing something wrong
or  if the library module 'soap/wsdlDriver' is faulty
or  does not support the BFService.wsdl document.

The login request sequence works great,
but any other requests fail (eg., getAllEventTypes, logout)
because the parameters do not get generated
in the request document which is sent to Betfair,
which seems to indicate a bug in soap/wsdlDriver.rb,
or in the way I have setup the parameters.

I have included the wiredumps for the 'login' and 'getAllEventTypes'
requests
as comments in the codefollowing, and you will see that
the <n1:request> element for 'login' is formatted as per the parameters
passed to login ,
but the one for 'getAllEventTypes' is empty.

Any suggestions ?
(I tried to debug the soap code, but it was all beyond my abilities)

Regards,

Tad


#<Docs>
#http://bdphelp.betfair.com/API4/V1/API4.1aOnlineHelp/wwhelp/wwhimpl/js/html/wwhelp.htm
#</Docs>
require 'soap/wsdlDriver'
wsdl_url="https://api.betfair.com/betex-api-public-ws/v2/BFService.wsdl"
puts ">>CONNECT<<"
soap = SOAP::WSDLDriverFactory.new( wsdl_url ).create_rpc_driver
soap.wiredump_file_base,soap.wiredump_dev = "bdp",STDOUT
puts "------------------------------------------------"
print ">>LOGIN<<"
logindetails={:locationId      =>0,
              :password        =>"mypassword",
              :productId       =>82,
              :username        =>"myusername",
              :vendorSoftwareId=>0
             }
response=soap.login(:request=>logindetails) ;
exit unless response.result.errorCode=="OK"

#   WIREDUMP OUTPUT FROM LOGIN REQUEST :-
#-<?xml version="1.0" encoding="utf-8" ?>
#-<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
#-    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
#-    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
#-  <env:Body>
#-    <n1:login xmlns:n1="http://www.betfair.com/publicapi/BFServiceV2/">
#-      <n1:request>
#-        <locationId>0</locationId>
#-        <password>mypassword</password>
#-        <productId>82</productId>
#-        <username>myusername</username>
#-        <vendorSoftwareId>0</vendorSoftwareId>
#-      </n1:request>
#-    </n1:login>
#-  </env:Body>
#-</env:Envelope>
puts "------------------------------------------------"

print ">>GET ALL EVENT TYPES<<"
apiRequestHeader={:clientStamp  => 0,:sessionToken =>
response.result.header.sessionToken}
response=soap.getAllEventTypes(:request=>{:header=>apiRequestHeader,:locale=>"en"})
exit unless response.result.errorCode=="OK"

#   WIREDUMP OUTPUT FROM 'getAllEventTypes' REQUEST :-
#<?xml version="1.0" encoding="utf-8" ?>
#<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
#    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
#    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
#  <env:Body>
#    <n1:getAllEventTypes
xmlns:n1="http://www.betfair.com/publicapi/BFServiceV2/">
#      <n1:request>
#      </n1:request>
#    </n1:getAllEventTypes>
#  </env:Body>
#</env:Envelope>

puts "------------------------------------------------"
print ">>LOGOUT<<"
apiRequestHeader={:clientStamp  => 0,:sessionToken =>
response.result.header.sessionToken}
response=soap.logout(:request=>{:header=>apiRequestHeader})
p [response.result.header.errorCode,response.result.errorCode]
exit unless response.result.errorCode=="OK"
puts "------------------------------------------------"
puts "It all worked OK"


This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

                ---------------------------------------------

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.


In This Thread

Prev Next