You need to use the JaxWsClientFactoryBean.

On Thu, Jun 11, 2009 at 6:37 PM, Suneet Shah<[email protected]> wrote:
> Hello
>
> I am new to cxf and need to write a jax-ws client. Is this the recommended
> approach?
>
> http://cwiki.apache.org/CXF20DOC/developing-a-consumer.html
>
> Is it possible to create a client that uses an approach similar to the
> simple client?
>
> ClientProxyFactoryBean factory = new ClientProxyFactoryBean();
> factory.setServiceClass(SpmlComplete.class);
>
> factory.setAddress("http://localhost:8080/idm-connector-core/IAMConnectorService";);
> SpmlComplete client = (SpmlComplete) factory.create();   ....
>
> I have several services that are based on the same interface would like to
> build a generic client that can call these services.
>
> Regards
> Suneet
>

Reply via email to