You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by "Alex O'Ree (JIRA)" <ju...@ws.apache.org> on 2013/04/13 21:26:15 UTC
[jira] [Updated] (JUDDI-589) find qualifier signaturePresent
doesn't appear to follow the spec
[ https://issues.apache.org/jira/browse/JUDDI-589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alex O'Ree updated JUDDI-589:
-----------------------------
Description:
I should be able to use find_xxx api, only specifying a find qualifier of "signaturePresent" and returned only items that are signed. However i get the following message.
At least one name, categoryBag, find_tModel or tModelBag or name must be supplied. sample code below
FindService fs = new FindService();
fs.setFindQualifiers(new FindQualifiers());
fs.getFindQualifiers().getFindQualifier().add(UDDIConstants.SIGNATURE_PRESENT);
inquiry.findService(fs);
In addition, find qualifiers should have the logical AND operator, however when adding a % name value and approximateMatch, I get all records, even things that aren't signed.
FindService fs = new FindService();
fs.setFindQualifiers(new FindQualifiers());
fs.getFindQualifiers().getFindQualifier().add(UDDIConstants.SIGNATURE_PRESENT);
fs.getFindQualifiers().getFindQualifier().add(UDDIConstants.APPROXIMATE_MATCH);
Name n = new Name();
n.setValue("%");
fs.getName().add(n);
ServiceList findService = inquiry.findService(fs);
for (int i =0; i < findService.getServiceInfos().getServiceInfo().size(); i++)
{
System.out.println(ListToString(findService.getServiceInfos().getServiceInfo().get(i).getName()));
}
was:
I should be able to use find_xxx api, only specifying a find qualifier of "signaturePresent" and returned only items that are signed. However i get the following message.
At least one name, categoryBag, find_tModel or tModelBag or name must be supplied
> find qualifier signaturePresent doesn't appear to follow the spec
> -----------------------------------------------------------------
>
> Key: JUDDI-589
> URL: https://issues.apache.org/jira/browse/JUDDI-589
> Project: jUDDI
> Issue Type: Bug
> Reporter: Alex O'Ree
> Assignee: Kurt T Stam
>
> I should be able to use find_xxx api, only specifying a find qualifier of "signaturePresent" and returned only items that are signed. However i get the following message.
> At least one name, categoryBag, find_tModel or tModelBag or name must be supplied. sample code below
> FindService fs = new FindService();
> fs.setFindQualifiers(new FindQualifiers());
> fs.getFindQualifiers().getFindQualifier().add(UDDIConstants.SIGNATURE_PRESENT);
> inquiry.findService(fs);
> In addition, find qualifiers should have the logical AND operator, however when adding a % name value and approximateMatch, I get all records, even things that aren't signed.
> FindService fs = new FindService();
> fs.setFindQualifiers(new FindQualifiers());
> fs.getFindQualifiers().getFindQualifier().add(UDDIConstants.SIGNATURE_PRESENT);
> fs.getFindQualifiers().getFindQualifier().add(UDDIConstants.APPROXIMATE_MATCH);
> Name n = new Name();
> n.setValue("%");
> fs.getName().add(n);
> ServiceList findService = inquiry.findService(fs);
> for (int i =0; i < findService.getServiceInfos().getServiceInfo().size(); i++)
> {
> System.out.println(ListToString(findService.getServiceInfos().getServiceInfo().get(i).getName()));
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira