06-09-2022 07:58 AM
Hello,
I'm facing an issue since upgrading from 10.6 -> 12.5 that when I use getLine, I am getting a result of "None" under 'associatedDevices', when I know this particular directory number is attached to a number of phones. Anyone have any ideas what's going on?
getLine_data = {
'pattern': ''71911,
'routePartitionName': 'PAR_YORK_ONNET'
}
try:
getLine_resp = service.getLine(**getLine_data)
RESPONSE:
'return': { 'line': { 'pattern': '71911', 'description': None, 'usage': 'Device', 'routePartitionName': { '_value_1': 'PAR_YORK_ONNET', 'uuid': '{2AC30C60-DC10-4794-BF22-E6A022AF2740}'
.............
'associatedDevices': None,
'useEnterpriseAltNum': None,
'useE164AltNum': None,
'active': None,
Solved! Go to Solution.
06-09-2022 10:46 AM
Can you try the request in SoapUI and see what the response returns? That's a way to determine if the problem is with AXL or if it's with either your code or the Python library.
06-09-2022 09:03 AM
You have an open double-quote:
'pattern': ''71911,
06-09-2022 09:17 AM
Apologies, that's a typo in my post, the actual code is correct though. Here's what the original looks like
USERDATA = input("Enter the UserID of the person you are setting up: ")
getLine_data = {
'pattern': USERDATA,
'routePartitionName': 'PAR_YORK_ONNET'
}
try:
getLine_resp = service.getLine(**getLine_data)
06-09-2022 10:46 AM
Can you try the request in SoapUI and see what the response returns? That's a way to determine if the problem is with AXL or if it's with either your code or the Python library.
06-09-2022 12:24 PM
Great idea! Sometimes I forget the basics.
I'm getting better results on SOAP UI so I'll retake a look at my python environment, thanks alot!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide