deus me livre
melhor saber o art.5 da CF do que chegar nesse nível ai
primeiro que ngm mais deveria estar usando webservice baseado em soap em 2020
segundo que se vc esta usando, em java, vc deveria estar usando @webservice, ou seja, a especificação JAW-WS cuja implementação é a METRO
saber da especificidade de uma framework que pode prover isso é loucura
para new
This class helps take a Service and expose as a server side endpoint. If there is no Service, it can create one for you using a ReflectionServiceFactoryBean.
public class ServerFactoryBean extends AbstractWSDLBasedEndpointFactory
For most scenarios you'll want to just have the ServerFactoryBean handle everything for you. In such a case, usage might look like this:
ServerFactoryBean sf = new ServerFactoryBean();
sf.setServiceClass(MyService.class);
sf.setAddress("http://localhost:8080/MyService");
sf.create();
You can also get more advanced and customize the service factory used:
ReflectionServiceFactory serviceFactory = new ReflectionServiceFactory();
serviceFactory.setServiceClass(MyService.class);
..
\/\/ Customize service factory here...
serviceFactory.setWrapped(false);
...
ServerFactoryBean sf = new ServerFactoryBean();
sf.setServiceFactory(serviceFactory);
sf.setAddress("http://localhost:8080/MyService");
sf.create();
fonte: "https://cxf.apache.org/javadoc/latest/org/apache/cxf/frontend/ServerFactoryBean.html"