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.
I only can get the Access point if I know the BindingTemplate key, which I get via Pluto portal released with the UDDI Server.
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.
Am I missing something?, is that not the correct way of getting a service template and its WSDL later?
Thanks.
Oscar.
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.
So,
Hope it helps.
Thanks to 秦玉珠 for the help. The code can be as follows: