Apache jUDDI:查找模板 [英] Apache jUDDI: Finding Templates
问题描述
我正在使用jUDDI v3.0.4客户端查询UDDI服务器(juddi-portal-bundle-3.0.4).我的兴趣是找到一个服务(我成功了)并查询其绑定模板,实际上是获得访问点WSDL以便以后可以查询WebService.
I'm using jUDDI v3.0.4 client to inquiry a UDDI server (juddi-portal-bundle-3.0.4). My interest is to find a service (which I succeeded) and query for its Binding Templates, in fact to get the Access Point WSDL to be able to query the WebService later.
仅当我知道BindingTemplate密钥时才能获得访问点,该密钥是通过与UDDI服务器一起发布的Pluto门户获得的.
I only can get the Access point if I know the BindingTemplate key, which I get via Pluto portal released with the UDDI Server.
当我尝试使用FindBinding对象查询服务的BindingTemplates时,出现"javax.xml.ws.soap.SOAPFaultException:必须至少提供一个categoryBag,find_tModel或tModelBag".但是我不能在FindBinding对象中填写任何内容.
When I try to query for the BindingTemplates of a service, with a FindBinding object, I get "javax.xml.ws.soap.SOAPFaultException: At least one categoryBag, find_tModel or tModelBag must be supplied". But I cannot fill in any of those in the FindBinding object.
我丢失了什么吗?,那不是以后获取服务模板及其WSDL的正确方法吗?
Am I missing something?, is that not the correct way of getting a service template and its WSDL later?
谢谢.
奥斯卡.
推荐答案
我找到了解决方案. 关键是通过业务服务对象查找绑定模板,该模板将携带到BindingTemplate对象中.
I found out the solution. The key is to look for the binding templates through the business service object, this carries to the BindingTemplate object.
所以
- 通过UDDIInquiryPortType提供的findService(FindService fs)API查询服务密钥.
- 对于返回的ServiceList,获取包含服务密钥的ServiceInfo对象.
- 给定您要查找的服务密钥(findService可能通过Name对象确定范围),通过UDDIInquiryPortType提供的getServiceDetail(GetServiceDetail sd)API获得服务详细信息,其中,GetServiceDetail对象已填充服务密钥
- 上一个查询返回的ServiceDetail对象列表将引导您到包含Web服务定义(WSDL)的BindingTemplates.
希望有帮助.
这篇关于Apache jUDDI:查找模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!