Hi Pranjal, comments below hope this helps!
Pranjal Goel wrote:
Hi Kurt,
I am able to generate the Auth Token, but m not able
to save a new business.
I have a doubt :
While saving a business, JUDY must return back the Business Key. Then
why Business Key is being passed as an argument to saveBusiness
function. And, if this argument is required, how do i pass it when I
don't hav the key for a new business.
Your publisher should have a tModel which is a keygenerator.
http://svn.apache.org/repos/asf/webservices/juddi/trunk/uddi-tck-base/src/main/resources/uddi_data/joepublisher/tModelKeyGen.xml
<tModel tModelKey="uddi:uddi.joepublisher.com:keygenerator"
xmlns="urn:uddi-org:api_v3">
<name>Joe Publisher's Key Generator</name>
<description>This is the key generator for Joe Publisher's UDDI
entities!</description>
<overviewDoc>
<overviewURL useType="text">
http://uddi.org/pubs/uddi_v3.htm#keyGen</overviewURL>
</overviewDoc>
<categoryBag>
<keyedReference tModelKey="uddi:uddi.org:categorization:types"
keyName="uddi-org:types:keyGenerator"
keyValue="keyGenerator" />
</categoryBag>
</tModel>
In it you specify the "domain" of all your keys. With is you can
construct a key. This way you OWN the business data and no one else can
modify it.
Check out the data setup of the joepublisher:
http://svn.apache.org/repos/asf/webservices/juddi/trunk/uddi-tck-base/src/main/resources/uddi_data/joepublisher/
and how joe publishes a server using
businessKey="uddi:uddi.joepublisher.com:businessone">
http://svn.apache.org/repos/asf/webservices/juddi/trunk/uddi-tck-base/src/main/resources/uddi_data/joepublisher/businessEntity.xml
Thanks and Regards,
Pranjal Goel
ASE Trainee
Tata Consultancy Services
Ph:- 09343820208
Cell:- 09739998754
Mailto: pranjal.g...@tcs.com
Website: http://www.tcs.com <http://www.tcs.com/>
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
From: Kurt T Stam <kurt.s...@gmail.com>
To: Pranjal Goel <pranjal.g...@tcs.com>
Date: 12/22/2009 01:33 AM
Subject: Re: Juddi v3 Java API
------------------------------------------------------------------------
Great Pranjal,
Well here we go:
1. Try to get Authentication to work. In the docs directory there is an
example on how to get a token. Try compiling, and running this.
2. If that works you can try saving business:
this code should come in handy:
http://svn.apache.org/repos/asf/webservices/juddi/trunk/uddi-tck-base/src/main/java/org/apache/juddi/v3/tck/TckBusiness.java
the accompanying XML is here:
http://svn.apache.org/repos/asf/webservices/juddi/trunk/uddi-tck-base/src/main/resources/uddi_data/
3. To obtain all businesses in the system check out:
http://svn.apache.org/repos/asf/webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/service/PublicationServiceImpl.java
So give that a try and let us know how you fare
--Kurt
Pranjal Goel wrote:
>
> Hi Kurt,
>
> Thank you so much for the prompt response.
> You are right, I want to use the Java API for
> publishing and inquiring services in Juddi v3.
> I definitely want to help you with the chapter in User
> Manual. It would be great actually.
> Please walk me through it once.
>
> Thanks and regards,
> Pranjal Goel
> ASE Trainee
>
> Tata Consultancy Services
> Ph:- 09343820208
> Cell:- 09739998754
> Mailto: pranjal.g...@tcs.com
> Website: http://www.tcs.com <http://www.tcs.com/> <http://www.tcs.com/>
> ____________________________________________
> Experience certainty. IT Services
> Business Solutions
> Outsourcing
> ____________________________________________
>
>
> From: Kurt T Stam <kurt.s...@gmail.com>
> To: Pranjal Goel <pranjal.g...@tcs.com>
> Cc: juddi-user@ws.apache.org
> Date: 12/17/2009 07:32 PM
> Subject: Re: Juddi v3 Java API
>
>
> ------------------------------------------------------------------------
>
>
>
> Hi Pranjal,
>
> Lately we get this question a lot actually. I'm guessing you don't
> want to use the annotation approach right
>
(_http://apachejuddi.blogspot.com/2009/11/uddi-annotations-how-do-i-self-register.html_),
> but like you said rather the API?
>
> We have example code in the tck-base module in source control, but I'm
> thinking it'd be nice to write a chapter about it in the user guide.
> Would be want to help us with that, if I walk you through it?
>
> --Kurt
>
> Pranjal Goel wrote:
>
> Hi Kurt,
>
> I am about to start using JUDDI v3 for publishing web
> services (with MySQL as db).
> I have done the basic configurations.
> _http://localhost:8080/juddiv3/services_ page is opening.
>
> I need the step by step instructions and the code for publishing and
> inquiring services in JUDDI using Java API.
> Your help would be greatly appreciated.
>
> Thanks in advance,
> Pranjal Goel
> ASE Trainee
>
> Tata Consultancy Services
> Ph:- 09343820208
> Cell:- 09739998754
> Mailto: _pranjal.g...@tcs.com_ <mailto:pranjal.g...@tcs.com>
> Website: _http://www.tcs.com_ <http://www.tcs.com/>
> ____________________________________________
> Experience certainty. IT Services
> Business Solutions
> Outsourcing
> ____________________________________________
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
>
>
>
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
>
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you