Benson,

On Wednesday 08 August 2007 15:57, Benson Margulies wrote:
> Question 1: If I just change the generated @javax.jws.WebService to
> take out the wsdl location option, will the default collapse to the
> standard ?wsdl location?

Not sure what that question is asking.   On the server side, what will 
happen is it will use the annotations in the code to produce a wsdl if 
someone asks for it via ?wsdl.    On the client side, you'll just need 
to specify the ?wsdl location when you create the service.   


> Question 2: Does CXF has a side-door so that I can put a WSDL file on
> classpath and have its contents served up as the response to ?wsdl?
> Obviously, if I avail myself of this, I'm continuing to treat the wsdl
> as normative, but I'm avoiding having to make my own arrangements to
> serve it up.

There are always side/back doors for these things...   :-)

1) Leave the wsdlLocation annotations, but use a "classpath:" URL.
wsdlLocation="classpath:/wsdl/MyService.wsdl"

2) Leave the wsdlLocation, but point to something that is setup with a 
JAX-WS catalog.  (little complex)

3) If you are programatically creating the endpoint with 
Endpoint.publish(...), you can do:
Endpoint ep = Endpoint.create(....);
ep.setProperty(MessageContext.WSDL_DESCRIPTION, "/path/to/wsdl");
ep.publish(...);

4) You can completely configure the wsdl stuff via the ServiceFactory 
stuff if you want.



-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
[EMAIL PROTECTED]
http://www.dankulp.com/blog

Reply via email to