You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Juan David <jp...@hotmail.com> on 2009/09/09 02:12:17 UTC
Re: wsdl containing multiple ports and dynamic client
Hi Benjamin
I’m having the same issue, did you manage to find a solution?
Thanks in advance
Juan David
Benjamin Coiffe wrote:
>
> Hi,
>
>
>
> I have a WSDL that contains multiple ports binding. I can easily
> generate a Dynamic Client using the wsdl but I could not find how to set
> the port to use before calling invoke(String
> operationName,Object...parameters). The default behaviour is to execute
> the first port in the WSDL. But I want to be able to change that before
> invoking the Web Service. Any Ideas?
>
> Thanks,
>
>
>
> Benjamin Coiffe
>
>
>
>
>
--
View this message in context: http://www.nabble.com/wsdl-containing-multiple-ports-and-dynamic-client-tp15132973p25356355.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: wsdl containing multiple ports and dynamic client
Posted by Daniel Kulp <dk...@apache.org>.
The dynamic client has a variety of different "createClient" calls on it,
especially with the version in the latest versions of CXF.
public Client createClient(String wsdlUrl, ClassLoader classLoader)
public Client createClient(String wsdlUrl, ClassLoader classLoader,
List<String> bindingFiles)
public Client createClient(String wsdlUrl, QName service)
public Client createClient(String wsdlUrl, QName service,
List<String> bindingFiles)
public Client createClient(String wsdlUrl, QName service, QName port)
public Client createClient(String wsdlUrl, QName service, QName port,
List<String> bindingFiles)
public Client createClient(String wsdlUrl, QName service, ClassLoader
classLoader, QName port)
etc.....
One of those should do it for you.
Dan
On Tue September 8 2009 8:12:17 pm Juan David wrote:
> Hi Benjamin
>
> I’m having the same issue, did you manage to find a solution?
>
> Thanks in advance
>
> Juan David
>
> Benjamin Coiffe wrote:
> > Hi,
> >
> >
> >
> > I have a WSDL that contains multiple ports binding. I can easily
> > generate a Dynamic Client using the wsdl but I could not find how to set
> > the port to use before calling invoke(String
> > operationName,Object...parameters). The default behaviour is to execute
> > the first port in the WSDL. But I want to be able to change that before
> > invoking the Web Service. Any Ideas?
> >
> > Thanks,
> >
> >
> >
> > Benjamin Coiffe
>
--
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog