cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1937
Views
2
Helpful
4
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Doug Kartio on 26-08-2013 10:58:58 AM
Looking at the axl-schema-9.1.zip file.
It shows that to update the serviceProfile on a user (updateaUser), you need to pass in the UUID of the service profile.

This did not work for me.
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Header/><SOAP-ENV:Body><axl:updateUser xmlns:axl="http://www.cisco.com/AXL/API/9.0" sequence="1"><userid>dkartio</userid><homeCluster>t</homeCluster><imAndPresenceEnable>t</imAndPresenceEnable><serviceProfile>390B4403-B954-D6D3-D7BA-7581E67661B2</serviceProfile></axl:updateUser></SOAP-ENV:Body></SOAP-ENV:Envelope>

RETURNED: ERROR: Item not valid: The specified 390B4403-B954-D6D3-D7BA-7581E67661B2 was not found

But if I changed from UUID to the service name
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Header/><SOAP-ENV:Body><axl:updateUser xmlns:axl="http://www.cisco.com/AXL/API/9.0" sequence="1"><userid>dkartio</userid><homeCluster>t</homeCluster><imAndPresenceEnable>t</imAndPresenceEnable><serviceProfile>APPDEV_UC_Profile</serviceProfile></axl:updateUser></SOAP-ENV:Body></SOAP-ENV:Envelope>

RETURNED: Positive response received.

So is the documentation wrong?  Or am I missing something
Comments
John Watkins
Level 4
Level 4

It appears you are correct. this is the Case for 11.5.1 as well.

dstaudt
Cisco Employee
Cisco Employee

You should be able to to specify the service profile via uuid by specifying the "uuid=" attribute in the element (you can leave the element value itself empty.)  The following work equivalently on my 10.5 system:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/10.5">

   <soapenv:Header/>

   <soapenv:Body>

      <ns:updateUser>

         <userid>dstaudt</userid>

         <serviceProfile uuid="{54ED23A8-A665-437F-801A-280015703B41}"/>

       </ns:updateUser>

   </soapenv:Body>

</soapenv:Envelope>

or

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/10.5">

   <soapenv:Header/>

   <soapenv:Body>

      <ns:updateUser>

         <userid>dstaudt</userid>

         <serviceProfile>Test UC Service Profile</serviceProfile>

       </ns:updateUser>

   </soapenv:Body>

</soapenv:Envelope>

John Watkins
Level 4
Level 4

@dstaudt - Thats good to know!

I would say however, that the documentation does not mention the ability to use the actual ServiceProfile name as in the updateUser request, which for me was the point of this. it nice to be able to use the actual name instead of just the uuid....

https://developer.cisco.com/media/axl-schema-11-5/Files/AXLSoap_UpdateUserReq.html#Link2489

attributes
NameTypeUseDefaultFixedAnnotation
uuidaxlapi:XUUIDoptional
source<xsd:element name="serviceProfile" type="axlapi:XFkType" nillable="true" minOccurs="0" maxOccurs="1"/>
Adam Pawlowski
VIP Alumni
VIP Alumni

Thanks for this thread - yet another AXL call that doesn't follow the doc , but this saved me a few strands of hair !

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:

Quick Links