You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@juddi.apache.org by Kurt T Stam <ku...@gmail.com> on 2010/10/07 15:15:03 UTC
Re: Fwd: get service publisher info
Hi Atousa,
I have no idea what kind of classes you are using. Why do the package
names all have underscores '_'
in them? I can't compile it. Please take second look at he
simply-publish example and try to stay as close as possible to that
code.
--Kurt
On 10/6/10 5:40 PM, Atousa Pahlevan wrote:
> 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();
> }
>
> }