ChainerIt:
To retrieve all businesses, the following code works with a jUDDI v3.0.4
installation.
Code that works on jUDDI v3.0.4:
UDDIInquiryPortType oInq = getUDDIInqWebSvc();
FindBusiness oFindBiz = new FindBusiness();
Name findName = new Name(); //
new code
FindQualifiers qualifiers = new FindQualifiers(); //
new code
findName.setValue("%");
// new code
qualifiers.getFindQualifier().add("approximateMatch");// new
code
oFindBiz.getName().add(findName); //
new code
oFindBiz.setFindQualifiers(qualifiers);
// new code
oFindBiz.setMaxRows(100);
oBusinessList = oInq.findBusiness(oFindBiz);
chainerlt wrote:
>
> Hey, I've also got a random problem (or lack of knowledge) about finding
> ALL business/services.
> I already can create/delete/find business/services but only if I know
> their exact names. For instance that's how I search for business by name:
>
>
>
>> FindBusiness fb = new FindBusiness();
>> fb.setAuthInfo(authToken.getAuthInfo()); //authToken = for instance
>> 'root's auth token
>> Name findName = new Name();
>> findName.setValue(searchPattern); //String searchPattern = should be
>> exact business name
>> fb.getName().add(findName);
>> BusinessList bl = inquiry.findBusiness(fb); // inquiry =
>> UDDIInquiryPortType object got from transport
>>
>
> and I have no idea how to get the list of ALL available business. Tried to
> put empty string "" or "%" in findName.setValue(searchPattern); but then
> it throws me an error that the name cannot be empty, or just don't find
> anything with "%". Tried various combinations of FindQualifiers and etc,
> but nothing. Maybe I'm going from the wrong way? Maybe there is a simple
> method but somewhere else? Same with Services - need to have exact name.
> Please reply me, I'm googling and trying this for 3 days already :/ Thank
> you.
>
>
> Kurt T Stam-4 wrote:
>>
>> Hi Evgin,
>>
>> I'm not sure what you already did get managed to run, but if you have
>> managed to publish a service then finding is simple. To find all
>> services I would find get all businesses and get all services for each
>> business.
>>
>> --Kurt
>>
>> Sent from my iPhone
>>
>> On Apr 22, 2010, at 4:25 AM, Evgin Goncharov
>> wrote:
>>
>>> Good afternoon, Sir Kurt T Stam.
>>> Sorry for this private letter, but you are my last hope. I can't
>>> find an answer on my question, so I have to apply to you. I hope,
>>> you as a developer of jUDDIv3 will be able to help me with it. So my
>>> question is about finding (getting) the list of all services
>>> (BusinessServices) registered in
>>> jUDDIv3(http://mail-archives.apache.org/mod_mbox/ws-juddi-user/201004.mbox/
>>> ).
>>> I will be looking for your answer.
>>>
>>> --
>>> Faithfully yours Evgin Goncharov
>>
>>
>
>
--
View this message in context:
http://old.nabble.com/Re%3A-jUDDIv3.-Find-all-services.-tp28329206p31455146.html
Sent from the jUDDI - User mailing list archive at Nabble.com.