cancel
Showing results for 
Search instead for 
Did you mean: 

Using web service requests to the 'getRepositories'

suvaraj
Champ in-the-making
Champ in-the-making
Hi,

I am trying some web service requests to the "getRepositories" service under the WSDL, http://localhost:8080/alfresco/cmis/RepositoryService using the soapUI tool.

The request is

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cmis.org/2008/05">

<soapenv:Header>
<wsseSmiley Frustratedecurity xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soapenv:mustUnderstand="1">
<wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Created>2009-01-20T17:05:10.609Z</wsu:Created>
<wsu:Expires>2010-01-20T20:05:22.609Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:Username>vinila</wsse:Username>
<wsseSmiley Tongueassword Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">TICKET_1c07c25b8dfae8e5746d877337c529aaa8b0ea7a</wsseSmiley Tongueassword>
</wsse:UsernameToken>
</wsseSmiley Frustratedecurity>
</soapenv:Header>

<soapenv:Body>
<ns:getRepositories/>
</soapenv:Body>

</soapenv:Envelope>

The response is

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<wsseSmiley Frustratedecurity xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsu:Timestamp wsu:Id="Timestamp-25511702" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Created>2009-02-04T14:36:03.515Z</wsu:Created>
<wsu:Expires>2009-02-04T14:41:03.515Z</wsu:Expires>
</wsu:Timestamp>
</wsseSmiley Frustratedecurity>
</soap:Header>
<soap:Body>
<soap:Fault>
<faultcode>soapSmiley Frustratederver</faultcode>
<faultstring>Incorrect password</faultstring>
</soap:Fault>
</soap:Body>
</soap:Envelope>

In the response, I get this SOAP fault: "Incorrect password".

The password used in the request was obtained from, http://localhost:8080/alfresco/service/ … n&pw=admin.

Am i missing something here? Please let me know how to resolve this issue.

Thanks
5 REPLIES 5

eliseosoto
Champ in-the-making
Champ in-the-making
Hi, did you solve the issue? I'm having the same problem.

erictice
Champ in-the-making
Champ in-the-making
Is this still an issue for you?  Have you tried calling the Restful APIs instead?

jmetzger
Champ in-the-making
Champ in-the-making
I expect to have the same problem once I get my first one solved – unfortunately I don't have the option to use the Restful API.  I'm not sure how the login and password are sent in the web service API.  Is it part of the soap header?  An example would be very nice.

Thanks,
Jim Metzger

mrogers
Star Contributor
Star Contributor
Yes you can put a ticket into the HTTP header fields.

jmetzger
Champ in-the-making
Champ in-the-making
I think I understand - Can I send an HTTP post to http://aiim.alfrescodemo.com/alfresco/cmis/RepositoryService with the username and password as SOAP headers?  Sorry, I'm a bit ignorant about the layer below the XML payload.