This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
How to set Username and pwd in SOAP header using Axis 1.4
posted 9 years ago
I was trying to invoke a call a webservice with static stub which was built using axis1.1 and was getting this exception: java.lang.NoSuchFieldError: WRAPPED Since I was using axis1.4 inmy classpath and the package containing this constant between Axis1.1 and 1.2 has been changed. The problem occurs when you run a 1.1 generated app stub/skeleton against the 1.2+ libraries.
I rebuilt the stubs using axis1.4 now (WSDL2Java), but I am not able to pass the username and pwd which is required to use this webservice; if I try to set the username and pwd i get IllegalNamespaceExcpetion....can somebody help me with this please...I am stucked up....