Hi there, this is my first post.I'm testing CMIS using the Alfresco Comunity 3.2r2 (version 1.0) and trying to develop consumers for the webservices binding. I have found examples for previous versions but the library has changed since then. Apart from the code itself I'm experiencing dificulties with the athentication. It seems that a Security Header needs to be added manually but I cannot make this work in C#. Is this the only way to manage authentication? do you have any basic consumer for C# for v1.0? I'm getting this expection:An error was discoverd while processing the <wsse
ecurity> headerI read a post in this forum (http://forums.alfresco.com/en/viewtopic.php?f=45&t=23902) and that it didnt complain about the header but threw another exception…
System.InvalidOperationException: El cliente encontró el tipo de contenido de respuesta 'multipart/related; type="application/xop+xml";
boundary="—-=_Part_0_1958553033.1265048810741"; start="<root.message@cxf.apache.org>"; start-info="text/xml"', pero se esperaba 'text/xml'.
Error de la solicitud con el mensaje de error:
–
——=_Part_0_1958553033.1265048810741
Content-Type: application/xop+xml; charset=UTF-8; type="text/xml";
Content-Transfer-Encoding: binary
Content-ID: <root.message@cxf.apache.org>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsu:Timestamp
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-1151103944"><wsu:Created
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2010-02-01T18:26:50.742Z</wsu:Created><wsu:Expires
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2010-02-01T18:31:50.742Z</wsu:Expires></wsu:Timestamp></wsse:S
ecurity></soap:Header><soap:Body><createFolderResponse xmlns="http://docs.oasis-open.org/ns/cmis/messaging/200908/"
xmlns:ns2="http://docs.oasis-open.org/ns/cmis/core/200908/"><objectId>workspace://SpacesStore/57701031-2949-4936-b89c-466de3b2de8d</objectId><extension
/></createFolderResponse></soap:Body></soap:Envelope>
——=_Part_0_1958553033.1265048810741–
–.
en System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean
asyncCall)
en System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
en WindowsApplication1.ObjectService.ObjectService.createFolder(String repositoryId, cmisPropertiesType properties, String folderId, String[] policies,
cmisAccessControlListType addACEs, cmisAccessControlListType removeACEs, cmisExtensionType& extension) en C:\Documents and Settings\Mis documentos\Visual
Studio 2005\Projects\WindowsApplication1\WindowsApplication1\Web References\ObjectService\Reference.cs:línea 726
en WindowsApplication1.CMIS.CMISBase.createFolder(String name) en C:\Documents and Settings\Mis documentos\Visual Studio
2005\Projects\WindowsApplication1\WindowsApplication1\CMIS\CMISBase.cs:línea 107}
Below you may find the examples that I have used:C#http://craigrandall.net/archives/2009/01/consuming-cmis-wsdl-in-visual-studio/ –> version 0.5JAVAhttp://cmisfs.fmui.de/Thx guys 😃