Hello,
I'm trying to connect to Altiris DS (version 6.8) web services and having some problems with authenticating users. I'm using my credentials from windows domain, with which I have access to Altiris Deployment Web Console.
I use SoapUI tool and C# (WCF) to consume web service. But with both of these tools I receive error message:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Object reference not set to an instance of an object. --> Object reference not set to an instance of an object.</faultstring>
<faultactor>http://altiris.server/Altiris.ASDK.DS/ComputerManagementService.asmx</faultactor>
<detail>
<exceptionType>Altiris.ASDK.DS API Exception in AuthenticateUser</exceptionType>
<stackTrace>at System.Environment.GetStackTrace(Exception e)
at System.Environment.GetStackTrace(Exception e)
at System.Environment.get_StackTrace()
at Altiris.ASDK.ASDKException.CreateDetailsInfo(String exceptionName)
at Altiris.ASDK.ASDKException..ctor(String exceptionName, String message, Exception innerException)
at Altiris.ASDK.DS.ObjectManagement.ThrowGenericAPIException(Exception e, String method)
at Altiris.ASDK.DS.ComputerManagement.AuthenticateUser(String username, String password, String domain)
at Altiris.ASDK.DS.Web.ComputerManagementService.GetComputerID(String computerSearchPhrase, Int32 computerSearchType)
at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean verifyAccess)
at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean verifyAccess)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)
at System.Web.Services.Protocols.WebServiceHandler.Invoke()
at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()
at System.Web.Services.Protocols.SyncSessionlessHandler.ProcessRequest(HttpContext context)
at System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
at System.Web.HttpApplication.ResumeSteps(Exception error)
at System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
at System.Web.HttpRuntime.ProcessRequest(HttpWorkerRequest wr)
at System.Web.Hosting.ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)</stackTrace>
<innerException/>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
Do you have any idea what is wrong? Do I need some additional permissions to use web services?
Thanks.
Gregi