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
[email protected]
http://www.dankulp.com/blog

Reply via email to