Hi,

Ah, I thought you wanna access a basic auth protected wsdl in client stub code.

And no, I don't think there's a way in cxf wsdl2java you can specify/ enable basic auth. You may need use some script likely use wget which you can specify username/passward and download the protected wsdl to local folder and then use cxf wsdl2java to generate code against the local copy(Or manually download the wsdls if you believe it not changed so often).

Freeman
On 2012-7-6, at 下午12:48, alfred wrote:

Hi Freeman, thanks for your info. Unfortunately I am very new to this CXF game so if you can share a bit more detail that would be most appreciated. I have tried putting that snippet in various config files but running the wsdl2java from within Eclipse still does not authenticate. Can you let me know specifically where I need to place it? At the moment the project is as simple as it can be with no source code included yet. I do have a web.xml but the snippet was not liked in there. I created a CXF.xml file but that did not seem to get picked up either. And google has not been all that
helpful for the last two hours.

--
View this message in context: 
http://cxf.547215.n5.nabble.com/401-on-client-creation-from-WSDL-tp5710657p5710659.html
Sent from the cxf-user mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: http://weibo.com/u/1473905042










Reply via email to