The axis tools generate code that only runs in the axis runtime, not CXF.   If 
you want code for CXF, you need to use the CXF tools.   (actually, the JAX-WS 
RI tools can also be used since CXF is JAX-WS compliant)

Dan


On Fri February 27 2009 11:31:16 am kays wrote:
> What should I look for in my environment variables?  What should be set
> particularly?
> Why shouldn't I use axis jars?  Aren't those needed for WSDL processing?
>
> Pardon me for many questions, I am new to this area,
>
> Thanks,
> Kays
>
> Sean O'Callaghan wrote:
> > Hi Kays,
> >
> > You should have a look at your environment and classpath as this
> > stacktrace indicates you are using axis jars, which you shouldn't be.
> >
> > Seán.
> >
> >
> >
> > -----Original Message-----
> > From: kays [mailto:[email protected]]
> > Sent: 27 February 2009 15:33
> > To: [email protected]
> > Subject: RE: Using wsdl2java behind a proxy server
> >
> >
> > I get a PARSE_ERROR at which looks like this:
> > org.xml.sax.SAXParseException: content is not allowed in prolog.
> >         at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(Unknown Source)
> >         at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> >         at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> >         at
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(Code
> >Genera tionEngine.java:288)
> >         at
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationE
> >ngine. java:111)
> >         ... 2 more
> > Caused by: org.xml.sax.SAXParseException: Content is not allowed in
> > prolog.
> >         at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
> >         at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown
> > Source)
> >         ... 7 more
> >
> > Thanks,
> > Kays
> >
> > Sean O'Callaghan wrote:
> >> Hi,
> >>
> >> Are you able to connect to the schemas using a browser, just to see if
> >> they are available?
> >>
> >> What parsing error do you get?
> >>
> >>
> >>
> >> -----Original Message-----
> >> From: kays [mailto:[email protected]]
> >> Sent: 26 February 2009 18:50
> >> To: [email protected]
> >> Subject: Re: Using wsdl2java behind a proxy server
> >>
> >>
> >> I have the same error message while trying to access an external wsdl,
> >> but my
> >> system is not behind a proxy server.  When I tried running wsdl2java
> >> using a
> >> local copy of the wsdl file, I got a parsing error?  How to overcome
> >> this
> >> and get wsdl2java generate the stubs?
> >>
> >> Thanks
> >> Kays
> >>
> >> dale77 wrote:
> >>> Hello,
> >>>
> >>> how do I use wsdl2java behind a proxy server?
> >>>
> >>> I get "java.net.ConnectException: Connection refused: connect" trying
> >>
> >> to
> >>
> >>> access an external wsdl on our LAN. Normally, I would configure our
> >>
> >> proxy
> >>
> >>> server details with the software (e.g. curl -x proxy:3128 etc). How do
> >>
> >> I
> >>
> >>> do this with wsdl2java?
> >>>
> >>> Thanks
> >>>
> >>> Dale
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Using-wsdl2java-behind-a-proxy-server-tp21986005p2
> >> 2230940.html
> >> Sent from the cxf-user mailing list archive at Nabble.com.
> >
> > --
> > View this message in context:
> > http://www.nabble.com/Using-wsdl2java-behind-a-proxy-server-tp21986005p22
> >248157.html Sent from the cxf-user mailing list archive at Nabble.com.

-- 
Daniel Kulp
[email protected]
http://www.dankulp.com/blog

Reply via email to