I believe so, yes.
Griffith George Application Developer (FSWEP Student) | Développeur d'application (étudiant PFETE) Information Technology Division | Division de la technologie de l'information Chief Information Officer Branch | Direction du dirigeant principal de l'information Treasury Board of Canada Secretariat | Secrétariat du Conseil du Trésor du Canada Ottawa, Canada K1A 0R5 Telephone | Téléphone 613-941-0787 Fax | Télécopieur 613-954-6811 Teletypewriter | Téléimprimeur 613-957-9090 Government of Canada | Gouvernement du Canada ________________________________ From: Kurt T Stam [mailto:[email protected]] Sent: November 17, 2011 11:07 AM To: [email protected] Subject: Re: TransportException with JUDDIApiPortType Version 3.1.0? --K On 11/17/11 10:58 AM, George, Griffith wrote: Hi Kurt, I'm using jUDDIv3. Here is my uddi.xml file: -- uddi.xml --------------------- <?xml version="1.0" encoding="ISO-8859-1" ?> <uddi> <reloadDelay>5000</reloadDelay> <manager name="example-manager"> <nodes> <node> <name>default</name> <properties> <property name="serverName" value="localhost" /> <property name="serverPort" value="8080" /> </properties> <description>Main jUDDI node</description> <proxyTransport>org.apache.juddi.v3.client.transport.JAXWSTransport</proxyTransport> <custodyTransferUrl>http://${serverName}:${serverPort}/juddiv3/services/custody-transfer</custodyTransferUrl> <inquiryUrl>http://${serverName}:${serverPort}/juddiv3/services/inquiry</inquiryUrl> <publishUrl>http://${serverName}:${serverPort}/juddiv3/services/publish</publishUrl> <securityUrl>http://${serverName}:${serverPort}/juddiv3/services/security</securityUrl> <subscriptionUrl>http://${serverName}:${serverPort}/juddiv3/services/subscription</subscriptionUrl> <subscriptionListenerUrl>http://${serverName}:${serverPort}/juddiv3/services/subscription-listener</subscriptionListenerUrl> <juddiApiUrl>http://${serverName}:${serverPort}/juddiv3/services/juddi-api?wsdl</juddiApiUrl> </node> </nodes> </manager> </uddi> ------------------------------------ Griffith George Application Developer (FSWEP Student) | Développeur d'application (étudiant PFETE) Information Technology Division | Division de la technologie de l'information Chief Information Officer Branch | Direction du dirigeant principal de l'information Treasury Board of Canada Secretariat | Secrétariat du Conseil du Trésor du Canada Ottawa, Canada K1A 0R5 Telephone | Téléphone 613-941-0787 Fax | Télécopieur 613-954-6811 Teletypewriter | Téléimprimeur 613-957-9090 Government of Canada | Gouvernement du Canada ________________________________ From: Kurt T Stam [mailto:[email protected]] Sent: November 15, 2011 8:46 PM To: [email protected]<mailto:[email protected]> Subject: Re: TransportException with JUDDIApiPortType Hi George, What version of jUDDI are you using and what is does your uddi.xml look like? Cheers, --Kurt On 11/15/11 4:21 PM, George, Griffith wrote: Hi there, I'm trying to use juddi-client to publish a web service. I have used the code in the User Guide<http://juddi.apache.org/docs/3.x/userguide/html_single/index.html> as a model. I get the following Exception: -- Console output ------------------- org.apache.juddi.v3.client.transport.TransportException: {urn:juddi-apache-org:v3_service}JUDDIApiService is not a valid service. Valid services are: {urn:juddi-apache-org:v3_service}JUDDI_Api_Port at org.apache.juddi.v3.client.transport.JAXWSTransport.getJUDDIApiService(JAXWSTransport.java:188) at org.apache.juddi.v3.client.transport.Transport.getJUDDIApiService(Transport.java:58) at icoe.uddi.juddi.Main.setup(Main.java:35) at icoe.uddi.juddi.Main.main(Main.java:23) Caused by: javax.xml.ws.WebServiceException: {urn:juddi-apache-org:v3_service}JUDDIApiService is not a valid service. Valid services are: {urn:juddi-apache-org:v3_service}JUDDI_Api_Port at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:220) at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:165) at com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:93) at javax.xml.ws.Service.<init>(Service.java:76) at javax.xml.ws.Service.create(Service.java:700) at org.apache.juddi.v3.client.transport.JAXWSTransport.getJUDDIApiService(JAXWSTransport.java:185) ... 3 more at icoe.uddi.juddi.Main.publish(Main.java:63) at icoe.uddi.juddi.Main.main(Main.java:24) --------------------------------------- The code that causes the problem is almost identical to the code in the user guide. Here is the code, edited for brevity: -- Main.java -------------------------- import org.apache.juddi.v3_service.JUDDIApiPortType; //... several others, including ClassUtil, UDDIClientContainer, Transport, etc public class Main { static JUDDIApiPortType juddiApi; //... public static void main (String [] args) { try { String clazz = UDDIClientContainer.getUDDIClerkManager(null). getClientConfig().getUDDINode("default").getProxyTransport(); Class<?> transportClass = ClassUtil.forName(clazz, Transport.class); if (transportClass != null) { Transport transport = (Transport) transportClass. getConstructor(String.class).newInstance("default"); juddiApi = transport.getJUDDIApiService(); //--LINE 63-- //... } } catch (Exception e) { e.printStackTrace(); } //... } } --------------------------------------- I'm out of ideas. Is there something I'm missing? Thanks for your help. Griffith George Application Developer (FSWEP Student) | Développeur d'application (étudiant PFETE) Information Technology Division | Division de la technologie de l'information Chief Information Officer Branch | Direction du dirigeant principal de l'information Treasury Board of Canada Secretariat | Secrétariat du Conseil du Trésor du Canada Ottawa, Canada Government of Canada | Gouvernement du Canada
