forums Albums groups
Go Back   Betfair Developers Program Forum > Developers Program > Old Forum Archive
Open A Betfair Account
 Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Display Modes
  #1  
Old 02-05-2009, 05:26 PM
forumbdpwebadmin forumbdpwebadmin is offline
Forum Administrator
 
Join Date: Sep 2008
Posts: 149
Default PHP - Question about SoapClient

ZeRg


Hi.

I'm trying to use api5.php sample. But I can't find methods SoapClient->login() and SoapClient->getMarket() etc.
As I understood this script uses changed soapclient class.
Please tell me where I can download changed SoapClient, or how can I solve this problem.
Best regards Alex.








Fred77




Re: Question about SoapClient (php)
Posted on 2/16/2007 7:49 AM


Sorry, I don't really understand your question.

If you are referring to my script then this is now broken with the latest API updates.

An IP address field needs adding to the login parameters, it can be left blank unless your software is acting as a proxy or BDP tell you otherwise, in which case it needs setting to the IP address of the end user.

e.g. change this line:

$result = $BFGlobalSoapClient->login(array("request"=>array("username"=>$usernam e, "password"=>$password, "productId"=>$productid, "vendorSoftwareId"=>$vendorid, "locationId"=>$location)));

to:

$result = $BFGlobalSoapClient->login(array("request"=>array("username"=>$usernam e, "password"=>$password, "ipAddress"=>"", "productId"=>$productid, "vendorSoftwareId"=>$vendorid, "locationId"=>$location)));






Fred77



Re: Question about SoapClient (php)
Posted on 2/16/2007 8:02 AM


Ah, think I just understood your problem, the script only works on PHP5 using the inbuilt soap library.

Maybe you're using PHP4 or your PHP5 doesn't have soap enabled, I dunno.



 

Tags
php

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie question - session tokens silentbob API Services 3 03-08-2009 05:31 PM
Question re Session Token Mumbles0 API Services 2 02-23-2009 10:28 AM
Throttle Question forumbdpwebadmin Old Forum Archive 0 02-03-2009 02:53 PM


All times are GMT. The time now is 06:52 PM.

BETFAIR® and the BETFAIR LOGO are registered trade marks of The Sporting Exchange Limited. Data on Betfair website(s) (including pricing data) is protected by © and database rights. It may not be used for any purpose without a licence. © The Sporting Exchange Limited. All rights reserved.