Hi,

I try to create a client proxy with the following code.
I set the namespace (http://xx.yy.zz/ ) and the service name("TheService"), which comes from a config file, with factory.setEndpointName(endpointName). But if I look for the endpoint at the underlying Client object, I get 'localPart' - MySEI and for 'namespaceURI' - http://cc.bb.aa/ instead of "TheService" and http://xx.yy.zz/
How could I set this values?

ClientProxyFactoryBean factory = new ClientProxyFactoryBean(); //set the SEI at the factory -> here aa.bb.cc.MySEI
       factory.setServiceClass(MySEI.class);
//set the specific service URL factory.setAddress(getServiceAdress()); //set the endpointName(namespace,serviceName);
       factory.setEndpointName(endpointName);
//create a proxy
       this.clientProxy = (MySEI) factory.create();

       //which endpoint is set at the underlying Client?
       Client cxfClient = ClientProxy.getClient(this.clientProxy);
logger.debug(cxfClient.getEndpoint().getService().getName().getNamespaceURI()); logger.debug(cxfClient.getEndpoint().getService().getName().getLocalPart());

thanks for help
Anne

Reply via email to