12-16-2009 06:45 AM
RepositoryService.RepositoryService repositoryService = null;
repositoryService = new AlfrescoWebCMISTest.RepositoryService.RepositoryService();
AlfrescoWebCMISTest.RepositoryService.cmisExtensionType cmisExtType = new AlfrescoWebCMISTest.RepositoryService.cmisExtensionType();
cmisRepositoryEntryType[] reps = repositoryService.getRepositories(cmisExtType);
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.
01-07-2010 02:39 PM
public partial class RepositoryService : System.Web.Services.Protocols.SoapHttpClientProtocoll
to:public partial class RepositoryService : Microsoft.Web.Services3.WebServicesClientProtocol
localhost.RepositoryService rs = new Alfresco.localhost.RepositoryService();
addSecurityHeaderCmis(rs);
private static void addSecurityHeaderCmis(Microsoft.Web.Services3.WebServicesClientProtocol service)
{
UsernameToken userToken = new UsernameToken("admin","admin", (PasswordOption)2);
service.RequestSoapContext.Security.Timestamp.TtlInSeconds = (long)300;
service.RequestSoapContext.Security.Tokens.Add(userToken);
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.