[Midpoint-dev] Consuming the midPoint web service from C#

Pavol Mederly pavol.mederly at gmail.com
Fri Sep 20 09:48:16 CEST 2013


Hello Paul,

while having a look at the patch I've sent you ... what's the reason of 
implementing the password filter, anyway? Is it because you need to 
synchronize passwords from AD to midPoint?

If it is so, there is a prototype of such password synchronizer that we 
have prepared in cooperation with people at Comenius University in 
Bratislava. It uses standard Microsoft-supplied component, Password 
Synchronization Single Sign On Daemon (SSOD), which is able to push 
password changes from Windows host to any external box (Microsoft 
provides a Unix-side server). I've implemented the receiver side as a 
Java TCP server. Although it currently only decrypts password change 
notifications and prints password to the console, it should be easy to 
change it to push passwords to midPoint via local model Java API. If you 
would be interested in this, I could try to find the sources ;)

Of course, we will try to solve the C# webservice issue as well. I've 
created a jira for it: https://jira.evolveum.com/browse/MID-1603.

Best regards,
Pavol

On 17. 9. 2013 16:04, List User wrote:
> Hi All,
>
> 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#.
>
> 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:
>
> System.ServiceModel.FaultException`1 was unhandled
>   Message=Fault occurred while processing.
>   Source=mscorlib
>   StackTrace:
>     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.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 
> MidPointClientSample.MidpointModelWebService.modelPortType.searchObjects(searchObjects 
> request)
>        at MidPointClientSample.Program.searchUserByName(modelPortType 
> modelPort, String username) in 
> C:\Users\paulh.AD\Desktop\MidPointClientSample\MidPointClientSample\MidPointClientSample\Program.cs:line 
> 89
>        at MidPointClientSample.Program.Main(String[] args) in 
> C:\Users\paulh.AD\Desktop\MidPointClientSample\MidPointClientSample\MidPointClientSample\Program.cs:line 
> 30
>        at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, 
> String[] args)
>        at 
> Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
>        at System.Threading.ExecutionContext.Run(ExecutionContext 
> executionContext, ContextCallback callback, Object state, Boolean 
> ignoreSyncCtx)
>        at System.Threading.ExecutionContext.Run(ExecutionContext 
> executionContext, ContextCallback callback, Object state)
>        at System.Threading.ThreadHelper.ThreadStart()
>   InnerException:
>
>
>
> 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.
>
> I was wondering if anyone had attempted to use the web service from C# 
> before and had any success?
>
> Regards
> Paul
>
>
> _______________________________________________
> midPoint-dev mailing list
> midPoint-dev at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolveum.com/pipermail/midpoint-dev/attachments/20130920/7330e8f9/attachment.html>


More information about the midPoint-dev mailing list