I would just download the WSDL locally from a browser and build your stubs from that (which is the way most people do anyway). Also, I'd strongly recommend managing your project with Maven (like all our samples) instead of using the Eclipse middleman--Eclipse should just be for coding, not project management. See here: http://www.jroller.com/gmazza/entry/soap_client_tutorial

Glen

On 07/05/2012 10:17 PM, alfred wrote:
Hi, the WSDL I am trying to access is hosted remotely and authentication
protected.  I am using Eclipse Helios, TOMCAT 7, and CFX 2.6.1.  An attempt
to create the client side stubs etc. fails because the authentication to the
WSDL is not provided.  If I use simple axis or Axis2 then they both prompt
me to enter a username and password however using CXF I get no such prompt.
I get the same result if I run the wsdl2java from the command line.  I have
tried options such as "user:pwd@" in front of the URL to the WSDL but still
the same response.  Any clues on how to get the process to request the
authentication details or to enter them into the command some how?

WSDLToJava Error: org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create
wsdl definition from :
http://xxx.xxx.xxx.xxx/xxxxx/services/ASyncActivityService?wsdl
Caused by : WSDLException: faultCode=PARSER_ERROR: Problem parsing
'http://xxx.xxx.xxx.xxx/xxxxx/services/ASyncActivityService?wsdl'.:
java.io.IOException: Server returned HTTP response code: 401 for URL:
http://xxx.xxx.xxx.xxx/xxxxx/services/ASyncActivityService?wsdl

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


--
Glen Mazza
Talend Community Coders
coders.talend.com
blog: www.jroller.com/gmazza

Reply via email to