Cisco Unified Application Environment Developer Forums

« Back to Developers

Remote Destination Profile access how to on CUAE2.4.3/CM 601

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi,
It's been some time that I did any work on CUAE, so please be patient emoticon
I have a CUAE 2.4.3 running a bunch of apps on a large CUCM 6.0.1 population; the client wants to be able to access & change the Destination Number into a Remote Destination Profile via some easier interface than the current User page on CUCM.
 
I tried g_RemoteDestination = g_GetUserResponse.Response.@return.user.associatedRemoteDestinationProfiles[0].ToString();
(based on the [XmlArrayItem("remoteDestinationProfile", Form=XmlSchemaForm.Unqualified, IsNullable=false), XmlArray(Form=XmlSchemaForm.Unqualified)]
    public XUserRemoteDestinationProfile[] associatedRemoteDestinationProfiles;

from the XUser, but the only thing I get back is the class name...  drilling down into the XUserRemoteDestinationProfile gets me nowhere:
...reflector shows :
public XUserRemoteDestinationProfile()
{
}
 
Interesting enough I was able to use GetDeviceProfile using the Remote Destination Profile Name (hardcoded for now), but the response seems to be not compliant with the AXL description....(for example extracting the ownerUserId generated the following error, after the fault code = 0 returned by the GetDeviceProfileResponse601
<pre>2011:06:20::11:29:27(57): Error: MobSNR-1 Application: ** Executed GetDeviceProfile**Fault Code = 0 and Fault Message =
2011:06:20::11:29:27(57): Error: MobSNR-1 Unhandled exception detected inside user code action '634441592434258625': '

Full information as follows:
Source: mscorlib
Message: Exception has been thrown by the target of an invocation.
Stack Trace: _InvokeMethodFast
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Metreos.AppServer.ARE.Scheduler.ExecuteUserCodeAction(UserCodeAction action, RuntimeScriptInfo scriptInfo)



Full information as follows:
Source: Metreos.AppServer.ApplicationFramework.CustomCode.MobSNR
Message: Object reference not set to an instance of an object.
Stack Trace: Execute
at Metreos.AppServer.ApplicationFramework.CustomCode.MobSNR.UserCode_634441592434258625.Execute(GetDeviceProfileResponse g_GetDeviceProfileResponse, String& g_UserId) in c:\Documents and Settings\CiscoUAE\Local Settings\Temp\1o1oktik.0.cs:line 2110'</pre>
Any ideas will be very much appreciated....
Thanks
Dragos