Hi, Can anyone send me a sample of client code to get service publisher info. from juddi. I installed juddi and also able to get Authtoken information, however still could not get the service information (read services). I greatly appreciate any help.
Here is my code : package testclient; import java.rmi.RemoteException; import api_v3.juddi_apache_org.Publisher; import api_v3.uddi_org.AuthToken; import api_v3.uddi_org.Get_authToken; import v3_service.juddi_apache_org.JUDDI_Api_PortTypeProxy; import v3_service.uddi_org.UDDI_Security_PortTypeProxy; public class UDDIApiTestClient { public void getPublisher(){ UDDI_Security_PortTypeProxy proxy = new UDDI_Security_PortTypeProxy(); Get_authToken authtoken = new Get_authToken(); authtoken.setUserID("root"); authtoken.setCred("root"); AuthToken token=null; try { token = proxy.get_authToken(authtoken); System.out.println(":"+token.getAuthInfo()); } catch (RemoteException e) { // TODO Auto-generated catch block e.printStackTrace(); return; } JUDDI_Api_PortTypeProxy proxyapi = new JUDDI_Api_PortTypeProxy(); try { Publisher list[] = proxyapi.get_allPublisherDetail(token.getAuthInfo()); } catch (RemoteException e) { // TODO Auto-generated catch block e.printStackTrace(); } } /** * @param args */ public static void main(String[] args) { UDDIApiTestClient client = new UDDIApiTestClient(); client.getPublisher(); } } Console: :authtoken:2f08a139-5cc4-4e7c-a9d6-311193253ca3 AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server faultSubcode: faultString: Authentication is required for this API call faultActor: faultNode: faultDetail: {urn:uddi-org:api_v3}dispositionReport:<ns3:result errno="10120"><ns3:errInfo errCode="E_authTokenRequired">Authentication token is missing or is invalid.</ns3:errInfo></ns3:result> *I also can see "root" in the list if the publisher in juddi ?!!!* Regards, Atousa On Mon, Oct 4, 2010 at 8:30 AM, Kurt T Stam <kurt.s...@gmail.com> wrote: > Hi Jin, > > It is better to ask questions on the user forum, that way someone else > maybe helped by the question and answer. I have taken the liberty to forward > your question there. > > I'm not sure what you mean by 'it navigates to log in page'. You should see > the following page: > > http://ws.apache.org/juddi/docs/3.0/userguide/html/chap-Getting_Started.html#sect-using_the_tomcat_bundleand > from there you can click on the juddi portal link which, the first time, > should > prompt to log you on. > > By the way, the latest release is 3.0.3: > http://ws.apache.org/juddi/releases.html > > Cheers, > > --Kurt > > > > > > > > > > Hi Kurt, > > I am new to JUDDIV3. I download the zip file for juddi-portal-bundle-3.0.1 > and 3.0.2 snapshot. > I unzipped and installed them on windows XP. Every thing is fine. However, > when I go to JUDDI portal in the index page, > it navigates to log in page. When I type root and root in the user name and > password, and click the login button, it didn't > work. > > However, when I go to tomcat manager pager by logging in with root and root, > then go back to juddi index page, then > click the link for JUDDI portal, it skipped the login page and go directly to > the UDDIBrowser Portlet. > > However, I can't type anything on this page to do query. > > Could you give me some gudies how to use the JUDDI portal. > > Thanks > > Jin > >