AnsweredAssumed Answered

Visual Studio - CMIS - Autentication

Question asked by bedhead on Dec 16, 2009
Latest reply on Jan 7, 2010 by bedhead

I have got a problem by trying out the CMIS interface. I'd like to develop an application in visual studio, which is using the CMIS Web services.

Binding the Web services into the project has been no problem. Also creating an instance of this webservices was very easy.

I got the problem when i was trieing out methods of the webservice.
For example when i trie to call the "getRepositories" method:

   RepositoryService.RepositoryService repositoryService = null;
   repositoryService = new AlfrescoWebCMISTest.RepositoryService.RepositoryService();

   AlfrescoWebCMISTest.RepositoryService.cmisExtensionType cmisExtType = new AlfrescoWebCMISTest.RepositoryService.cmisExtensionType();
   cmisRepositoryEntryType[] reps = repositoryService.getRepositories(cmisExtType);

I got the following exception:

System.Web.Services.Protocols.SoapHeaderException: An error was discovered processing the <wsse:Security> header
   bei System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   bei System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   bei AlfrescoWebCMISTest.RepositoryService.RepositoryService.getRepositories(cmisExtensionType extension) in C:\workspace\trunk\components\CMIS\AlfrescoWebCMISTest\AlfrescoWebCMISTest\Web References\RepositoryService\Reference.cs:Zeile 102.
   bei AlfrescoWebCMISTest.Form1.TestRepositoryService() in C:\workspace\trunk\components\CMIS\AlfrescoWebCMISTest\AlfrescoWebCMISTest\Form1.cs:Zeile 51.

I expect that there is anywhery a need to autenticate. I was trieing an authentication with the network credentials, but this doesnt work.
Has anybody expierence with using the CMIS services in VisualStudio? Sample code would be very helpful.