You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by cbwhitebu <cb...@gmail.com> on 2011/12/08 02:06:23 UTC

Assocating WSDLs with a WebServiceProvider using code

New to CFX and JAX-WS so please forgive my basic ignorance. I might be asking
the wrong questions.

Is there a way to associate multiple WSDL URIs with a WebServiceProvider?

I am trying to right a generic provider that can handle invocations of
operations defined in different WSDLs. I know I can add an annotation for a
single WSDL using an annotation
(@WebServiceProvider(wsdlLocation="test.wsdl")) but I need to add multiple
WSDLs for the same provider. Of course each Endpoint would only handle a
single service.

--
View this message in context: http://cxf.547215.n5.nabble.com/Assocating-WSDLs-with-a-WebServiceProvider-using-code-tp5057418p5057418.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Assocating WSDLs with a WebServiceProvider using code

Posted by Daniel Kulp <dk...@apache.org>.
On Wednesday, December 07, 2011 5:06:23 PM cbwhitebu wrote:
> New to CFX and JAX-WS so please forgive my basic ignorance. I might be
> asking the wrong questions.
> 
> Is there a way to associate multiple WSDL URIs with a WebServiceProvider?
> 
> I am trying to right a generic provider that can handle invocations of
> operations defined in different WSDLs. I know I can add an annotation for a
> single WSDL using an annotation
> (@WebServiceProvider(wsdlLocation="test.wsdl")) but I need to add multiple
> WSDLs for the same provider. Of course each Endpoint would only handle a
> single service.

How are you creating the services?  Spring XML?   JaxWsServerFactoryBean? 
Endpoint.publish(...)?

The spring xml and the factory beans all have wsdlLocation properties that can 
be used to set the wsdl that is used for that service.   That would be the 
suggested route to go.


-- 
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com