From: Peter Aszkenasy Date: 2007-10-11T18:57:54+09:00 Subject: Re: Betfair soap problem Many thanks for answering quickly but still the same problem after adding:- Please download the WSDL as a local file, then add the following change; => (add "elementFormDefault" line) Please see irb output below:- irb(main):010:0> wsdl_url="BFGlobalService.wsdl"=> "BFGlobalService.wsdl" irb(main):011:0> soap = SOAP::WSDLDriverFactory.new( wsdl_url ).create_rpc_driverignored attr: {}abstract ignored attr: {}nillable ignored attr: {}mixed => #> irb(main):012:0> logindetails={:locationId=>0,:password=>"********",:productId=>82,:username=>"showaprofit",:vendorSoftwareId=>0,:ipAddress=>"82.69.38.122" } => {:productId=>82, :username=>"showaprofit", :vendorSoftwareId=>0, :ipAddress=>"82.69.38.122", :password=>"********", :locationId=>0} irb(main):013:0> response=soap.login(:request=>logindetails)=> # {}sessionToken="gyfLobWGRgPw+mHI6hD67i49xGJ9nddrywn/hmYn9Hg=" {}timestamp="2007-10-11T09:51:05.569Z"> {}currency="GBP" {}errorCode="OK" {}minorErrorCode=# {}validUntil="0001-01-01T00:00:00.000Z">> irb(main):014:0> apiRequestHeader={:clientStamp => 0,:sessionToken => response.result.header.sessionToken}=> {:sessionToken=>"gyfLobWGRgPw+mHI6hD67i49xGJ9nddrywn/hmYn9Hg=", :clientStamp=>0} irb(main):015:0> response=soap.getActiveEventTypes(:request =>{:header=>apiRequestHeader})=> # {}sessionToken=# {}timestamp="2007-10-11T09:54:06.142Z"> {}eventTypeItems=# {}minorErrorCode=# {}errorCode="API_ERROR">> irb(main):016:0> -- Posted via http://www.ruby-forum.com/.