THe given apache document helped to generate the client specific stubs etc. But i need to connect to a webservice which has BasicAuthentication.
My client app is calling a webservice which has basic authentication. How should i approach using java. I used wsdl2java to generate the stubs etc. But when i am actually calling the methos in the service, i am getting 401 unauthOrised..
Main Topics
Browse All Topics





by: D_M_DPosted on 2009-07-15 at 12:22:03ID: 24863058
In Java - Use the WSDL2Java jar to generate the client classes you'll need to call the web service. java/user- guide.html #WSDL2Java BuildingSt ubsSkeleto nsAndDataT ypesFromWS DL
en-us/libr ary/7h3yst b6(VS.71). aspx
Here's an example:
http://ws.apache.org/axis/
In .NET use the wsdl.exe file to generate your client classes. Here's an example:
http://msdn.microsoft.com/
You use the generated classed to invoke the web service.