cURL / Mailing Lists / curl-users / Single Mail

curl-users

"The security token could not be authenticated or authorized"

From: thomas Armstrong <tarmstrong_at_gmail.com>
Date: Tue, 19 Feb 2008 10:58:04 +0100

Hi.

I'm trying to use cURL to reproduce a SOAP call by using one x509 cert
which works fine:

curl \
   --data @file.xml \
   --header "Content-Type: text/xml; charset=utf-8" \
   --header "SOAPAction: http://webserv.domain.com/getPersonalData" \
   -v \
   --key sslcert/private/cakey.crt \
   --cert sslcert/cacert.crt \
   https://webserv.domain.com/WebService4/users.asmx

But I receiving this XML error message:
------------
<soap:Body>
        <soap:Fault>
                <faultcode xmlns:q0="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">q0:FailedAuthentication</faultcode>
                <faultstring>The security token could not be authenticated or
authorized</faultstring>
                <faultactor>https://webserv.domain.com/WebService4/users.asmx</faultactor>
        </soap:Fault>
</soap:Body>
----------------

I didn't see anything about tokens on the webservice documentation.

Does anybody have experience with this issue? Must I modify the call?

Thank you very much.
Received on 2008-02-19