Administration XML Developer Forums

« Back to Administration XML Questions

AXL code 5003 - Error getting the password

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
addUserPhoneAssociation - It complains about the password while I have tried every possible format, I even deleted the tag but still same thing.
Can anyone help please? Thanks in advance.
 
===================================================
SOAPAction: "CUCMemoticonB ver=8.0"
Content-length: 1098


<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <SOAP-ENV:Body>
      <axl:addUserPhoneAssociation sequence="1234" xmlns:axl="http://www.cisco.com/AXL/API/8.0">
         <userPhoneAssociation>
            <userId>ABCXp17</userId>
            <password>0188083986</password>
            <pin>123</pin>
            <lastName>HossamXB18</lastName>
            <middleName>HossamX8</middleName>
            <firstName>HossamX1</firstName>
            <productType>Cisco 7940</productType>
            <name>SEPABABA0993335</name>
            <dnCssName>CSS-B</dnCssName>
            <phoneCssName>CSS-U1</phoneCssName>
            <e164Mask>20987772</e164Mask>
            <extension>3377</extension>
            <routePartitionName>P12</routePartitionName>
            <voiceMailProfileName/>
            <enableExtensionMobility>true</enableExtensionMobility>
         </userPhoneAssociation>
      </axl:addUserPhoneAssociation>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>


==========================================Response===================================================

<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <soapenv:Fault>
            <faultcode>SOAP-ENV:Server</faultcode>
            <faultstring>Error getting the password.</faultstring>
            <detail>
                <axlError>
                    <axlcode>5003</axlcode>
                    <axlmessage>Error getting the password.</axlmessage>
                    <request>addUserPhoneAssociation</request>
                </axlError>
            </detail>
        </soapenv:Fault>
    </soapenv:Body>
</soapenv:Envelope>

I assume the phone already exists? Does the user already exist?

>>> On 2/28/2012 at 10:18 AM, Cisco Developer Community Forums <cdicuser@developer.cisco.com> wrote:

Li Fu has created a new message in the forum "Administration XML Questions":

--------------------------------------------------------------
addUserPhoneAssociation - It complains about the password while I have tried every possible format, I even deleted the tag but still same thing.
Can anyone help please? Thanks in advance.

===================================================
SOAPAction: "CUCMemoticonB ver=8.0"
Content-length: 1098


<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<axl:addUserPhoneAssociation sequence="1234" xmlns:axl="http://www.cisco.com/AXL/API/8.0">
<userPhoneAssociation>
<userId>ABCXp17</userId>
<password>0188083986</password>
<pin>123</pin>
<lastName>HossamXB18</lastName>
<middleName>HossamX8</middleName>
<firstName>HossamX1</firstName>
<productType>Cisco 7940</productType>
<name>SEPABABA0993335</name>
<dnCssName>CSS-B</dnCssName>
<phoneCssName>CSS-U1</phoneCssName>
<e164Mask>20987772</e164Mask>
<extension>3377</extension>
<routePartitionName>P12</routePartitionName>
<voiceMailProfileName/>
<enableExtensionMobility>true</enableExtensionMobility>
</userPhoneAssociation>
</axl:addUserPhoneAssociation>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


==========================================Response===================================================

<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>Error getting the password.</faultstring>
<detail>
<axlError>
<axlcode>5003</axlcode>
<axlmessage>Error getting the password.</axlmessage>
<request>addUserPhoneAssociation</request>
</axlError>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
--
To respond to this post, please click the following link:

<http://developer.cisco.com/web/axl/forums/-/message_boards/view_message/5221149>

or simply reply to this email.

Confidentiality Statement:
This email/fax, including attachments, may include confidential
and/or proprietary information and may be used only by the
person or entity to which it is addressed. If the reader of
this email/fax is not the intended recipient or his or her
agent, the reader is hereby notified that any dissemination,
distribution or copying of this email/fax is prohibited. If you
have received this email/fax in error, please notify the sender
by replying to this message and deleting this email or
destroying this facsimile immediately.

The user doesn't exist yet. We are trying to create one from here.

Thank you for your replying.

Hi Li,

How are you?
The user does not exist I am pretty sure of that.

The error is in the password. CUCM require no encrypted passwords because it encrypts them.

But in this case I am trying to create a user with any password even empty is acceptable for me.

I don't know how they could make something like that (Do not insert password (update user later) and yet it complains about empty passwords as well).

WOW...............


How is it nobody can answer this question?

We want to use AXL soap to create an enduser with no password........

addUserPhoneAssociation - It complains about the password while I have tried every possible format, I even deleted the tag but still same thing.
Can anyone help please? Thanks in advance.
 
===================================================
SOAPAction: "CUCMemoticonB ver=8.0"
Content-length: 1098


<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <SOAP-ENV:Body>
      <axl:addUserPhoneAssociation sequence="1234" xmlns:axl="http://www.cisco.com/AXL/API/8.0">
         <userPhoneAssociation>
            <userId>ABCXp17</userId>
            <password>0188083986</password>
            <pin>123</pin>
            <lastName>HossamXB18</lastName>
            <middleName>HossamX8</middleName>
            <firstName>HossamX1</firstName>
            <productType>Cisco 7940</productType>
            <name>SEPABABA0993335</name>
            <dnCssName>CSS-B</dnCssName>
            <phoneCssName>CSS-U1</phoneCssName>
            <e164Mask>20987772</e164Mask>
            <extension>3377</extension>
            <routePartitionName>P12</routePartitionName>
            <voiceMailProfileName/>
            <enableExtensionMobility>true</enableExtensionMobility>
         </userPhoneAssociation>
      </axl:addUserPhoneAssociation>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>


==========================================Response===================================================

<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <soapenv:Fault>
            <faultcode>SOAP-ENV:Server</faultcode>
            <faultstring>Error getting the password.</faultstring>
            <detail>
                <axlError>
                    <axlcode>5003</axlcode>
                    <axlmessage>Error getting the password.</axlmessage>
                    <request>addUserPhoneAssociation</request>
                </axlError>
            </detail>
        </soapenv:Fault>
    </soapenv:Body>
</soapenv:Envelope>

The only time I've seen anything like this was because of the default password policy. Once I changed the policy to something less strict, I was able to create new users just fine with a dummy password of 12345 or similar.

I was able to get the request to succeed on my UCM 8.5(1) system by ommitting the password and pin:
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/8.5">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:addUserPhoneAssociation sequence="1">
         <userPhoneAssociation>
            <userId>useraddtest</userId>
            <lastName>lastname</lastName>
            <middleName>middlename</middleName>
            <firstName>firstname</firstName>
            <productType>Cisco IP Communicator</productType>
            <name>IPC123456789012</name>
            <e164Mask/>
            <extension>3893</extension>
            <enableExtensionMobility>true</enableExtensionMobility>
         </userPhoneAssociation>
      </ns:addUserPhoneAssociation>
   </soapenv:Body>
</soapenv:Envelope>
 
You can then use updateUser to set the password.

Would you please provide me with the specs of the default policy you changed to and worked.

Thanks.

No removing the password and pin in CUCM 8.0 gives
<axlcode>-1</axlcode>
<axlmessage/>
<request>addUserPhoneAssociation</request>


Any other suggestions.

I can confirm your observation on 8.0(1).  It looks like both 8.0(1) and 8.5(1) have issues with this request, we'll open a couple of defects to investigate.  Unfortunately you may need to workaround by issuing separate addPhone and addUser requests.  User/phone association can be accomplished in the addUser request by filling in the <asscoaitedDevices> list.

The following two defects have been opened to track these items:
 
CSCty49666 - addUserPhoneAssociation fails with undefined error
CSCty49652 - addUserPhoneAssociation fails when <password> included

After I switched to your suggestion new issue appeared "Security Profile is required for this device".
Even though I am putting a valid security profile (I don't know how to deal with this AXL API if it is not reliable they have just to say)

===================request==================
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<axl:addPhone sequence="1" xmlns:axl="http://www.cisco.com/AXL/API/8.0">
<phone ctiid="">
<!--=============== Basic Device Information ===============-->
<name>SEPAB1188990037</name>
<description>SEPAB1188990037</description>
<product>Cisco 7911</product>
<class/>
<protocol>SCCP</protocol>
<protocolSide>User</protocolSide>
<callingSearchSpaceName uuid="{570D5278-DBF9-A58F-18DC-A95941983DBA}"/>
<devicePoolName uuid="">Default</devicePoolName>
<commonDeviceConfigName uuid=""/>
<commonPhoneConfigName uuid="">Standard Common Phone Profile</commonPhoneConfigName>
<securityProfileName uuid="">Cisco 7911 - Standard SCCP Non-Secure Profile</securityProfileName>
<phoneTemplateName uuid="">Standard 7911</phoneTemplateName>
<!--============== Defaluts Device Information =============-->
<networkLocation>Use System Default</networkLocation>
<mlppIndicationStatus>Off</mlppIndicationStatus>
<preemption>Default</preemption>
<useTrustedRelayPoint>Default</useTrustedRelayPoint>
<retryVideoCallAsAudio>true</retryVideoCallAsAudio>
<useDevicePoolCgpnTransformCss>true</useDevicePoolCgpnTransformCss>
<ringSettingIdleBlfAudibleAlert>Default</ringSettingIdleBlfAudibleAlert>
<ringSettingBusyBlfAudibleAlert>Default</ringSettingBusyBlfAudibleAlert>
<singleButtonBarge>Default</singleButtonBarge>
<joinAcrossLines>Default</joinAcrossLines>
<builtInBridgeStatus>Default</builtInBridgeStatus>
<callInfoPrivacyStatus>Default</callInfoPrivacyStatus>
<ignorePresentationIndicators>false</ignorePresentationIndicators>
<packetCaptureMode>None</packetCaptureMode>
<packetCaptureDuration>0</packetCaptureDuration>
<unattendedPort>false</unattendedPort>
<requireDtmfReception>false</requireDtmfReception>
<rfc2833Disabled>false</rfc2833Disabled>
<certificateOperation>No Pending Operation</certificateOperation>
<authenticationMode>By Null String</authenticationMode>
<keySize>1024</keySize>
<deviceMobilityMode>Default</deviceMobilityMode>
<remoteDevice>false</remoteDevice>
<dndOption>Ringer Off</dndOption>
<isActive>true</isActive>
<phoneSuite>Default</phoneSuite>
<phoneServiceDisplay>Default</phoneServiceDisplay>
<isProtected>false</isProtected>
<mtpPreferedCodec>711ulaw</mtpPreferedCodec>
<outboundCallRollover>No Rollover</outboundCallRollover>
<hotlineDevice>false</hotlineDevice>
<alwaysUsePrimeLine>Default</alwaysUsePrimeLine>
<alwaysUsePrimeLineForVoiceMessage>Default</alwaysUsePrimeLineForVoiceMessage>
<lines>
<line ctiid="">
<index>1</index>
<label>3333</label>
<asciiLabel>3333</asciiLabel>
<display>3333</display>
<dirn uuid="">
<pattern/>
<routePartitionName uuid="{8DCF9DA8-68D1-F890-3F9B-068B75DBEE36}"/>
</dirn>
<ringSetting>Ring</ringSetting>
<consecutiveRingSetting>Use System Default</consecutiveRingSetting>
<displayAscii>3333</displayAscii>
<e164Mask>22258419</e164Mask>
<mwlPolicy>Use System Policy</mwlPolicy>
<maxNumCalls>2</maxNumCalls>
<busyTrigger>1</busyTrigger>
<callInfoDisplay>
<callerName>true</callerName>
<callerNumber>false</callerNumber>
<redirectedNumber>false</redirectedNumber>
<dialedNumber>true</dialedNumber>
</callInfoDisplay>
<recordingProfileName uuid=""/>
<monitoringCssName uuid="{03EAA47A-94F2-A722-91A4-0DDA4C5A98C9}"/>
<recordingFlag>Call Recording Disabled</recordingFlag>
<audibleMwi>Default</audibleMwi>
<partitionUsage>General</partitionUsage>
<missedCallLogging>true</missedCallLogging>
<!--==== Associate Users ====-->
<associatedEndusers>
<enduser>
<userId>3333_8</userId>
</enduser>
</associatedEndusers>
</line>
</lines>
</phone>
</axl:addPhone>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


================response=====================
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>Security Profile is required for this device</faultstring>
<detail>
<axlError>
<axlcode>429</axlcode>
<axlmessage>Security Profile is required for this device</axlmessage>
<request>addPhone</request>
</axlError>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

addUserPhoneAssociation appears to be pretty broken at the moment.  Note, for the workaround (addPhone, addUser/associatedDevices) that you should create the association in addUser (or updateUser). 

I can't test immediately,but I think it may be possible that specifying the uuid but providing an empty string could be a problem. My thought is to either provide the uuid attribute with the actual pkid value, or omit the attribute entirely and provide the name value.

Regards,
- David Staudt

Dear David,
 
Would you please help me to close this issue as it is causing me nightmares.
 
I removed the attribute but still complaining about the Security Profile.
 
Here is the exact request:
 

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <SOAP-ENV:Body>
      <axl:addPhone sequence="1" xmlns:axl="http://www.cisco.com/AXL/API/8.0">
         <phone ctiid="">
            <!--=============== Basic Device Information ===============-->
            <name>SEPAB1188990037</name>
            <description>SEPAB1188990037</description>
            <product>Cisco 7940</product>
            <class/>
            <protocol>SIP</protocol>
            <protocolSide>User</protocolSide>
            <callingSearchSpaceName uuid="{570D5278-DBF9-A58F-18DC-A95941983DBA}"/>
            <devicePoolName >Default</devicePoolName>
            <commonDeviceConfigName />
            <commonPhoneConfigName >Standard Common Phone Profile</commonPhoneConfigName>
            <securityProfileName>Cisco 7940 - Standard SIP Non-Secure Profile</securityProfileName>
            <phoneTemplateName >Standard 7940 SIP</phoneTemplateName>
            <!--============== Defaluts Device Information =============-->
            <networkLocation>Use System Default</networkLocation>
            <mlppIndicationStatus>Off</mlppIndicationStatus>
            <preemption>Default</preemption>
            <useTrustedRelayPoint>Default</useTrustedRelayPoint>
            <retryVideoCallAsAudio>true</retryVideoCallAsAudio>
            <useDevicePoolCgpnTransformCss>true</useDevicePoolCgpnTransformCss>
            <ringSettingIdleBlfAudibleAlert>Default</ringSettingIdleBlfAudibleAlert>
            <ringSettingBusyBlfAudibleAlert>Default</ringSettingBusyBlfAudibleAlert>
            <singleButtonBarge>Default</singleButtonBarge>
            <joinAcrossLines>Default</joinAcrossLines>
            <builtInBridgeStatus>Default</builtInBridgeStatus>
            <callInfoPrivacyStatus>Default</callInfoPrivacyStatus>
            <ignorePresentationIndicators>false</ignorePresentationIndicators>
            <packetCaptureMode>None</packetCaptureMode>
            <packetCaptureDuration>0</packetCaptureDuration>
            <unattendedPort>false</unattendedPort>
            <requireDtmfReception>false</requireDtmfReception>
            <rfc2833Disabled>false</rfc2833Disabled>
            <certificateOperation>No Pending Operation</certificateOperation>
            <authenticationMode>By Null String</authenticationMode>
            <keySize>1024</keySize>
            <deviceMobilityMode>Default</deviceMobilityMode>
            <remoteDevice>false</remoteDevice>
            <dndOption>Ringer Off</dndOption>
            <isActive>true</isActive>
            <phoneSuite>Default</phoneSuite>
            <phoneServiceDisplay>Default</phoneServiceDisplay>
            <isProtected>false</isProtected>
            <mtpPreferedCodec>711ulaw</mtpPreferedCodec>
            <outboundCallRollover>No Rollover</outboundCallRollover>
            <hotlineDevice>false</hotlineDevice>
            <alwaysUsePrimeLine>Default</alwaysUsePrimeLine>
            <alwaysUsePrimeLineForVoiceMessage>Default</alwaysUsePrimeLineForVoiceMessage>
            <lines>
               <line ctiid="">
                  <index>1</index>
                  <label>3333</label>
                  <asciiLabel>3333</asciiLabel>
                  <display>3333</display>
                  <dirn >
                     <pattern/>
                     <routePartitionName uuid="{8DCF9DA8-68D1-F890-3F9B-068B75DBEE36}"/>
                  </dirn>
                  <ringSetting>Ring</ringSetting>
                  <consecutiveRingSetting>Use System Default</consecutiveRingSetting>
                  <displayAscii>3333</displayAscii>
                  <e164Mask>22258419</e164Mask>
                  <mwlPolicy>Use System Policy</mwlPolicy>
                  <maxNumCalls>2</maxNumCalls>
                  <busyTrigger>1</busyTrigger>
                  <callInfoDisplay>
                     <callerName>true</callerName>
                     <callerNumber>false</callerNumber>
                     <redirectedNumber>false</redirectedNumber>
                     <dialedNumber>true</dialedNumber>
                  </callInfoDisplay>
                  <recordingProfileName />
                  <monitoringCssName uuid="{03EAA47A-94F2-A722-91A4-0DDA4C5A98C9}"/>
                  <recordingFlag>Call Recording Disabled</recordingFlag>
                  <audibleMwi>Default</audibleMwi>
                  <partitionUsage>General</partitionUsage>
                  <missedCallLogging>true</missedCallLogging>
                  <!--==== Associate Users ====-->
                  <associatedEndusers>
                     <enduser>
                        <userId>3333_8</userId>
                     </enduser>
                  </associatedEndusers>
               </line>
            </lines>
         </phone>
      </axl:addPhone>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

 
Thanks.
 
 
I can't test immediately,but I think it may be possible that specifying the uuid but providing an empty string could be a problem. My thought is to either provide the uuid attribute with the actual pkid value, or omit the attribute entirely and provide the name value.

Regards,
- David Staudt