In my C# application, I am calling DFS as a service, by making service references to the wsdl files on the DFS server. Next, I create an object of type PassthroughQuery and assign it the DQL alter type statement. Using a valid QueryServicePortClient object, I call its execute method and pass in my PassthroughQuery object as a parameter, as well as the QueryExecution object as a parameter.
However, my program throws an exception with the error message:
"QUERY" action failed.
And the confusing stack trace of:
Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at D6_Value_Assistance_Manager.QueryService.QueryServicePort.execute(executeRequest request)
at D6_Value_Assistance_Manager.QueryService.QueryServicePortClient.D6_Value_Assistance_Manager.QueryService.QueryServicePort.execute(executeRequest request) in C:\Derrick\ProgramCode\Documentum\D6_Value_Assistance_Manager\Service References\QueryService\Reference.cs:line 5001
at D6_Value_Assistance_Manager.QueryService.QueryServicePortClient.execute(Query query, QueryExecution execution, OperationOptions options) in C:\Derrick\ProgramCode\Documentum\D6_Value_Assistance_Manager\Service References\QueryService\Reference.cs:line 5009
at D6_Value_Assistance_Manager.DfsWrapper.updateValueAssistance(String customType, String customAttribute, String valueAssistanceValues) in C:\Derrick\ProgramCode\Documentum\D6_Value_Assistance_Manager\DfsWrapper.cs:line 332
What type of object should I instantiate my DFS query as so it can execute ALTER TYPE DQL queries?