cancel
Showing results for 
Search instead for 
Did you mean: 

The security token could not be authenticated or authorized

Former Member
0 Kudos

Hi Experts,

I have trouble consuming an external Webservice.

The errormessage I get back is the same like in the topic:

The security token could not be authenticated or authorized

I created the consumerproxy and created the destination and LP with soamanager.

Authentication is set to User/Password Document Auth.

The external Webservice uses axis2 and the lampart-module ?

The SOAP-Message, which is sent looks good.

Does anybody have an idea, how to fix the problem ?

Attached is the soap-message which is received by the WebService:


SAP Request:
POST /axis2/services/WebService HTTP/1.1
content-type: text/xml; charset=utf-8
content-length: 2501
accept-language: en
sap-language: E
soapaction:
"urn:webservice.entitlement.com/getAccountsByAppIdAndTimestamp"
accept: text/xml
sap-srt_id: 20090213/143828/v1.00_final_6.40/DDF9D3950F05ECF1A7C5003005F978AF
user-agent: SAP Web Application Server (1.0;700)
host: XXXXXXXXXX.XXXXXXX.XXX:12345
accept-encoding: gzip
authorization: Basic U0FQUjQxOmNlNFNBUFI0MSE=

<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp wsu:Id="ts-DDF9D3950F05EDF1A7C5003005F97">
<wsu:Created>2009-02-13T13:38:28Z</wsu:Created>
<wsu:Expires>2009-02-13T13:41:28Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken wsu:Id="un-DDF9D3950F05EEF1A7C5003005F97">
<wsse:Username>username</wsse:Username>
<wsse:Password 
Type="http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">
password</wsse:Password>
<wsse:Nonce 
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">
p6HP3zCOhYE49bb9pwJOpQ==</wsse:Nonce><wsu:Created>2009-02-13T13:38:28Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
<n0:MessageID xmlns:n0="http://schemas.xmlsoap.org/ws/2004/08/addressing">uuid:ddf9d395-0f05-ebf1-a7c5-003005f978af</n0:MessageID>
<n0:Action soap-env:mustUnderstand="1" xmlns:n0="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope">urn:webservice.entitlement.com/getAccountsByAppIdAndTimestamp</n0:Action>
<n0:To soap-env:mustUnderstand="1" xmlns:n0="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope"><a href="http://XXXXXXXX.XXXXXX.XXX:12345/axis2/services/WebService/" TARGET="test_blank">http://XXXXXXXX.XXXXXX.XXX:12345/axis2/services/WebService/</a></n0:To>
<wsa:From xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
<wsa:Address><a href="http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous" TARGET="test_blank">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a></wsa:Address>
</wsa:From>
<wsa:ReplyTo xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
<wsa:Address><a href="http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous" TARGET="test_blank">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a></wsa:Address>
</wsa:ReplyTo>
<wsa:FaultTo xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
<wsa:Address><a href="http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous" TARGET="test_blank">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a></wsa:Address>
</wsa:FaultTo>
</soap-env:Header>
<soap-env:Body>
<n0:AccountsByAppIdAndTimestampRequestElement xmlns:n0="urn:model.webservice.entitlement.com"
xmlns:prx="urn:sap.com:proxy:G41:/1SAI/TAS8CEE6380D43FCD63154F:700:2008/01/11">
<n0:ApplicationID>CRM</n0:ApplicationID>
<n0:Timestamp>20080315104548Z</n0:Timestamp>
</n0:AccountsByAppIdAndTimestampRequestElement>
</soap-env:Body>
</soap-env:Envelope>

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI

Please check if the following link helps you.

http://www.pascalalma.net/2007/05/23/using-soapui-for-testing-your-webservice/

Regards

Chen

Answers (1)

Answers (1)

Former Member
0 Kudos

Sorry for my late response ...

Thanks for the hint. I´ll give it a try an will come back to this thread then