[ https://issues.apache.org/jira/browse/AXIS2-2477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12990924#comment-12990924 ]
Isuru Eranga Suriarachchi commented on AXIS2-2477: -------------------------------------------------- The issue was when deploying a JAX-WS service, the service name was set as <service-name>.<port-name>. Those are coming from @WebService annotation properties. But according to normal Axis2 convention, AxisService name should be equal to the WSDL service name. And also, this shows a wrong WSDL in contract first approach. In that case, although the embedded WSDL contains the correct service name, ?wsdl shows the service name in the above format. So I fixed this issue by always making the AxisService name equal to the "name" property of the @WebService annotations. So the service is invokable through the follwoing EPR format. http://localhost:8080/axis2/services/HelloWorldServiceService/ However, the AxisService object should contain an Endpoint object which corresponds to the "portName" property of the @WebService annotation. Therefore, I've added the correct Endpoints after creation of the AxisService object. So the service is also invokable in the following EPR format. http://localhost:8080/axis2/services/HelloWorldServiceService.HelloWorldServicePort/ This is the same convention followed by normal AAR service. In this case, the message will be properly dispatched because there is an endpoint with the name "HelloWorldServiceService.HelloWorldServicePort". So all the jaxws samples which were using the above 2nd EPR format will continue to work without any trouble. Thanks, ~Isuru > Unusual service name/epr is presented when a pojo annotation class is > deployed > ------------------------------------------------------------------------------- > > Key: AXIS2-2477 > URL: https://issues.apache.org/jira/browse/AXIS2-2477 > Project: Axis2 > Issue Type: Bug > Components: jaxws > Affects Versions: 1.2 > Environment: jdk15, tomcat 6.0.10 > Reporter: Charitha Kankanamge > Assignee: Isuru Eranga Suriarachchi > Fix For: 1.6 > > > I created a pojo with annotation and named it as 'HelloWorldService'. Then I > deployed it on tomcat 6.0.10 and accessed admin console to see the service. > Following is the name of service shown in admin console. > HelloWorldServiceService.HelloWorldServicePort > EPR is given as > http://localhost:8080/axis2/services/HelloWorldServiceService.HelloWorldServicePort -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org For additional commands, e-mail: java-dev-h...@axis.apache.org