This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
trying to call the following code to obtain a security token from juddi.
Every time I call it I get the following error message:
org.apache.juddi.v3.client.transport.TransportException: Cannot locate configuration source uddi.properties
I have looked on the web for an example of this file, and could not find one.
I have found out that it is used by the client to enable it to communicate with the register using JAX-WS.
I als found out that you can set the transport type used to talk to the register.
I currently have the following jar files within my class path:-
Has anybody got or seen an example of the contents of a uddi.properties file
Joined: May 21, 2008
can anybody explain what the content of a uddi.properties file should look like, or an example would be good.
If nobody can answer this or it's too easy, can you point me to a site that could help solve this problem.
Joined: May 21, 2008
for anybody that is interested, I gave up on my initial approach . Instead I'm using the axis binary stack to generate
the client java files that are used to call Juddi. I can access the services available on Juddi via the 'View Service Listing' link.
I then click on one of the service addresses (i.e. UDDI Security) so that I capture the wsdl url. Next I created a
CodeGenerator class and added in the captured url (i.e. http://localhost:8080/juddiv3/services/security?wsdl)
Before I was able to run the above code I needed to put the Axis jar files within the classpath so that
could be seen.
The CodeGenerator will generate axis stubs and handler classes that allow you to call the juddi api's via JAX-WS.
The code below shows how a client can make a call to the juddi get_authToken api.
Note that you will have to put the stub generated classes in the classpath of this build for it to work.
This approach seems a lot easier than my initial attempts and is driven by the wsdl from the juddi.
Hence the client can be built another language.
Hope this helps anybody who had the problem I had.