Hi,

 

How I can get user name and password from MessageContext class object?

I use Axis2 release 1.0.  I write custom module and handler. It work correctly.

On client side I set username and password into options properties and send.

 

Options options = new Options();

options.setTransportInProtocol(Constants.TRANSPORT_HTTP);

           

            HttpTransportProperties.ProxyProperties basicAuthentication = new HttpTransportProperties().new ProxyProperties();

            basicAuthentication.setUserName("admin");

            basicAuthentication.setPassWord("axis2");

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

            options.setTo(targetEPR);

           

            ServiceClient serviceClient = new ServiceClient();

            serviceClient.setOptions(options);

                      

           

 

But on service side in handler my message context is empty.

 

Thank you

 

 

Best regards,Natalya Smirnova.

MERA NN /EMA/custom software

 

Reply via email to