<div dir="ltr">Hi All,<div><br></div><div>We're in the process of developing a Active Directory password filter for midPoint though are having a problem calling the web services interface from C#.</div><div><br></div><div>
We've imported the WSDL as a service definition and have successfully authenticated to the service though when we call the searchObject method we get the following exception:</div><div><br></div><div><div>System.ServiceModel.FaultException`1 was unhandled</div>
<div> Message=Fault occurred while processing.</div><div> Source=mscorlib</div><div> StackTrace:</div><div> Server stack trace: </div><div> at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)</div>
<div> at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)</div><div> at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)</div>
<div> at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)</div><div> Exception rethrown at [0]: </div><div> at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)</div>
<div> at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)</div><div> at MidPointClientSample.MidpointModelWebService.modelPortType.searchObjects(searchObjects request)</div>
<div> at MidPointClientSample.Program.searchUserByName(modelPortType modelPort, String username) in C:\Users\paulh.AD\Desktop\MidPointClientSample\MidPointClientSample\MidPointClientSample\Program.cs:line 89</div><div>
at MidPointClientSample.Program.Main(String[] args) in C:\Users\paulh.AD\Desktop\MidPointClientSample\MidPointClientSample\MidPointClientSample\Program.cs:line 30</div><div> at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)</div>
<div> at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()</div><div> at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)</div>
<div> at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)</div><div> at System.Threading.ThreadHelper.ThreadStart()</div><div> InnerException: </div>
</div><div><br></div><div><br></div><div><br></div><div>We've compared the SOAP request and response and its identical to that of the Java sample client, which tells me midPoint is performing correctly though C# isn't properly interpreting the response.</div>
<div><br></div><div>I was wondering if anyone had attempted to use the web service from C# before and had any success?</div><div><br></div><div>Regards</div><div>Paul</div></div>