本文整理汇总了Java中org.apache.cxf.jaxws.JaxWsProxyFactoryBean.setPassword方法的典型用法代码示例。如果您正苦于以下问题:Java JaxWsProxyFactoryBean.setPassword方法的具体用法?Java JaxWsProxyFactoryBean.setPassword怎么用?Java JaxWsProxyFactoryBean.setPassword使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.cxf.jaxws.JaxWsProxyFactoryBean
的用法示例。
在下文中一共展示了JaxWsProxyFactoryBean.setPassword方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: helloWorldjaxWsProxyFactoryBean
import org.apache.cxf.jaxws.JaxWsProxyFactoryBean; //导入方法依赖的package包/类
@Bean(name = "helloWorldJaxWsProxyBean")
public HelloWorldPortType helloWorldjaxWsProxyFactoryBean() {
JaxWsProxyFactoryBean jaxWsProxyFactoryBean = new JaxWsProxyFactoryBean();
jaxWsProxyFactoryBean.setServiceClass(HelloWorldPortType.class);
jaxWsProxyFactoryBean.setAddress(environment
.getProperty("helloworld.address"));
jaxWsProxyFactoryBean.setBus(bus());
// set the user name for basic authentication
jaxWsProxyFactoryBean.setUsername(environment
.getProperty("client.username"));
// set the password for basic authentication
jaxWsProxyFactoryBean.setPassword(environment
.getProperty("client.password"));
return (HelloWorldPortType) jaxWsProxyFactoryBean.create();
}
示例2: iniciFormulariExtern
import org.apache.cxf.jaxws.JaxWsProxyFactoryBean; //导入方法依赖的package包/类
private RespostaIniciFormulari iniciFormulariExtern(
ExpedientTipus expedientTipus,
String codiFormulari,
String taskId,
List<ParellaCodiValor> valors) {
JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
factory.setServiceClass(IniciFormulari.class);
if (expedientTipus.getFormextUrl() != null) {
factory.setAddress(expedientTipus.getFormextUrl());
if (expedientTipus.getFormextUsuari() != null)
factory.setUsername(expedientTipus.getFormextUsuari());
if (expedientTipus.getFormextContrasenya() != null)
factory.setPassword(expedientTipus.getFormextContrasenya());
} else {
String url = GlobalProperties.getInstance().getProperty(
"app.forms.service.url");
factory.setAddress(url);
String username = GlobalProperties.getInstance().getProperty(
"app.forms.service.username");
String password = GlobalProperties.getInstance().getProperty(
"app.forms.service.password");
if (username != null && !"".equals(username) && password != null && !"".equals(password)) {
factory.setUsername(username);
factory.setPassword(password);
}
}
return ((IniciFormulari)factory.create()).iniciFormulari(codiFormulari, taskId, valors);
}
示例3: createDbaasStub
import org.apache.cxf.jaxws.JaxWsProxyFactoryBean; //导入方法依赖的package包/类
/**
* create dbaas web service stub
*/
private synchronized void createDbaasStub() {
logger.debug("Initializing DBaaS webservice stub");
JaxWsProxyFactoryBean factoryBean = new JaxWsProxyFactoryBean();
factoryBean.setServiceClass(DbaasApiRemote.class);
factoryBean.setAddress(dbaasUrl);
factoryBean.setPassword(dbaasPassword);
factoryBean.setUsername(dbaasUsername);
dbaasStub = factoryBean.create(DbaasApiRemote.class);
}