Axis 2 - How to access sharepoint web service that does not allow anonymous log in

I have a JSP file calling Sharepoint 2007 web service using Axis 2.
It worked fine in my local testing environment. However, the production IIS server does not allow anonymous log in, and I get 401 error code.
The JSP has login ID and password to pass, but can't figure out how to pass to IIS.
Does anyone have sample code accessing web service in IIS that does not allow anonymous?
Thank you your help.
hyungminleeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
Can you explain this "JSP has login ID and password to pass"

is it a JSP page for login or the browser HTTP authentication based login?

a screen shot of login screen can explain better, later I can help you with http authentication with Axis 2.

Axis 2 supports many types of authentications explained here

http://ws.apache.org/axis2/1_1/http-transport.html#preemptive_auth
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
hyungminleeAuthor Commented:
My jsp is part of a web application users have to log in using their Active Directory ID/Pass. When they log in, I modified the login page to save their id and password in the web session.
My JSP which needs to access the sharepoint web service retrieves the id and password from session, so that I can pass to the web service.
Your solution looks like what I am looking for. I cannot test until Monday though.
Thank you very much for your help.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.