Hi Hiroshi (my Hero!)

Yes! event["id"] worked just great.
I have included the wiredumps as requested.
I discovered a utility called WebServiceStudio20
<http://www.schultz.co.nz/Plone/java/WebserviceStudio20.zip/view>
which I found to be very useful on this project to
look at the xml generated.
You just point it to the address of the wsdl file.

Thank you very much for your help.
Tad


WIREDUMP for getActiveEventTypes 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:getActiveEventTypes 
xmlns:n1="http://www.betfair.com/publicapi/BFServiceV2/">
      <n1:request>
        <header>
          <clientStamp>0</clientStamp>
          <sessionToken>gvBJUBrywxgQuEaTxW3gmNK40ndscv5CRdaeG01z1dv5PF2HRxj5nA==</sessionToken>
        </header>
        <locale>en</locale>
      </n1:request>
    </n1:getActiveEventTypes>
  </env:Body>
</env:Envelope>

WIREDUMP for getActiveEventTypes response
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:n2="http://www.betfair.com/publicapi/types/v2/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><n:getActiveEventTypesResponse 
xmlns:n="http://www.betfair.com/publicapi/BFServiceV2/"><n:Result 
xsi:type="n2:GetEventTypesResp"><header 
xsi:type="n2:APIResponseHeader"><errorCode 
xsi:type="n2:APIErrorEnum">OK</errorCode><minorErrorCode 
xsi:nil="1"/><sessionToken 
xsi:type="xsd:string">gvBJUBrywxgQuEaTxW3gmNK40ndscv5CRdaeG01z1dv5PF2HRxj5nA==</sessionToken><timestamp 
xsi:type="xsd:dateTime">2006-09-03T15:48:04.766Z</timestamp></header><eventTypeItems 
xsi:type="n2:ArrayOfEventType"><n2:EventType xsi:type="n2:EventType"><id 
xsi:type="xsd:int">6423</id><name xsi:type="xsd:string">American 
Football</name><nextMarketId 
xsi:type="xsd:int">0</nextMarketId></n2:EventType><n2:EventType 
xsi:type="n2:EventType"><id xsi:type="xsd:int">61420</id><name 
xsi:type="xsd:string">Australian Rules</name><nextMarketId 
xsi:type="xsd:int">0</nextMarketId></n2:EventType><n2:EventType 
xsi:type="n2:EventType"><id xsi:type="xsd:int">7511</id><name 
xsi:type="xsd:string">Baseball</name><nextMarketId 
xsi:type="xsd:int">0</nextMarketId></n2:EventType><n2:EventType 
xsi:type="n2:EventType"><id xsi:type="xsd:int">7522</id><name 
xsi:type="xsd:string">Basketball</name><nextMarketId 
xsi:type="xsd:int">0</nextMarketId></n2:EventType><n2:EventType 
xsi:type="n2:EventType"><id xsi:type="xsd:int">6</id><name 
xsi:type="xsd:string">Boxing</name><nextMarketId 
xsi:type="xsd:int">0</nextMarketId></n2:EventType><n2:EventType 
xsi:type="n2:EventType"><id xsi:type="xsd:int">982477</id><name 
xsi:type="xsd:string">Bridge</name><nextMarketId 
xsi:type="xsd:int">0</nextMarketId></n2:EventType><n2:EventType 
xsi:type="n2:EventType"><id xsi:type="xsd:int">4968929</id><name 
xsi:type="xsd:string">Combat Sports</name><nextMarketId 
xsi:type="xsd:int">0</nextMarketId></n2:EventType><n2:EventType 
xsi:type="n2:EventType"><id xsi:type="xsd:int">4</id><name 
xsi:type="xsd:string">Cricket</name><nextMarketId 
xsi:type="xsd:int">0</nextMarketId></n2:EventType><n2:EventType 
xsi:type="n2:EventType"><id xsi:type="xsd:int">11</id><name 
xsi:type="xsd:string">Cycling</name><nextMarketId 
xsi:type="xsd:int">0</nextMarketId></n2:EventType><n2:EventType 
xsi:type="n2:EventType"><id xsi:type="xsd:int">3503</id><name 
xsi:type="xsd:string">Darts</name><nextMarketId 
xsi:type="xsd:int">0</nextMarketId></n2:EventType><n2:EventType 
xsi:type="n2:EventType"><id xsi:type="xsd:int">6231</id><name 
xsi:type="xsd:string">Financial Bets</name><nextMarketId 
xsi:type="xsd:int">0</nextMarketId></n2:EventType><n2:EventType 
xsi:type="n2:EventType"><id xsi:type="xsd:int">2152880</id><name 
xsi:type="xsd:string">Gaelic Games</name><nextMarketId 
xsi:type="xsd:int">0</nextMarketId></n2:EventType><n2:EventType 
xsi:type="n2:EventType"><id xsi:type="xsd:int">3</id><name 
xsi:type="xsd:string">Golf</name><nextMarketId 
xsi:type="xsd:int">0</nextMarketId></n2:EventType><n2:EventType 
xsi:type="n2:EventType"><id xsi:type="xsd:int">4339</id><name 
xsi:type="xsd:string">Greyhound Racing</name><nextMarketId 
xsi:type="xsd:int">0</nextMarketId></n2:EventType><n2:EventType 
xsi:type="n2:EventType"><id xsi:type="xsd:int">15</id><name 
xsi:type="xsd:string">Greyhound - Todays Card</name><nextMarketId 
xsi:type="xsd:int">20041615</nextMarketId></n2:EventType><n2:EventType 
xsi:type="n2:EventType"><id xsi:type="xsd:int">468328</id><name 
xsi:type="xsd:string">Handball</name><nextMarketId 
xsi:type="xsd:int">0</nextMarketId></n2:EventType><n2:EventType 
xsi:type="n2:EventType"><id xsi:type="xsd:int">7523</id><name 
xsi:type="xsd:string">Hockey</name><nextMarketId 
xsi:type="xsd:int">0</nextMarketId></n2:EventType><n2:EventType 
xsi:type="n2:EventType"><id xsi:type="xsd:int">7</id><name 
xsi:type="xsd:string">Horse Racing</name><nextMarketId 
xsi:type="xsd:int">0</nextMarketId></n2:EventType><n2:EventType 
xsi:type="n2:EventType"><id xsi:type="xsd:int">13</id><name 
xsi:type="xsd:string">Horse Racing - Todays Card</name><nextMarketId 
xsi:type="xsd:int">20040862</nextMarketId></n2:EventType><n2:EventType 
xsi:type="n2:EventType"><id xsi:type="xsd:int">7524</id><name 
xsi:type="xsd:string">Ice Hockey</name><nextMarketId 
xsi:type="xsd:int">0</nextMarketId></n2:EventType><n2:EventType 
xsi:type="n2:EventType"><id xsi:type="xsd:int">8</id><name 
xsi:type="xsd:string">Motor Sport</name><nextMarketId 
xsi:type="xsd:int">0</nextMarketId></n2:EventType><n2:EventType 
xsi:type="n2:EventType"><id xsi:type="xsd:int">315220</id><name 
xsi:type="xsd:string">Poker</name><nextMarketId 
xsi:type="xsd:int">0</nextMarketId></n2:EventType><n2:EventType 
xsi:type="n2:EventType"><id xsi:type="xsd:int">2378961</id><name 
xsi:type="xsd:string">Politics</name><nextMarketId 
xsi:type="xsd:int">0</nextMarketId></n2:EventType><n2:EventType 
xsi:type="n2:EventType"><id xsi:type="xsd:int">1477</id><name 
xsi:type="xsd:string">Rugby League</name><nextMarketId 
xsi:type="xsd:int">0</nextMarketId></n2:EventType><n2:EventType 
xsi:type="n2:EventType"><id xsi:type="xsd:int">5</id><name 
xsi:type="xsd:string">Rugby Union</name><nextMarketId 
xsi:type="xsd:int">0</nextMarketId></n2:EventType><n2:EventType 
xsi:type="n2:EventType"><id xsi:type="xsd:int">1</id><name 
xsi:type="xsd:string">Soccer</name><nextMarketId 
xsi:type="xsd:int">0</nextMarketId></n2:EventType><n2:EventType 
xsi:type="n2:EventType"><id xsi:type="xsd:int">14</id><name 
xsi:type="xsd:string">Soccer - Fixtures</name><nextMarketId 
xsi:type="xsd:int">0</nextMarketId></n2:EventType><n2:EventType 
xsi:type="n2:EventType"><id xsi:type="xsd:int">10</id><name 
xsi:type="xsd:string">Special Bets</name><nextMarketId 
xsi:type="xsd:int">0</nextMarketId></n2:EventType><n2:EventType 
xsi:type="n2:EventType"><id xsi:type="xsd:int">4726642</id><name 
xsi:type="xsd:string">Surfing</name><nextMarketId 
xsi:type="xsd:int">0</nextMarketId></n2:EventType><n2:EventType 
xsi:type="n2:EventType"><id xsi:type="xsd:int">2</id><name 
xsi:type="xsd:string">Tennis</name><nextMarketId 
xsi:type="xsd:int">0</nextMarketId></n2:EventType><n2:EventType 
xsi:type="n2:EventType"><id xsi:type="xsd:int">2901849</id><name 
xsi:type="xsd:string">Water Polo</name><nextMarketId 
xsi:type="xsd:int">0</nextMarketId></n2:EventType></eventTypeItems><minorErrorCode 
xsi:nil="1"/><errorCode 
xsi:type="n2:GetEventsErrorEnum">OK</errorCode></n:Result></n:getActiveEventTypesResponse></soap:Body></soap:Envelope>




-- 
Posted via http://www.ruby-forum.com/.