Hi Kurt, do you have some sample (soap ui project files and) requests to the http://localhost:8080/juddiv3/services/inquiry?wsdl for the find_service or find_business using those FindQualifiers?
I have access to the soapui 4.x free version or the 3.6.1 pro version. Thanks for all your help... Sean On Thu, Sep 29, 2011 at 11:25 AM, Kurt T Stam <[email protected]> wrote: > Hi SK, > > The easiest way to get help is to use SoapUI and post the XML request along > with what you are expecting and the results you are getting rather then > posting code! > > --Kurt > > On 9/29/11 1:40 PM, S K wrote: >> >> Hello. >> >> Does anyone have either any sample query XMLs or sample java inquiry >> client code that would exercise the various FindQualifiers >> (ALL_LIKE_KEYS, AND_ALL_KEYS, etc). >> >> I have generated my own tModel and some sample businesses and services >> but I am finding that the FindQualifiers does not work -- except for >> the CASE INSENSITIVE qualifier. >> >> I am trying to build a search GUI to make searching for businesses or >> services easier. >> >> For example, I have this junit test code, I have wrapped and >> encapsulated some of the JUDDI inquiry parameter building in my own >> classes, but I think you will understand my junit code... >> >> >> @Before >> public void setUp() { >> try { >> String clazz = >> UDDIClientContainer.getUDDIClerkManager(null). >> >> getClientConfig().getUDDINode("default").getProxyTransport(); >> Class transportClass = ClassUtil.forName(clazz, >> Transport.class); >> if (transportClass!=null) { >> Transport transport = (Transport) >> transportClass.getConstructor(String.class).newInstance("default"); >> UDDISecurityPortType security = >> transport.getUDDISecurityService(); >> inquiry = >> transport.getUDDIInquiryService(); >> >> // Our publisher is now saved, so now we >> want to retrieve its >> authentication token >> GetAuthToken getAuthTokenMyPub = new >> GetAuthToken(); >> getAuthTokenMyPub.setUserID("uddi"); >> getAuthTokenMyPub.setCred("uddi"); >> AuthToken myPubAuthToken = >> security.getAuthToken(getAuthTokenMyPub); >> System.out.println ("myPub AUTHTOKEN = " + >> myPubAuthToken.getAuthInfo()); >> assertTrue(myPubAuthToken.getAuthInfo() != >> null); >> authInfo = myPubAuthToken.getAuthInfo(); >> } >> } >> catch (Exception e) { >> e.printStackTrace(); >> } >> } >> >> @Test >> public void testOrLike() { >> try { >> InquiryOptions opt = new InquiryOptions(); >> >> opt.setCaseInsensitivity(InquiryOptions.SEARCH_OPTION_CASE_INSENSITIVE_TRUE); >> >> opt.setMatchType(InquiryOptions.SEARCH_OPTION_MATCH_TYPE_APPROXIMATE); >> >> opt.setConditionalOperator(InquiryOptions.SEARCH_OPTION_CONDITIONAL_OR_LIKE_KEYS); >> String results = >> InquiryUtil.findService("service", opt, authInfo, >> inquiry); >> System.out.println(results); >> // seems to return nothing --- it should >> return something, right? >> } >> catch (Exception e) { >> e.printStackTrace(); >> } >> } > >
