AnsweredAssumed Answered

Using SoapUI to access the CMIS web services

Question asked by eliseosoto on Mar 11, 2009
Latest reply on Oct 3, 2013 by jyothsnareddy
Here's an overview of what I've done so far in order to use the CMIS Web Service implementation using the SoapUItool.

This assumes that you have the Alfresco Labs 3 Server running with the default admin/admin username.

The first thing I do is add this WSDL to SoapUI: http://localhost:8080/alfresco/wsdl/authentication-service.wsdl
And then I call startSession like this:
<soapenv:Envelope xmlns:soapenv="" xmlns:ns="">
This returns a different ticket every time, here's an example:
<soapenv:Envelope xmlns:soapenv="" xmlns:xsd="" xmlns:xsi="">
      <startSessionResponse xmlns="">

Then I add the RepositoryService WSDL (http://localhost:8080/alfresco/cmis/RepositoryService?wsdl) and configure WS-Security by double-clicking the Project Name in the Navigator like this:

Username: admin
Password: The ticket (i.e. TICKET_610f5e78c8e4932181abb7ef7f8a405719ec07b6)
Must Understand: Checked
Add Nonce: Checked
Add Created: Checked
Password Type: PasswordDigest (as seen in some other topics in this forums, please search)

Then I set this to be used in the Outgoing WSS of the Aut section of the Request:

However when I invoke getRepositories like this (raw request):
<soapenv:Envelope xmlns:ns="" xmlns:soapenv="">
      <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="">
         <wsse:UsernameToken wsu:Id="UsernameToken-26993204" xmlns:wsu="">
            <wsse:Password Type="">ITpkPgLw8IrNtexohxt4WhVlpUM=</wsse:Password>

I get this error:
<soap:Envelope xmlns:soap="">
      <wsse:Security xmlns:wsse="">
         <wsu:Timestamp wsu:Id="Timestamp-31502959" xmlns:wsu="">
         <faultcode xmlns:ns1="">ns1:FailedAuthentication</faultcode>
         <faultstring>The security token could not be authenticated or authorized</faultstring>

The security token could not be authenticated or authorized, this is the problem I have right now. What am I doing wrong? Why isn't Alfresco accepting my password?

Please help  8)