Bonjour,Je découvre actuellement le WebService Alfresco/CMIS fourni par la version community-5.0-a afin de l'utiliser dans une future application. J'ai réussi pour l'instant à récuperer les informations des mes Repository à l'aide de la méthode getRepositories fourni par RepositoryService.wsdl .Ci-dessous, l'enveloppe SOAP envoyé :
<?xml version="1.0" encoding="utf-16"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soap:mustUnderstand="1">
<wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Created>2014-07-10T14:28:36.972Z</wsu:Created>
<wsu:Expires>2014-07-10T14:33:36.972Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>admin</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">admin</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soap:Header>
<soap:Body>
<getRepositories xmlns="http://docs.oasis-open.org/ns/cmis/messaging/200908/">
<extension>
<MyElement xmlns=""></MyElement>
</extension>
</getRepositories>
</soap:Body>
</soap:Envelope>
Ci-dessous, l'enveloppe SOAP reçu (qui me renvoie donc le résultat) :
<soap:Envelope xmlns:soap="http://schemas.xml soap.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-229">
<wsu:Created>2014-07-10T14:32:32.056Z</wsu:Created>
<wsu:Expires>2014-07-10T14:37:32.056Z</wsu:Expires>
</wsu:Timestamp>
</wsse:Security>
</soap:Header>
<soap:Body>
<getRepositoriesResponse xmlns="http://docs.oasis-open.org/ns/cmis/messaging/200908/" xmlns:ns2="http://docs.oasis-open.org/ns/cmis/core/200908/" xmlns:ns3="http://www.alfresco.org">
<repositories>
<repositoryId>b9fcfabe-5df4-4ff1-9c86-17d58c40864e</repositoryId>
<repositoryName>Main Repository</repositoryName>
</repositories>
</getRepositoriesResponse>
</soap:Body>
</soap:Envelope>
Lorsque je récupere l'ID du Repository renvoyé dans la réponse (b9fcfabe-5df4-4ff1-9c86-17d58c40864e) et que je l'utilise avec la méthode getRepositoryInfo, j'obtiens une exception.Ci-dessous, l'enveloppe SOAP envoyé :
<?xml version="1.0" encoding="utf-16"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soap:mustUnderstand="1">
<wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Created>2014-07-10T14:52:09.807Z</wsu:Created>
<wsu:Expires>2014-07-10T14:57:09.807Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>admin</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">admin</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soap:Header>
<soap:Body>
<getRepositoryInfo xmlns="http://docs.oasis-open.org/ns/cmis/messaging/200908/">
<repositoryId>b9fcfabe-5df4-4ff1-9c86-17d58c40864e</repositoryId>
<extension>
<MyElement xmlns="">
</MyElement>
</extension>
</getRepositoryInfo>
</soap:Body>
</soap:Envelope>
L'exception obtenue est :
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: size
at System.Net.ConnectStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at WebServiceStudio.MessageTracer.DumpBytes(Stream stream, Int32 length, StringBuilder sb)
at WebServiceStudio.MessageTracer.ReadMessage(Stream from, Int32 len, String contentType)
at WebServiceStudio.WSSWebResponse.DumpResponse(WebResponse response)
at WebServiceStudio.MainForm.DumpResponse(HttpWebResponse response)
at WebServiceStudio.MainForm.SendWebRequest()
Auriez-vous une idée d'où cela peut venir ?