Hi!
The code from SimplePublish doesn't work for me. 

The following code fragment:
                        // Setting up the values to get an authentication token 
for the 'root'
user ('root' user has admin privileges
                        // and can save other publishers).
                        GetAuthToken getAuthTokenRoot = new GetAuthToken();
                        getAuthTokenRoot.setUserID("root");
                        getAuthTokenRoot.setCred("password");

                        // Making API call that retrieves the authentication 
token for the 'root'
user.
                        AuthToken rootAuthToken = 
security.getAuthToken(getAuthTokenRoot);
                        System.out.println ("root AUTHTOKEN = " + 
rootAuthToken.getAuthInfo());

                        // Creating a new publisher that we will use to publish 
our entities to.
                        Publisher p = new Publisher();
                        p.setAuthorizedName("my-publisher");
                        p.setPublisherName("My Publisher");

                        // Adding the publisher to the "save" structure, using 
the 'root' user
authentication info and saving away. 
                        SavePublisher sp = new SavePublisher();
                        sp.getPublisher().add(p);
                        sp.setAuthInfo(rootAuthToken.getAuthInfo());
                        juddiApi.savePublisher(sp);

   produces the following error:
Client side error:
javax.xml.ws.soap.SOAPFaultException:
org.apache.juddi.model.UddiEntityPublisher incompatible with
org.apache.juddi.model.Publisher
        at 
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:145)
        at $Proxy46.savePublisher(Unknown Source)
        at com.ibm.inv.juddi.client.SimplePublish.publish(SimplePublish.java:57)
        at com.ibm.inv.juddi.client.SimplePublish.main(SimplePublish.java:106)
Caused by: org.apache.cxf.binding.soap.SoapFault:
org.apache.juddi.model.UddiEntityPublisher incompatible with
org.apache.juddi.model.Publisher


Server side error:
WARNING: Application
{urn:juddi-apache-org:v3_service}JUDDI_Api_Port#{urn:juddi-
apache-org:v3_service}save_publisher has thrown exception, unwinding now
Throwable occurred: org.apache.cxf.interceptor.Fault:
org.apache.juddi.model.Udd
iEntityPublisher incompatible with org.apache.juddi.model.Publisher
        at
org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractIn
voker.java:148)
        at
org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.createFault(AbstractJ
AXWSMethodInvoker.java:83)
        at
org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker
.java:114)

I still haven't resolved this so any suggestions are wellcome. Thanks.
-- 
View this message in context: 
http://old.nabble.com/SimplePublish-demo---Juddi-v3.0.4-tp30496686p30496686.html
Sent from the jUDDI - User mailing list archive at Nabble.com.

Reply via email to