cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1021
Views
0
Helpful
3
Replies

Can't update productType attribute using updateUcService request

jdrinkwater
Level 1
Level 1

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,

 

 

3 Replies 3

npetrele
Cisco Employee
Cisco Employee

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>

 

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>

 

 

dstaudt
Cisco Employee
Cisco Employee

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:

AXLSoap_p2040.png

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...

Getting Started

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: