updatetAttendantConsoleHuntGroup returns AXL Err 5000

Version 1
    This document was generated from CDN thread

    Created by: Keith Lunn on 24-03-2010 08:02:23 PM
    Hello Folks,
    ENV = CUCM 6.13 AXL
    I need to update the members for a Console Attendant Hunt Group in AXL.
    My AXL request is returning an AXL error 5000 so I believe that I am not formatting the API message correctly.
    My AXL Message:
     
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap
    /envelope/" xmlns:ns="http://www.cisco.com/AXL/API/6.1">
     <SOAP-ENV:Header/>
      <SOAP-ENV:Body>
     <ns:updatetAttendantConsoleHuntGroup sequence="600">
     <pilotPointName>CL_CC-PP01X</pilotPointName>
    <members>
    <member>
    <XPilotHuntGroupMember>
    <sortOrder>1</sortOrder>
    <deviceMemberInfo>
    <alwaysRoute>f</alwaysRoute>
    <dirn>5555552101</dirn>
    </deviceMemberInfo>
    </XPilotHuntGroupMember>
    </member>
    <member>
    <XPilotHuntGroupMember>
    <sortOrder>2</sortOrder>
    <deviceMemberInfo>
    <alwaysRoute>f</alwaysRoute>
    <dirn>5555552102</dirn>
    </deviceMemberInfo>
    </XPilotHuntGroupMember>
    </member>
    </members>
    </ns:updatetAttendantConsoleHuntGroup>
     </SOAP-ENV:Body> </SOAP-ENV:Envelope>
    Does anybody have any suggestions?
    Would apprecite it - I suspect I am not interpreting the API message format correct from axlsoap.xsd and axl.xsd.
    Thanks!!! 

    Subject: RE: updatetAttendantConsoleHuntGroup returns AXL Err 5000
    Replied by: Keith Lunn on 29-03-2010 01:27:37 PM
    I believe that I have resolved the first issue of getting AXL Error 5000. The UID used had AXL API permissions but did not have write permissions.
    I have also reformated my message to the following - but now I am getting AXL Error 5003:
    AXL Error detected! ErrNum[5003] ErrDesc[uuid attribute can not be NULL]
    I do not know what part of the meesage it is referring to that is missing an uuid attribute,
    Any suggestions?
    Thanks!
    Transmitted Message:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap
    /envelope/" xmlns:ns="http://www.cisco.com/AXL/API/6.1">
    <SOAP-ENV:Header/>
    <SOAP-ENV:Body>
    <ns:updateAttendantConsoleHuntGroup sequence="600">
    <pilotPointName>CL_CC-PP01</pilotPointName>
    <members>
    <member>
    <sortOrder>1</sortOrder>
    <deviceMemberInfo>
    <alwaysRoute>f</alwaysRoute>
    <dirn>5555552101 uuid="{f88516d3-c5a2-4566-a782-cfa25d0fe896}"</dirn>
    </deviceMemberInfo>
    </member>
    <member>
    <sortOrder>2</sortOrder>
    <deviceMemberInfo>
    <alwaysRoute>f</alwaysRoute>
    <dirn>5555552102 uuid="{6cccb312-1675-457c-8fde-6eba9b431e29}"</dirn>
    </deviceMemberInfo>
    </member>
    </members>
    </ns:updateAttendantConsoleHuntGroup>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
     
     
    Response Message:
     
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SO
    AP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <SOAP-ENV:Header/><SOAP-ENV:Body>
    <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Client</faultcode>
    <faultstring>uuid attribute can not be NULL</faultstring>
    <detail><axl:Error xmlns:axl="http://www.cisco.com/AXL/API/6.1">
    <axl:code>5003</axl:code>
    <axl:message>uuid attribute can not be NULL</axl:message>
    <request>updateAttendantConsoleHuntGroup</request>
    </axl:Error>
    </detail>
    </SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
     
     

    Subject: RE: updatetAttendantConsoleHuntGroup returns AXL Err 5000
    Replied by: Keith Lunn on 29-03-2010 05:25:57 PM
    OK folks, this is resolved. The API requires the use of the uuid attribute ONLY to specify the members of an Attendant Hunt Group.
    So for each DN member you are adding to the group, you must first execute a SQL on the numplan table and get the correct DN record (you may have to qualify the select with the routePartitionname too) and extract it's key value (pkid). This value becomes the uuid attribute for your member.
    So there were two issues:
    a) The AXL UID used in the request not olny requires the AXL role but must have write capabilities too.
    b) API Message format was incorrect.
     
    Here's is an example request that works:
     
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap
    /envelope/" xmlns:ns="http://www.cisco.com/AXL/API/6.1">
     <SOAP-ENV:Header/> <SOAP-ENV:Body>
     <ns:updateAttendantConsoleHuntGroup sequence="600">
     <pilotPointName>CL_CC-PP01</pilotPointName>
     <members>
      <member>
       <sortOrder>1</sortOrder>
       <deviceMemberInfo>
     <alwaysRoute>f</alwaysRoute>
      <dirn uuid ="{f88516d3-c5a2-4566-a782-cfa25d0fe896}"></dirn>
     </deviceMemberInfo>
     </member>
     <member>
       <sortOrder>2</sortOrder>
     <deviceMemberInfo>
      <alwaysRoute>f</alwaysRoute>
       <dirn uuid ="{6cccb312-1675-457c-8fde-6eba9b431e29}"></dirn>
     </deviceMemberInfo>
     </member>
    </members>
    </ns:updateAttendantConsoleHuntGroup>
    </SOAP-ENV:Body> </SOAP-ENV:Envelope>
     
    Also, thanks to another developer for guideance on getting this resolved. Thanks JD!!!!!!!