axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saminda Wishwajith Abeyruwan (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-656) Support for basic authentication
Date Wed, 17 May 2006 13:45:06 GMT
    [ http://issues.apache.org/jira/browse/AXIS2-656?page=comments#action_12412175 ] 

Saminda Wishwajith Abeyruwan commented on AXIS2-656:
----------------------------------------------------

This has been fixed as follows,

Options options = new Options();
            options.setTo(targetEPR);

            HttpTransportProperties.BasicAuthentication
basicAuthentication = new HttpTransportProperties().new
BasicAuthentication();
            basicAuthentication.setUsername("username");
            basicAuthentication.setPassword("password");


options.setProperty(org.apache.axis2.transport.http.HTTPConstants.BASIC_AUTHENTICATION,basicAuthentication);


            //Blocking invocation
            ServiceClient sender = new ServiceClient();
            sender.setOptions(options);
            OMElement result = sender.sendReceive(payload);

Please test it and let us know, so that we can class the issue.

> Support for basic authentication
> --------------------------------
>
>          Key: AXIS2-656
>          URL: http://issues.apache.org/jira/browse/AXIS2-656
>      Project: Apache Axis 2.0 (Axis2)
>         Type: New Feature

>   Components: client-api
>     Reporter: Petri Hakala
>     Priority: Minor

>
> There is no support for basic authentication when making webservice calls via ServiceClient
class. I see there is basic authentication support for proxy server but not for direct connection.
> It would be nice to have something following:
> ServiceClient client = new ServiceClient();
> client.getOptions().setUsername("username");
> client.getOptions().setPassword("password");
> Axis 1.3 have these in class org.apache.axis.client.Stub.
> -pete-

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message