Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to set Username and pwd in SOAP header using Axis 1.4  RSS feed

Aaryan Sareen
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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....

Thanks in advance..
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!