cc'ding the jUDDI user's mailing list with this one.

SearchByQos
-purpose: find all service endpoints that include a QoS metric as
defined by the WSDM QoS Constants class

  FindService fb = new FindService();
                fb.setAuthInfo(token);
                org.uddi.api_v3.FindQualifiers fq = new
org.uddi.api_v3.FindQualifiers();
                fq.getFindQualifier().add(UDDIConstants.APPROXIMATE_MATCH);
                fq.getFindQualifier().add(UDDIConstants.OR_ALL_KEYS);
                fb.setFindQualifiers(fq);
                fb.getName().add((new Name(UDDIConstants.WILDCARD, null)));

                fb.setTModelBag(new TModelBag());

fb.getTModelBag().getTModelKey().addAll(WSDMQosConstants.getAllQOSKeys());
inquiry.findService(fb);

The last line there that adds all WSDM QoS tmodel keys is the key
there. You need to have at least one service registered with one of
those keys.
The tModelInstanceInfo with the key and the metric goes here:
/business/service/bindingTemplate/tModelInstanceInfos[]


On Mon, Aug 21, 2017 at 4:52 AM, Nesrine Hamdani
<hamdani.nesr...@gmail.com> wrote:
> Hi Alex,  can you help me to run SearchByQos , in the two case run on simple
> classe java it diplays erros : there is not main class and when i past on
> servlet it displays other errors like in last mail.
>
> Thank you
>
> Le 11 août 2017 18:04, "Nesrine Hamdani" <hamdani.nesr...@gmail.com> a écrit
> :
>>
>> Hi Alex , i try to run SearchByQos sample i ceate sevlet and past the code
>> . there is some errors :
>> Infos:   visiting unvisited references
>> Grave:   Exception while invoking class
>> org.glassfish.webservices.WebServicesDeployer prepare method
>> Grave:   java.lang.RuntimeException: Servlet
>> UDDIClientSubscriptionListenerImpl implements 2 web service endpoints  but
>> must only implement 1
>> at
>> org.glassfish.webservices.WebServicesDeployer.prepare(WebServicesDeployer.java:185)
>> at
>> com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:925)
>> at
>> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:434)
>> at
>> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
>> at
>> org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
>> at
>> com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:539)
>> at
>> com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:535)
>> at java.security.AccessController.doPrivileged(Native Method)
>> ....................
>>
>> thank you
>>

Reply via email to