How about add a  method tryFromProxy()  in URIResolver ?
Tools or DynamicClientFactory can all get wsdl or other resource by
URIResolver.

Regards

Jim

> -----Original Message-----
> From: Dan Diephouse [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 05, 2007 10:52 AM
> To: [email protected]
> Subject: Re: wsdl2java when wsdl is on https and password protected.
>
>
> Where do you think the appropriate place to add this would be?
>
> Guillaume Alleon who is working on the Groovy Web Services
> support which use
> the CXF DynamicClientFactory has been bugging me about this too.
> He is just
> passing in a URL to the DCF. Is it possible to register a
> URLConnectionFactory that can handle proxies? Or do we need to add support
> for this somewhere else? Any ideas welcome :-)
>
> Thanks,
> - Dan
>
> On 4/4/07, James Mao <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > Sorry, we do not support this yet, please add this to wish list on [1]
> >
> > Cheers,
> > James.
> > [1] https://issues.apache.org/jira/browse/CXF
> >
> > > Hi List.
> > >
> > > I'm new here and new to web services.
> > >
> > > I have created a very simple web service using Glassfish and
> > > @Webservice annotations on a stateless session bean, which I can call
> > > using CXF.
> > >
> > > I'd like to do something very similar but with the web service
> > > requiring transport security and authentication, so https and
> > > username/password.
> > >
> > >
> > > Should wsdl2java be able to support this? Do web services
> work this way?
> > >
> > >
> > >
> > >
> > >
> > > What I've tried so far with no success.
> > >
> > >
> > >
> > >
> /home/peter/downloads/java/apache-cxf/cxf-2.0-incubator-M1/bin/wsdl2java
> > > -verbose -ant -client -d clientdirInsurance/
> > >
> >
> https://user:[EMAIL PROTECTED]:8181/InsuranceBrokerBeanService
> /InsuranceBrokerBean?wsdl
> > >
> > >
> > > Which moans about keystore and truststores, so rather than supply a
> > > whole bunch of -Djavax.net.ssl.keyStore=blah settings I though I'll
> > > download and save the WSDL locally.
> > > (should username/password be optional arguments to wsdl2java?)
> > >
> > >
> > >
> > > [EMAIL PROTECTED]:~/work/play/Tests/cxf$
> > >
> /home/peter/downloads/java/apache-cxf/cxf-2.0-incubator-M1/bin/wsdl2java
> > > -verbose -ant -client -d clientdirInsurance/
> > >
> >
> /home/peter/work/test/webservice3/WebService3Client/InsuranceBroke
> rBean.wsdl
> > >
> > >
> /home/peter/downloads/java/apache-cxf/cxf-2.0-incubator-M1/bin/wsdl2java
> > > wsdl2java -verbose -ant -client -d clientdirInsurance/
> > >
> >
> /home/peter/work/test/webservice3/WebService3Client/InsuranceBroke
> rBean.wsdl
> > >
> > > wsdl2java - 2.0-incubator-M1
> > >
> > > Error : Fail to create wsdl definition
> > >
> >
> file:/home/peter/work/test/webservice3/WebService3Client/Insurance
> BrokerBean.wsdl
> > >
> > >
> > > org.apache.cxf.tools.common.ToolException: Fail to create wsdl
> > > definition
> > >
> >
> file:/home/peter/work/test/webservice3/WebService3Client/Insurance
> BrokerBean.wsdl
> > >
> > >         at
> > > org.apache.cxf.tools.wsdl2java.processor.WSDLToProcessor.parseWSDL(
> > WSDLToProcessor.java:165)
> > >
> > >         at
> > > org.apache.cxf.tools.wsdl2java.processor.WSDLToProcessor.init(
> > WSDLToProcessor.java:360)
> > >
> > >         at
> > > org.apache.cxf.tools.wsdl2java.processor.WSDLToJavaProcessor.process(
> > WSDLToJavaProcessor.java:54)
> > >
> > >         at
> > > org.apache.cxf.tools.wsdl2java.WSDLToJava.execute(WSDLToJava.java:85)
> > >         at
> > >
> org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java
> > :69)
> > >
> > >         at
> > >
> org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java
> > :38)
> > >
> > >         at
> > > org.apache.cxf.tools.wsdl2java.WSDLToJava.main(WSDLToJava.java:218)
> > > Caused by: java.lang.NullPointerException
> > >         at java.util.Hashtable.get(Hashtable.java:334)
> > >         at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
> > >         at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
> > >         at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(Unknown Source)
> > >         at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown
> > > Source)
> > >         at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> > >         at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> > >         at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> > >         at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> > >         at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> > >         at
> > > org.apache.cxf.tools.wsdl2java.processor.WSDLToProcessor.parseWSDL(
> > WSDLToProcessor.java:157)
> > >
> > >         ... 6 more
> > >
> > >
> > >
> > >
> > > Many thanks
> > >
> > > Peter Henderson.
> > >
> > >
> >
> >
>
>
> --
> Dan Diephouse
> Envoi Solutions
> http://envoisolutions.com | http://netzooid.com/blog
>

Reply via email to