01-15-2019 06:53 AM
Can't update producttype attribute using updateUcService request
<axl:updateUcService xmlns:axl="http://www.cisco.com/AXL/API/12.0">
<serviceType>Directory</serviceType>
<productType>Directory</productType>
<name>222</name>
</axl:updateUcService>
The response was successful but when you go to cucm server, productType is not changed.
Anyone running into same problem?
Thanks,
05-08-2019 08:28 AM
Hi Jung,
Here's the template for the API:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/12.5">
<soapenv:Header/>
<soapenv:Body>
<ns:updateUcService sequence="?">
<!--You have a CHOICE of the next 2 items at this level-->
<name>?</name>
<uuid>?</uuid>
<!--Optional:-->
<newName>?</newName>
<!--Optional:-->
<description>?</description>
<!--Optional:-->
<hostnameorip>?</hostnameorip>
<!--Optional:-->
<port>?</port>
<!--Optional:-->
<protocol>?</protocol>
<!--Optional:-->
<ucServiceXml>
<!--You may enter ANY elements at this point-->
</ucServiceXml>
</ns:updateUcService>
</soapenv:Body>
</soapenv:Envelope>
As you can see, there are no serviceType or productType tags. I assume they would go in here:
<ucServiceXml>
<!--You may enter ANY elements at this point-->
</ucServiceXml>
05-08-2019 08:36 AM
I've tried the following request without Product or Service type but still getting an error.
<axl:updateUcService xmlns:axl="http://www.cisco.com/AXL/API/12.0">
<name>enhanced directory 1</name>
<ucServiceXml>
<UriPrefix></UriPrefix>
</ucServiceXml>
</axl:updateUcService>
<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'>
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>Invalid value for the UriPrefix</faultstring>
<detail>
<axlError>
<axlcode>5003</axlcode>
<axlmessage>Invalid value for the UriPrefix</axlmessage>
<request>updateUcService</request></axlError></detail></soapenv:Fault></soapenv:Body>
</soapenv:Envelope>
05-13-2019 12:12 PM
It appears from the 12.0 AXL schema for <updateUcService>, that it is not possible to change the service or product type once the service has been created:
You will likely need to remove and then re-add the service if you need to change one of these types. Note this could have knock-on effects, as I suspect that associations with the existing service will be lost if you remove it and re-add it - even though the name may be the same, the underlying uuid will change...
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: