UDDIInquiryJAXRS { @GET @Path("/JSON/businessList") @Produces("application/json") @org.apache.cxf.jaxrs.model.wadl.Description("Returns the business keys of the first 100 registered businesses in JSON") public KeyBag getBusinessListJSON() throws WebApplicationException { return getBusinessListData(); }  @GET @Path("/JSON/businessKey/{id}") @Produces("application/json") @org.apache.cxf.jaxrs.model.wadl.Description("Returns the details of a business entity in JSON") org.uddi.api_v3.BusinessEntity getBusinessDetailJSON(@PathParam("id") String id); @GET @Path("/XML/businessKey/{id}") @Produces("application/xml") @org.apache.cxf.jaxrs.model.wadl.Description("Returns the details of a business entity in XML") org.uddi.api_v3.BusinessEntity getBusinessDetailXML(@PathParam("id") String id); @GET @Path("/XML/tModelKey/{id}") @Produces("application/xml") @org.apache.cxf.jaxrs.model.wadl.Description("Returns the details of a tModel entity in XML") org.uddi.api_v3.TModel getTModelDetailXML(@PathParam("id") String id); @GET @Path("/JSON/tModelKey/{id}") @Produces("application/json") @org.apache.cxf.jaxrs.model.wadl.Description("Returns the details of a tModel entity in JSON") org.uddi.api_v3.TModel getTModelDetailJSON(@PathParam("id") String id); @GET @Path("/JSON/serviceKey/{id}") @Produces("application/json") @org.apache.cxf.jaxrs.model.wadl.Description("Returns the details of a service entity in JSON") org.uddi.api_v3.BusinessService getServiceDetailJSON(@PathParam("id") String id); @GET @Path("/JSON/getDetail") @Produces("application/json") @org.apache.cxf.jaxrs.model.wadl.Description("Returns the details of a UDDI entity in JSON, use query parameters" + "serviceKey,businessKey,tModelKey, bindingKey") Object getDetailJSON(@QueryParam("serviceKey") String serviceKey,
                @QueryParam("businessKey") String businessKey,
                @QueryParam("tModelKey") String tModelKey,
                @QueryParam("bindingKey") String bindingKey); @GET @Path("/XML/getDetail") @Produces("application/xml") @org.apache.cxf.jaxrs.model.wadl.Description("This method implements the UDDIv3 spec for HTTP GET Inquiry services. Returns the details of a UDDI entity in XML, use query parameters" + "serviceKey,businessKey,tModelKey, bindingKey") Object getDetailXML(@QueryParam("serviceKey") String serviceKey,
                @QueryParam("businessKey") String businessKey,
                @QueryParam("tModelKey") String tModelKey,
                @QueryParam("bindingKey") String bindingKey); @GET @Path("/XML/serviceKey/{id}") @Produces("application/xml") @org.apache.cxf.jaxrs.model.wadl.Description("Returns the details of a service entity in XML") org.uddi.api_v3.BusinessService getServiceDetailXML(@PathParam("id") String id); @GET @Path("/JSON/opInfo/{id}") @Produces("application/json") @org.apache.cxf.jaxrs.model.wadl.Description("Returns the operational details of a given entity in JSON") org.uddi.api_v3.OperationalInfo getOpInfoJSON(@PathParam("id") String id); @GET @Path("/XML/opInfo/{id}") @Produces("application/xml") @org.apache.cxf.jaxrs.model.wadl.Description("Returns the operational details of a given entity in XML") org.uddi.api_v3.OperationalInfo getOpInfoXML(@PathParam("id") String id); @GET @Path("/JSON/bindingKey/{id}") @Produces("application/json") @org.apache.cxf.jaxrs.model.wadl.Description("Returns the binding details of a given entity in JSON") org.uddi.api_v3.BindingTemplate getBindingDetailJSON(@PathParam("id") String id); @GET @Path("/XML/bindingKey/{id}") @Produces("application/xml") @org.apache.cxf.jaxrs.model.wadl.Description("Returns the binding details of a given entity in XML") org.uddi.api_v3.BindingTemplate getBindingDetailXML(@PathParam("id") String id); @GET @Path("/JSON/endpointsByService/{id}") @Produces("application/json") @org.apache.cxf.jaxrs.model.wadl.Description("Returns the service access points of a given service in JSON") UriContainer geEndpointsByServiceJSON(@PathParam("id") String id); @GET @Path("/XML/endpointsByService/{id}") @Produces("application/xml") @org.apache.cxf.jaxrs.model.wadl.Description("Returns the service access points of a given service in XML") UriContainer getEndpointsByServiceXML(@PathParam("id") String id); @GET @Path("/XML/businessList") @Produces("application/xml") @org.apache.cxf.jaxrs.model.wadl.Description("Returns the business keys of the first 100 registered businesses in XML") KeyBag getBusinessListXML(); @GET @Path("/JSON/businessList") @Produces("application/json") @org.apache.cxf.jaxrs.model.wadl.Description("Returns the business keys of the first 100 registered businesses in JSON") KeyBag getBusinessListJSON(); @GET @Path("/XML/serviceList") @Produces("application/xml") @org.apache.cxf.jaxrs.model.wadl.Description("Returns the Service keys of the first 100 registered services in XML") KeyBag getServiceListXML(); @GET @Path("/JSON/serviceList") @Produces("application/json") @org.apache.cxf.jaxrs.model.wadl.Description("Returns the Service keys of the first 100 registered services in JSON") KeyBag getServiceListJSON(); @GET @Path("/XML/tModelList") @Produces("application/xml") @org.apache.cxf.jaxrs.model.wadl.Description("Returns the tModel keys of the first 100 registered services in XML") KeyBag getTModelListXML(); @GET @Path("/XML/businessSearch") @Produces("application/xml") @org.apache.cxf.jaxrs.model.wadl.Description("Returns the search results for registered businesses in XML") BusinessList getBusinessSearchXML(@QueryParam("name") String name,
                @QueryParam("lang") String lang,
                @QueryParam("findQualifiers") String findQualifiers,
                @QueryParam("maxrows") Integer maxrows,
                @QueryParam("offset") Integer offset); @GET @Path("/JSON/businessSearch") @Produces("application/json") @org.apache.cxf.jaxrs.model.wadl.Description("Returns the search results for registered businesses in JSON") BusinessList getBusinessSearchJSON(@QueryParam("name") String name,
                @QueryParam("lang") String lang,
                @QueryParam("findQualifiers") String findQualifiers,
                @QueryParam("maxrows") Integer maxrows,
                @QueryParam("offset") Integer offset); @GET @Path("/JSON/serviceSearch") @Produces("application/json") @org.apache.cxf.jaxrs.model.wadl.Description("Returns the search results for registered services in JSON") ServiceList getServiceSearchJSON(@QueryParam("name") String name,
                @QueryParam("lang") String lang,
                @QueryParam("findQualifiers") String findQualifiers,
                @QueryParam("maxrows") Integer maxrows,
                @QueryParam("offset") Integer offset); @GET @Path("/XML/serviceSearch") @Produces("application/json") @org.apache.cxf.jaxrs.model.wadl.Description("Returns the search results for registered services in XML") ServiceList getServiceSearchXML(@QueryParam("name") String name,
                @QueryParam("lang") String lang,
                @QueryParam("findQualifiers") String findQualifiers,
                @QueryParam("maxrows") Integer maxrows,
                @QueryParam("offset") Integer offset); @GET @Path("/JSON/tModelList") @Produces("application/json") @org.apache.cxf.jaxrs.model.wadl.Description("Returns the tModel keys of the first 100 registered services in JSON") KeyBag getTModelListJSON(); @GET @Path("/JSON/searchTModel") @Produces("application/json") @org.apache.cxf.jaxrs.model.wadl.Description("Returns the search results for registered tModel in JSON") TModelList getTModelSearchJSON(@QueryParam("name") String name,
                @QueryParam("lang") String lang,
                @QueryParam("findQualifiers") String findQualifiers,
                @QueryParam("maxrows") Integer maxrows,
                @QueryParam("offset") Integer offset); @GET @Path("/XML/searchTModel") @Produces("application/json") @org.apache.cxf.jaxrs.model.wadl.Description("Returns the search results for registered tModel in XML") TModelList getTModelSearchXML(@QueryParam("name") String name,
                @QueryParam("lang") String lang,
                @QueryParam("findQualifiers") String findQualifiers,
                @QueryParam("maxrows") Integer maxrows,
                @QueryParam("offset") Integer offset);  }
@Test public void testgetBusinessListJSON() { System.out.println("testgetBusinessListJSON"); String id = UUID.randomUUID().toString(); UriContainer expResult = null; KeyBag serviceListXML = instance.getBusinessListJSON(); Assert.assertNotNull(serviceListXML); Assert.assertFalse(serviceListXML.getBusinessKey().isEmpty()); }