[
https://issues.apache.org/jira/browse/AXIS2-2678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12499172
]
Brendan McKenna commented on AXIS2-2678:
----------------------------------------
I can confirm that this is occurring under slightly different circumstances.
We have web services (built and deployed using Axis 1.3) which require BASIC
authentication. Using essentially the same set of code as was given above,
with an Axis2 1.2 (ADB) client, we get the same results - the username and
password are not present in the request being sent to the service, so the
request fails.
> Security requirements are not satisfied because the security header is not
> present in the incoming message.
> -----------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-2678
> URL: https://issues.apache.org/jira/browse/AXIS2-2678
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: Addressing, kernel, modules, transports, wsdl
> Affects Versions: 1.2
> Environment: WSE 3.0 Service, Win XP Client m/c , AXIS2 1.2 Client,
> Reporter: Shweta Desai
> Priority: Critical
>
> For Authentication I have written belwo code at Client side.
> Servcie is written in WSE 3.0 using microsoft technology.Client is sync code.
> ServiceClient serviceclient=caledd._getServiceClient();
> Options o =serviceclient.getOptions();
> HttpTransportProperties.Authenticator basicAuthentication = new
> HttpTransportProperties.Authenticator();
> basicAuthentication.setUsername("username");
> basicAuthentication.setPassword("password");
> //basicAuthentication.setAllowedRetry(true);
>
> o.setProperty( org.apache.axis2.Constants.Configuration.TRANSPORT_URL
> ,"http:\\myurl");
> o.setProperty(HTTPConstants.AUTHENTICATE, basicAuthentication);
> But I have received error as written below.
> May 16, 2007 2:47:58 PM org.apache.commons.httpclient.HttpMethodBase
> readResponse
> INFO: Discarding unexpected response: HTTP/1.1 100 Continue
> org.apache.axis2.AxisFault: Security requirements are not satisfied because
> the security header is not present in the incoming message.
> at
> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:434)
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:373)
> at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
> Your input is very much appriciated.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]