Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Oct 27, 2020 3:21 am
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: SOAP API dulicated entries in results
PostPosted: Fri May 04, 2012 1:48 pm 
Offline

Joined: Wed Nov 16, 2011 11:16 am
Posts: 8
Hi

Working on getting the SOAP webservices running with some success. However, I have q query.

Running functions such as Get_Countries the resulting array of results contains duplicates for each field returned, once with the numeric index key and the other with the actual field name as key.

See the example output below. Any way to make it so that only the field name indexes get returned? Or am I missing something obvious?

Thanks

############# GET COUNTRIES #############
Array
(
[0] => Array
(
[0] => 1
[id] => 1
[1] => AFG
[countrycode] => AFG
[2] => Afghanistan
[countryname] => Afghanistan
)

[1] => Array
(
[0] => 2
[id] => 2
[1] => ALB
[countrycode] => ALB
[2] => Albania
[countryname] => Albania
)

[2] => Array
(
[0] => 3
[id] => 3
[1] => DZA
[countrycode] => DZA
[2] => Algeria
[countryname] => Algeria
)


Top
 Profile  
 
 Post subject: Re: SOAP API dulicated entries in results
PostPosted: Fri May 04, 2012 3:45 pm 
Offline

Joined: Wed Nov 16, 2011 11:16 am
Posts: 8
Replying to my own question.

I have found that setting $this->DBHandle->SetFetchMode(ADODB_FETCH_ASSOC); will fix it, at least in my own functions.

I also notice "$ADODB_FETCH_MODE = ADODB_FETCH_ASSOC" in Class.A2Billing.php and in Class.Connection.php but both commented out.

Anyone know what the story is?

Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 
Auto Dialer Software


All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group