wso2 registry client
来源:互联网 发布:手机tool是什么软件 编辑:程序博客网 时间:2024/04/29 11:52
最近在研究wso2的registry,下面是我利用一个wso2 registry 4.5.3 服务器,写了一个客户端:
package wsClient;
import org.apache.axis2.AxisFault;
import org.apache.axis2.context.ConfigurationContext;
import org.apache.axis2.context.ConfigurationContextFactory;
import org.wso2.carbon.registry.core.exceptions.RegistryException;
import org.wso2.carbon.registry.core.session.UserRegistry;
import org.wso2.carbon.registry.ws.client.registry.WSRegistryServiceClient;
public class WSclient
{
public WSRegistryServiceClient getRegistry() throws AxisFault, RegistryException
{
//设计性能使其可以使用https协议
String GREG_HOME = "E:/SOA/wso2greg-4.5.3"; //wso2 registry 4.5.3在本地的存储路径
System.setProperty("javax.net.ssl.trustStore", GREG_HOME+"/repository/resources/security/client-truststore.jks");
System.setProperty("javax.net.ssl.trustStorePassword", "wso2carbon");
System.setProperty("javax.net.ssl.trustStoreType","JKS");
//参数初始化
System.setProperty("carbon.repo.write.mode", "true");
String axis2Repo = GREG_HOME + "/repository/deployment/client";
String axis2Conf = GREG_HOME + "/repository/conf/axis2/axis2_client.xml";
ConfigurationContext configContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem(axis2Repo, axis2Conf);
String username = "admin";
String password = "admin";
String serverURL = "https://localhost:9443/services/";
WSRegistryServiceClient registry = new WSRegistryServiceClient(serverURL,username,password,configContext);
return registry;
}
}
- wso2 registry client
- Mule学习之路_2.与WSO2 Registry集成之查询WSDL
- Can not obtain Oracle client information from registry
- Registry
- Registry
- Registry
- Registry
- wso2-BusinessActivityMonitor
- WSO2-BAM
- docker registry push错误“server gave HTTP response to HTTPS client”
- docker registry push错误“server gave HTTP response to HTTPS client”
- docker registry push错误“server gave HTTP response to HTTPS client”
- wso2插件安装过程
- WSO2之BusinessActivityMonitor(2)
- WSO2 ESB(1)
- WSO2 ESB(2)
- WSO2 ESB(3)
- WSO2 ESB(4)
- 网页的转发与重定向的区别
- 黑马程序员-何时使用抽象类和接口的理解
- Ubuntu 这一个月准备要回顾的内容。
- C++指向函数的指针
- Jquery form 插件原文档
- wso2 registry client
- mysql ERROR Access denied for user 'root'@'localhost'
- thinkphp官网瀑布流实现分享
- joomla的使用(一)
- wpf 使用DocumentViewer打印
- 【玩转cocos2d-x之二十一】多线程和同步01-pthread库
- LBS系统架构分析
- [HGE]-源码分析-11 sound
- win7 64位下 使用DOSBOX 进行汇编程序的编写调试