Hi raft,

> > and for curiosity, what tool is running when i invoke 
> serviceName?wsdl ?
> > isn't it a part of cxf ? if so i don't understand why 
> java2ws and ?wsdl
> > generates different results

It is part of CXF.

There is a difference in behaviour as there are different classes being used to 
generate the wsdl at runtime when you pass in ?wsdl as a query than used by the 
java2ws tool.

At runtime the query is handled by a WSDLQueryhandler class (in the cxf-rt-core 
artifact under the org.apache.cxf.transport.http package)
The java2ws tool uses the WSDL11Generator class (in the cxf-tools-java2ws 
artifact under the org.apache.cxf.tools.java2wsdl.generator.wsdl11 package)

Regards,

Seán.







> > 
> > thanks,
> > r a f t
> > 
> > 
> > dkulp wrote:
> >> 
> >> On Wednesday 26 November 2008 11:12:24 am raft wrote:
> >>> hello,
> >>>
> >>> i'm using java first approach. the java2ws and 
> serviceUrl?wsdl generate
> >>> different forms of wsdl documents. to be precise the 
> later generates two
> >>> wsdl documents where one imports the other. is it 
> possible to change
> >>> this
> >>> behaviour ?
> >> 
> >> Technically, the one generated from java2ws is wrong, or 
> at least not per 
> >> jaxws/jws spec.   Probably a bug in the tool.
> >> 
> >>> is it possible to configure or specify the wsdl generator 
> >>> running in response to serviceUrl?wsdl ?
> >> 
> >> Make sure both the "Impl" class and the Interface have @WebService
> >> annotations 
> >> and that both of them have the SAME targetNamespace defined.   That
> >> should do 
> >> it.   Per spec, if they don't have the same target namespace, the
> >> "logical" 
> >> part should be in one wsdl/namespace and the physical part 
> in another.   
> >> That's what you are seeing.
> >> 
> >> -- 
> >> Daniel Kulp
> >> [EMAIL PROTECTED]
> >> http://dankulp.com/blog
> >> 
> >> 
> > 
> > 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/configuring-the-WSDL-generator-at-servic
eUrl-wsdl-tp20703988p20732209.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to