How to pass credential from dot Net client to Java
I have a Web Service built in Java, and the dot Net client is accessing the same. For the Java WS I have request authentication handler, which accepts object of org.apache.axis.MessageContext class as parameter, which contains user name and password. From the Java client we can add user name and password in the service itself, which are also passed with the MessageContext. from the dot net client i am using following code to set the credential but it does not reach to the handler class.
MyWebService ser = new MyWebService();
NetworkCredential cred = new NetworkCredential("shishir", "jain");
ser.Credentials = cred;
Can someone help me to find the correct way to pass the credential to the Java WS ?