Hello everybody,

I'm using Axis2 1.3 with Jdk1.6.0_04. I want to deploy an annotated POJO as
a web service, programmatically, using SimpleHTTPServer. I want to use an
endpoint interface for this POJO, so I can filter the methods that will be
used by the web service, but the WebService.endpointInterface annotation
seems not to be taken into account by Axis. Here is my POJO and interface:

package test;

import java.rmi.RemoteException;

import javax.jws.WebService;

@WebService(endpointInterface = "test.TestPojoInterface")
public class TestPojo implements TestPojoInterface{
  
  public String echo(String s) throws RemoteException{
    return s;
  }
  
  public String testEcho(String s) {
    return s;
  }

}


package test;

import java.rmi.RemoteException;

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

@WebService(name = "TestName", serviceName="TestServiceName",
targetNamespace = "http://www.isdc.ro";)
public interface TestPojoInterface {

  @WebMethod
  public String echo(String s) throws RemoteException; 
}

By deploying this POJO :


AxisService axisService = AxisService.createService(
              TestPojo.class.getName(), 
              context.getAxisConfiguration());

            SimpleHTTPServer server = new SimpleHTTPServer(context, PORT);
            server.start();

I get a deployed service named TestPojo (I have given another name in the
annotated interface), with 2 methods (I have only one method in the
annotated interface)

The service has the following wsdl:

http://www.nabble.com/file/p16093693/TestPojo.xml TestPojo.xml 


Does Axis2 1.3 know how to interpret WebService.endpointInterface
annotation????

The only annotation which seams to be taken into account is
WebService.targetNamespace, when I used just a POJO, without an interface. 

Kind regards,
Mihai Rus
-- 
View this message in context: 
http://www.nabble.com/WebService.endpointInterface-annotation-when-web-service-is-started-programatically-with-SimpleHTTPServer-tp16093693p16093693.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to