2 Replies Latest reply on Mar 26, 2011 5:37 PM by Tom Cunningham

    Publishing a web service in uddi. How to know if it worked?

    everson . Newbie

      i`m using jboss5.1 + jbossesb 4.9 with default juddi configuration. How can I know if it worked ?

       

       

      package org.jboss.samples.webservices;

       

      import javax.jws.WebMethod;
      import javax.jws.WebService;

      import org.apache.juddi.v3.annotations.UDDIService;
      import org.apache.juddi.v3.annotations.UDDIServiceBinding;

       

      @UDDIService( 
              businessKey="uddi:org.jboss.samples.webservices:everson-test", 
                    serviceKey="uddi:org.jboss.samples.webservices:services-HelloWorld",  
                    description = "Hello World - Testing") 
      @UDDIServiceBinding( 
                   bindingKey="uddi:org.jboss.samples.webservices:bindings-HelloWorld-wsdl", 
                description="WSDL endpoint", 
                accessPointType="wsdlDeployment", 
                accessPoint="http://${serverName}:${serverPort}/ws2/HelloWorld?wsdl")
      @WebService()
      public class HelloWorld {

       

      @WebMethod()
      public String sayHello(String name) {
           System.out.println("Hello: " + name);
           return "Hello " + name + "!";
      }
      }