<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CUCM AXL update_phone fails in Management</title>
    <link>https://community.cisco.com/t5/management/cucm-axl-update-phone-fails/m-p/4527561#M3789</link>
    <description>&lt;P&gt;Try this instead:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;resp = service.updatePhone( name = 'SEPF04A02EEED5B', description = 'Test axl description' )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;add operations can use JSON, but update operations need a choice element (name, in this case).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDITED TO ADD:&amp;nbsp; 'SEPF04A02EEED5B', -- in my browser that looks like a semicolon. It's not. It's an end quote and a comma.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jan 2022 18:15:01 GMT</pubDate>
    <dc:creator>npetrele</dc:creator>
    <dc:date>2022-01-06T18:15:01Z</dc:date>
    <item>
      <title>CUCM AXL update_phone fails</title>
      <link>https://community.cisco.com/t5/management/cucm-axl-update-phone-fails/m-p/4527545#M3788</link>
      <description>&lt;P&gt;I have a phone SEPF04A02EEED5B that I am trying to update using AXL.&amp;nbsp; I am starting simply by using the githubCiscoDevNet/axl-python-zeep-samples as much as possible and just trying to update the phone description.&amp;nbsp; However when I run the python script I get the following typeerror: choice elements only work with keyword arguments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "D:\Users\mserwon\scripts\axl_update_phone.py", line 110, in &amp;lt;module&amp;gt;&lt;BR /&gt;resp = service.updatePhone( phone )&lt;BR /&gt;File "D:\Users\mserwon\AppData\Local\Programs\Python\Python310\lib\site-packages\zeep\proxy.py", line 40, in __call__&lt;BR /&gt;return self._proxy._binding.send(&lt;BR /&gt;File "D:\Users\mserwon\AppData\Local\Programs\Python\Python310\lib\site-packages\zeep\wsdl\bindings\soap.py", line 118, in send&lt;BR /&gt;envelope, http_headers = self._create(&lt;BR /&gt;File "D:\Users\mserwon\AppData\Local\Programs\Python\Python310\lib\site-packages\zeep\wsdl\bindings\soap.py", line 68, in _create&lt;BR /&gt;serialized = operation_obj.create(*args, **kwargs)&lt;BR /&gt;File "D:\Users\mserwon\AppData\Local\Programs\Python\Python310\lib\site-packages\zeep\wsdl\definitions.py", line 215, in create&lt;BR /&gt;return self.input.serialize(*args, **kwargs)&lt;BR /&gt;File "D:\Users\mserwon\AppData\Local\Programs\Python\Python310\lib\site-packages\zeep\wsdl\messages\soap.py", line 68, in serialize&lt;BR /&gt;body_value = self.body(*args, **kwargs)&lt;BR /&gt;File "D:\Users\mserwon\AppData\Local\Programs\Python\Python310\lib\site-packages\zeep\xsd\elements\element.py", line 57, in __call__&lt;BR /&gt;instance = self.type(*args, **kwargs)&lt;BR /&gt;File "D:\Users\mserwon\AppData\Local\Programs\Python\Python310\lib\site-packages\zeep\xsd\types\complex.py", line 49, in __call__&lt;BR /&gt;return self._value_class(*args, **kwargs)&lt;BR /&gt;File "D:\Users\mserwon\AppData\Local\Programs\Python\Python310\lib\site-packages\zeep\xsd\valueobjects.py", line 95, in __init__&lt;BR /&gt;items = _process_signature(self._xsd_type, args, kwargs)&lt;BR /&gt;File "D:\Users\mserwon\AppData\Local\Programs\Python\Python310\lib\site-packages\zeep\xsd\valueobjects.py", line 185, in _process_signature&lt;BR /&gt;values, args, index = element.parse_args(args, index)&lt;BR /&gt;File "D:\Users\mserwon\AppData\Local\Programs\Python\Python310\lib\site-packages\zeep\xsd\elements\indicators.py", line 129, in parse_args&lt;BR /&gt;raise TypeError("Choice elements only work with keyword arguments")&lt;BR /&gt;TypeError: Choice elements only work with keyword arguments&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I enclosed the python code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 17:26:25 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/cucm-axl-update-phone-fails/m-p/4527545#M3788</guid>
      <dc:creator>mserwon</dc:creator>
      <dc:date>2022-01-06T17:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: CUCM AXL update_phone fails</title>
      <link>https://community.cisco.com/t5/management/cucm-axl-update-phone-fails/m-p/4527561#M3789</link>
      <description>&lt;P&gt;Try this instead:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;resp = service.updatePhone( name = 'SEPF04A02EEED5B', description = 'Test axl description' )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;add operations can use JSON, but update operations need a choice element (name, in this case).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDITED TO ADD:&amp;nbsp; 'SEPF04A02EEED5B', -- in my browser that looks like a semicolon. It's not. It's an end quote and a comma.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 18:15:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/cucm-axl-update-phone-fails/m-p/4527561#M3789</guid>
      <dc:creator>npetrele</dc:creator>
      <dc:date>2022-01-06T18:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: CUCM AXL update_phone fails</title>
      <link>https://community.cisco.com/t5/management/cucm-axl-update-phone-fails/m-p/4527576#M3790</link>
      <description>&lt;P&gt;Thanks very much it worked just as you detailed.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 19:10:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/cucm-axl-update-phone-fails/m-p/4527576#M3790</guid>
      <dc:creator>mserwon</dc:creator>
      <dc:date>2022-01-06T19:10:10Z</dc:date>
    </item>
  </channel>
</rss>

