05-29-2019 09:09 AM
Good Afternoon All,
Apologies for disturbing. Wanted to request assistance with the following issue I have. I'm using PHP along with AXLAPI.wsdl file to communicate with our Call Manager System (11.5). Up until now have been having good results, however I have hit a snag with attempting to update LineGroup members using the updateLineGroup method available in the wsdl file.
With PHP I setup an associative array with all the required parameters. For Example
$client->updateLineGroup(array("name"=>"TestLineGroup","newName"=>"RenamedLineGroup"))
The above works successfully, and I can update all the settings of the line group, except members.
Looking at the documentation, I can see that this requires LineSelectionOrder and directoryNumber. I tried the following:
$client->updateLineGroup($params)
The above returns the GUID of the Line Group like in all successful operations however no members are added. Even when I set the members to an empty array (thinking this should remove all members), the membership remains the same. Its like "members" is just ignored completely. Any assistance would be appreciated. Thank you
05-31-2019 03:59 AM
Thankfully, finally resolved this issue. David Staudt was able to offer a suitable direction to investigate. Looking at the body of the soap request after PHP had sent it, it was indeed stripping out the <members>. So for example my request would be to clear all members for a Linegroup $request = array("Name"=>"TestGroup","members"=>""). Regardless what happened the soap request would never contain the Members tag.
To resolve this I did the following I had to use SoapVar to construct the soap request.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: