Looking at the request nd the error message I've got the
idea that there is
a authentication/authorization problem with the Web
Service, not the
UsernameToken. Usually the UdernameToken Digest check
does
not do authentication or authorization. This is also
supported by the
error message saying
".../EmailValidation.asmx".
The UsernameToken contains the user name "TestDev". Is
this user registered
and a password supplied to the Web Service (the correct
one)?
The
SOAP body also contains names, probably sender and receiver names.
Must
the
sender or receiver name match the name in the UsernameToken?
Regards,
Werner
<soapenv:Fault> <faultcode>soapenv:FailedAuthen
Von: Soactive Inc [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 15. März 2006 16:12
An: Barry McGann
Cc: [email protected]; [email protected]
Betreff: Re: WS-Security UsernameToken Issue (WSS4J-based Java client vs. .NET server)tication</faultcode> <faultstring>The security token could not be authenticated or authorized</faultstring> <faultactor> http://ws.mycoservices.com/mycoEmailValidation/V2/EmailValidation.asmx </faultactor> <detail> <string/> </detail> </soapenv:Fault>
On 3/15/06, Barry McGann <[EMAIL PROTECTED]> wrote:What error message are you getting?
Soactive Inc wrote:
> Hi All,
>
> I am trying to access a .NET service with a Java/Axis client (using
> WSS4J) and am getting a security-related error. Here are the details:
>
> * Web Service: on .NET uses WS-Security UsernameToken (with Password
> Digest)
>
> * Request Message
>
> <soapenv:Envelope
> xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="
> http://www.w3.org/2001/XMLSchema"
> xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Header> <wsse:Security xmlns:wsse="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
> <wsse:UsernameToken xmlns:wsse="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
> <wsse:Username xmlns:wsse="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">TestDev</wsse:Username>
> <wsse:Password Type="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest"
> xmlns:wsse="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">R7bh5dDlYgjCurx6Dwq9ki39lQg=</wsse:Password>
> <wsse:Nonce xmlns:wsse="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">/tA24bdIc0uwX7euUqvMVQ==</wsse:Nonce>
> <wsu:Created xmlns:wsu="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2006-03-14T22:34:50.971Z</wsu:Created>
> </wsse:UsernameToken> </wsse:Security> </soapenv:Header>
> <soapenv:Body> <ValidateEmail
> xmlns="urn:ws-mycoservices-com:mycoEmailValidation:EmailValidation:v2">
> xmlns="urn:ws-mycoservices-com:mycoEmailValidation:EmailValidation:v2">
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]></Email> </ValidateEmail>
> </soapenv:Body> </soapenv:Envelope>
>
>
> * Response Message
>
> <soapenv:Envelope xmlns:soapenv="
> http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd=" http://www.w3.org/2001/XMLSchema" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body>
> <soapenv:Fault> <faultcode>soapenv:FailedAuthentication</faultcode>
> <faultstring>The security token could not be authenticated or
> authorized</faultstring> <faultactor>
> http://ws.mycoservices.com/mycoEmailValidation/V2/EmailValidation.asmx</faultactor>
> <detail> <string/> </detail> </soapenv:Fault> </soapenv:Body>
> </soapenv:Envelope>
>
> Any inputs towards appropriately troubleshooting and resolving this
> issue would be appreciated.
>
> Regards.
