cancel
Showing results for 
Search instead for 
Did you mean: 

Download URL is redirecting to Login page when using Read method in Content Webservice

senvasn
Champ in-the-making
Champ in-the-making
Hi,

I created the following SOAP message. Upon executing it I get the file URL. But when I hit that URL it is taking me to login screen instead of downloading the file directly. Pls help me :


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.alfresco.org/ws/service/content/1.0" xmlns:ns1="http://www.alfresco.org/ws/model/content/1.0">
  <soapenv:Header>
    <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" mustUnderstand="1">
      <wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-14">
        <wsu:Created>2013-04-15T15:42:43+05:30</wsu:Created>
        <wsu:Expires>2013-04-15T15:58:43+05:30</wsu:Expires>
      </wsu:Timestamp>
      <wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="UsernameToken-666">
        <wsse:Username>senthil</wsse:Username>
        <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">TICKET_7102042fa26be0d4759f142cfafcfb5457ce1884</wsse:Password>
      </wsse:UsernameToken>
    </wsse:Security>
    <ns:QueryConfiguration>
      <ns1:fetchSize>5000</ns1:fetchSize>
    </ns:QueryConfiguration>
  </soapenv:Header>
  <soapenv:Body>
    <ns:read>
      <ns:items>
        <ns1:nodes>
          <store>
            <scheme>workspace</scheme>
            <address>SpacesStore</address>
          </store>
          <uuid />
          <path>/app:company_home/app:user_homes/cm:senthil/cm:hi.txt</path>
        </ns1:nodes>
      </ns:items>
      <ns:property>{http://www.alfresco.org/model/content/1.0}content</ns:property>
    </ns:read>
  </soapenv:Body>
</soapenv:Envelope>
1 REPLY 1

jpotts
World-Class Innovator
World-Class Innovator
Have you tried appending &alf_ticket=[insert the same ticket you are using for this SOAP call] to the end of your download URL?

Jeff