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

Can't update productType attribute using updateUcService request

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,

 

 

Everyone's tags (2)
3 REPLIES 3
Highlighted
Cisco Employee

Re: Can't update productType attribute using updateUcService request

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>

 

Beginner

Re: Can't update productType attribute using updateUcService request

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>

 

 

Cisco Employee

Re: Can't update productType attribute using updateUcService request

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

CreatePlease to create content
Content for Community-Ad
June's Community Spotlight Awards