You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Sam Khan <sk...@SVTECHNOLOGY.com> on 2003/04/24 02:34:19 UTC
Issues with Authentication
Hi,
I'm receiving the following error when attempting to make an authenticated web service call:
AxisFault
faultCode: {http://xml.apache.org/axis/}Server.Unauthenticated
faultString: User 'null' not authenticated (unknown user)
faultActor: null
faultDetail:
stackTrace: AxisFault
faultCode: {http://xml.apache.org/axis/}Server.Unauthenticated
faultString: User 'null' not authenticated (unknown user)
faultActor: null
faultDetail:
User 'null' not authenticated (unknown user)
at org.apache.axis.handlers.SimpleAuthenticationHandler.invoke(SimpleAuthenticationHandler.java:106)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
/-------------------------------------------------------MESSAGE TRUNCATED -----------------------------------------------------------/
The call object is being stuffed as follows:
call.setProperty( Call.USERNAME_PROPERTY, "username" );
call.setProperty( Call.PASSWORD_PROPERTY, "password" );
Can anyone tell me what is causing the authentication info to either not get sent or not be recognised upon receipt by the axis server? I have noticed the request header does change when the call object is stuffed with the above values:
POST /lawport/services/GetMatters HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.1RC1 Host: localhost
Cache-Control: no-cache
Pragma: no-cache SOAPAction: ""
Content-Length: 1400
Authorization: Basic bHBhZG1pbjog ****** only appears when authentication info used *****
Any info would be greatly appreciated.
Thanks
Sam