Maybe I'm confused as to what your goal is. Do you have WADLs or generated WADLs for your REST services? If you do, you may be in luck. jUDDI 3.2's client jar has a routine that parses a WADL file and will register the services for you.
The Apache SVN is down for upgrades at the moment, but there's an example of how to use it there. There's also this article. https://github.com/UDDI/juddi/wiki/devMappingWADLandWSDLtoUDDI That code will automate most of the process and attach the services to a business. At that point, all you need is a list of URLs to the WADL files and a loop. On Tue, Dec 31, 2013 at 2:45 PM, Venkat (NEU) <neu...@gmail.com> wrote: > I figured out a way but its messing up my existing code as i have to > refactor a lot. I am looking for some tips as to how to publish them without > overly modifying the existing codebase. > > > On Tue, Dec 31, 2013 at 2:06 PM, Venkat (NEU) <neu...@gmail.com> wrote: >> >> Alex >> >> I am making progress but running into some issues. I have a spring based >> application that uses annotations. so re-creating the beans.xml file for cxf >> seems to be redundant. Also I am not able to translate some of my spring >> beans that have annotations into bean definitions in the beans.xml file. >> >> I am sure someone must have figured this out. Also i have used CXF till >> date. Any suggestions? >> >> Thanks >> Venkat >> >> >> >> On Tue, Dec 24, 2013 at 7:30 PM, Alex O'Ree <spyhunte...@gmail.com> wrote: >>> >>> Venkat >>> >>> >>> http://svn.apache.org/repos/asf/juddi/trunk/juddi-examples/simple-publish/ >>> >>> That link has a reasonable example of how to publish a basic service. >>> >>> >>> http://svn.apache.org/repos/asf/juddi/trunk/juddi-examples/uddi-annotations/ >>> >>> That link has an example for using Java annotations to decorate your >>> REST class, along with a simple servlet listener that will >>> automatically register when the REST class is deployed to a container >>> and optionally remove it from UDDI when the container stops or the >>> endpoint is redeployed. >>> >>> Here's a few other references that will help you (namely, what tModels >>> are already defined) >>> >>> http://svn.apache.org/repos/asf/juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/UDDIConstants.java >>> >>> http://svn.apache.org/repos/asf/juddi/trunk/juddi-core/src/main/resources/juddi_install_data/UDDI_tModels.xml >>> >>> >>> >>> >>> On Tue, Dec 24, 2013 at 6:18 PM, Venkat <neu...@gmail.com> wrote: >>> > Alex >>> > >>> > Ideally I want to publish REST services anytime. I am assuming that >>> > there >>> > will is a UI piece which will help in listing the various REST services >>> > deployed. >>> > >>> > Is there any particular module (juddiv3-samples ?) in the trunk that i >>> > should be looking at? >>> > >>> > Thanks >>> > -Venkat >>> > >>> > >>> > >>> > >>> > On Tue, Dec 24, 2013 at 5:04 PM, Alex O'Ree <spyhunte...@gmail.com> >>> > wrote: >>> >> >>> >> You sure can. Are you looking for a register at start up and remove on >>> >> shutdown? Or as one time registration? >>> >> >>> >> In either case, there's an example or two in the source trunk >>> >> >>> >> On Dec 24, 2013 11:12 AM, "Venkat" <neu...@gmail.com> wrote: >>> >>> >>> >>> Hi >>> >>> >>> >>> I am new to Juddi. I just installed and have it running on tomcat. Is >>> >>> it >>> >>> possible to publish REST services (Spring based) to Juddi. If so can >>> >>> someone >>> >>> tell me how to go about doing it. I was not able to find anything on >>> >>> the web >>> >>> on this. >>> >>> >>> >>> >>> >>> -Venkat >>> >>> >>> > >> >> >