You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "Trenaman, Adrian" <Ad...@iona.com> on 2008/01/24 22:24:31 UTC
Under what circumstances does a CXF server read the WSDL file?
Hi there,
I was playing around with some JAXWS services in CXF, and am wondering
under what circumstances does a service actually go and read the WSDL
file. In the SOAP/HTTP case it doesn't have to read from the WSDL file -
all the information should be implicit from the annotations in the WSDL
code so there's no need to read from the WSDL at all.
However, if the JMS transport is being used then the WSDL file has to be
read, because the service endpoint information is only found in the
WSDL. I note that in the jms_queue demo the service explicitly uses the
wsdlLocation attribute to point to the WSDL file.
So, is the rule "go to the WSDL only when you need to?", or, is the rule
"go to the WSDL only if the wsdlLocation has been specified in an
annotation?"
Thanks,
Ade.
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland
Re: Under what circumstances does a CXF server read the WSDL file?
Posted by Daniel Kulp <dk...@apache.org>.
The latter. If there is a wsdlLocation attribute, we always grab the
wsdl. Additionaly, if the config (like spring config) specifies a wsdl
location, we use it.
Dan
On Thursday 24 January 2008, Trenaman, Adrian wrote:
> Hi there,
>
> I was playing around with some JAXWS services in CXF, and am wondering
> under what circumstances does a service actually go and read the WSDL
> file. In the SOAP/HTTP case it doesn't have to read from the WSDL file
> - all the information should be implicit from the annotations in the
> WSDL code so there's no need to read from the WSDL at all.
>
> However, if the JMS transport is being used then the WSDL file has to
> be read, because the service endpoint information is only found in the
> WSDL. I note that in the jms_queue demo the service explicitly uses
> the wsdlLocation attribute to point to the WSDL file.
>
> So, is the rule "go to the WSDL only when you need to?", or, is the
> rule "go to the WSDL only if the wsdlLocation has been specified in an
> annotation?"
>
> Thanks,
>
> Ade.
>
>
>
>
>
>
>
>
>
>
> ----------------------------
> IONA Technologies PLC (registered in Ireland)
> Registered Number: 171387
> Registered Address: The IONA Building, Shelbourne Road, Dublin 4,
> Ireland
--
J. Daniel Kulp
Principal Engineer, IONA
dkulp@apache.org
http://www.dankulp.com/blog