在 OSGi 中公开 JAX-WS 远程服务绑定?
我有一个 Web 服务,我有 JAX-WS 生成的客户端绑定,如下所示:
// web service client generated by JAX-WS
@WebServiceClient( ... )
public class WebService_Service extends Service {
public WebService_Service(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
WebService getWebServiceSOAP() {
// ...
}
}
// web service interface generated by JAX-WS
@WebService( ... )
public interface WebService {
// operation methods
}
我想将配置的 WebService_Service(WSDL 位置和服务名称)公开为 OSGi 中的声明性服务。我只希望在可以正确构造实例时公开此服务 - 这要求 WSDL(在远程位置)可访问。
关于如何做到这一点的想法?
I have a web service that I have JAX-WS generated client bindings as below:
// web service client generated by JAX-WS
@WebServiceClient( ... )
public class WebService_Service extends Service {
public WebService_Service(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
WebService getWebServiceSOAP() {
// ...
}
}
// web service interface generated by JAX-WS
@WebService( ... )
public interface WebService {
// operation methods
}
I would like to expose a configured WebService_Service (WSDL location and service name) as a declarative service in OSGi. I only want this service to be exposed when an instance can be properly constructed - which requires that the WSDL (at the remote location) be accessible.
Thoughts on how to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论