cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1110
Views
10
Helpful
3
Replies

Python - Zeep - Failing to return getLineGroup

collinsj
Level 1
Level 1

CUCM v14 AXL response via Zeep v3.4.0 has me scratching my head.

Request:  

resp = service.getLineGroup(searchCriteria={'name''Billing'},
                                returnedTags={'distributionAlgorithm'''})
Response:
Exception has occurred: TypeError
{http://www.cisco.com/AXL/API/14.0}GetLineGroupReq() got an unexpected keyword argument 'searchCriteria'. Signature: `({name: {http://www.cisco.com/AXL/API/14.0}String100} | {uuid: {http://www.cisco.com/AXL/API/14.0}XUUID}), returnedTags: {http://www.cisco.com/AXL/API/14.0}RLineGroup, sequence: xsd:unsignedLong`
 
I've tested with uuid as well, but the error message is the same.
Testing via SOAPUI with the same line group name presents the results just fine.  I have other functions in my code, such as listLineGroup that also have name as a parameter that work fine through Zeep.  
 
If anyone has any ideas, I'd be grateful.
1 Accepted Solution

Accepted Solutions

Thanks for that insight Alex.

I was able to figure it out.  Those would need to be keyword arguments and formatted as:

resp = service.getLineGroup(name = 'Billing')

View solution in original post

3 Replies 3

Alexander Stevenson
Cisco Employee
Cisco Employee

Hi @collinsj,

 

I tired comparing the AXL Schemas for ListLineGroup and GetLineGroup from here:

https://developer.cisco.com/docs/axl-schema-reference/

 

I see where ListLineGroup does include Search Criteria + Name

AlexStevenson_0-1672945658381.png

 

However, GetLineGroup doesn't include a Search Criteria

 

AlexStevenson_1-1672945750749.png

 

It looks like you'll need to reformat your request.

 

Hope this helps!

 

 

 

Ah, ok.   So I tried sequence instead of search criteria, but get a different error:  

  Exception has occurred: Fault 
  No uuid or name element found
 
I'm not sure how I can structure the call to dig down into that choice element for a proper request from Zeep.

Thanks for that insight Alex.

I was able to figure it out.  Those would need to be keyword arguments and formatted as:

resp = service.getLineGroup(name = 'Billing')