cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
610
Views
2
Helpful
1
Replies

11.5 RAudioCodecPreferenceList schema incorrectly defines maxOccurs="30"

Jonathan Els
Level 5
Level 5

The RAudio defines the following:

<xsd:complexType name="RAudioCodecPreferenceList">
  <xsd:sequence minOccurs="0">
  <xsd:element maxOccurs="1" minOccurs="0" name="name" type="xsd:string"/>
  <xsd:element maxOccurs="1" minOccurs="0" name="description" type="xsd:string"/>
  <xsd:element maxOccurs="1" minOccurs="0" name="codecsInList">
  <xsd:complexType>
  <xsd:sequence minOccurs="0">
  <xsd:element maxOccurs="30" minOccurs="0" name="codecNames" type="xsd:string"/>
  </xsd:sequence>
  </xsd:complexType>
  </xsd:element>
  </xsd:sequence>
  <xsd:attribute name="uuid" type="axlapi:XUUID"/>
</xsd:complexType>

However, a "get" operation actually returns 31 codecs.  If you're using python-zeep, this results in an error while consuming the codecNames sequence.

Traceback truncated for brevity:

  File "C:\Users\jonathan.els\Envs\uctoolkit\lib\site-packages\zeep\xsd\types\complex.py", line 169, in parse_xmlelement
  elements, schema, name, context=context)
  File "C:\Users\jonathan.els\Envs\uctoolkit\lib\site-packages\zeep\xsd\elements\indicators.py", line 600, in parse_xmlelements
  xmlelements, schema, name, context=context)
  File "C:\Users\jonathan.els\Envs\uctoolkit\lib\site-packages\zeep\xsd\elements\element.py", line 160, in parse_xmlelements
  xmlelement, schema, allow_none=True, context=context)
  File "C:\Users\jonathan.els\Envs\uctoolkit\lib\site-packages\zeep\xsd\elements\element.py", line 114, in parse
  schema_type=self.type)
  File "C:\Users\jonathan.els\Envs\uctoolkit\lib\site-packages\zeep\xsd\types\complex.py", line 178, in parse_xmlelement
  raise XMLParseError("Unexpected element %r" % elements[0].tag)
zeep.exceptions.XMLParseError: Unexpected element 'codecNames'


The returned XML clearly contained 31 elements:



<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Body>
  <ns:getAudioCodecPreferenceListResponse xmlns:ns="http://www.cisco.com/AXL/API/11.5">
  <return>
  <audioCodecPreferenceList uuid="{2DE2ABA1-F839-A2CA-C479-A36D5F877A52}">
  <name>asdf</name>
  <description>Lossy Codec List</description>
  <codecsInList>
  <codecNames>OPUS (6k-510k)</codecNames>
  <codecNames>MP4A-LATM 128k</codecNames>
  <codecNames>AAC-LD (MP4A Generic)</codecNames>
  <codecNames>MP4A-LATM 64k</codecNames>
  <codecNames>MP4A-LATM 56k</codecNames>
  <codecNames>L16 256k</codecNames>
  <codecNames>MP4A-LATM 48k</codecNames>
  <codecNames>ISAC 32k</codecNames>
  <codecNames>AMR-WB (7k-24k)</codecNames>
  <codecNames>MP4A-LATM 32k</codecNames>
  <codecNames>G.722 64k</codecNames>
  <codecNames>G.722.1 32k</codecNames>
  <codecNames>G.722 56k</codecNames>
  <codecNames>G.722.1 24k</codecNames>
  <codecNames>G.722 48k</codecNames>
  <codecNames>MP4A-LATM 24k</codecNames>
  <codecNames>G.711 U-Law 64k</codecNames>
  <codecNames>G.711 A-Law 64k</codecNames>
  <codecNames>G.711 U-Law 56k</codecNames>
  <codecNames>G.711 A-Law 56k</codecNames>
  <codecNames>ILBC 16k</codecNames>
  <codecNames>G.728 16k</codecNames>
  <codecNames>AMR (5k-13k)</codecNames>
  <codecNames>GSM Enhanced Full Rate 13k</codecNames>
  <codecNames>GSM Full Rate 13k</codecNames>
  <codecNames>G.729b 8k</codecNames>
  <codecNames>G.729ab 8k</codecNames>
  <codecNames>G.729 8k</codecNames>
  <codecNames>G.729a 8k</codecNames>
  <codecNames>GSM Half Rate 6k</codecNames>
  <codecNames>G.723.1 7k</codecNames>
  </codecsInList>
  </audioCodecPreferenceList>
  </return>
  </ns:getAudioCodecPreferenceListResponse>
  </soapenv:Body>
</soapenv:Envelope>

From what I can see, its wrong in:

  • XAudioCodecPreferenceList
  • RAudioCodecPreferenceList
  • UpdateAudioCodecPreferenceListReq


Blame the bug on the inclusion of OPUS!? Haha.

60% of the time, I'm right every time though.

1 Accepted Solution

Accepted Solutions

Paul Giralt
Cisco Employee
Cisco Employee

Bug filed - CSCvj13313

View solution in original post

1 Reply 1

Paul Giralt
Cisco Employee
Cisco Employee

Bug filed - CSCvj13313