当前位置: 首页>>代码示例>>Java>>正文


Java JaxWsProxyFactoryBean.setPassword方法代码示例

本文整理汇总了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();
}
 
开发者ID:code-not-found,项目名称:jaxws-cxf,代码行数:18,代码来源:CxfClient.java

示例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);
}
 
开发者ID:GovernIB,项目名称:helium,代码行数:29,代码来源:FormulariExternDao.java

示例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);
}
 
开发者ID:orange-cloudfoundry,项目名称:elpaaso-core,代码行数:16,代码来源:DbaasService.java


注:本文中的org.apache.cxf.jaxws.JaxWsProxyFactoryBean.setPassword方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。