[ http://wso2.org/jira/browse/WSAS-650?page=all ]
Lahiru Sandakith resolved WSAS-650.
-----------------------------------
Resolution: Fixed
Fixed in Committed revision 614451.
===========================================================================
Here is the commit went to Axis2 trunk
---
modules/kernel/src/org/apache/axis2/description/java2wsdl/DefaultSchemaGenerator.java
(revision 614411)
+++
modules/kernel/src/org/apache/axis2/description/java2wsdl/DefaultSchemaGenerator.java
(working copy)
@@ -179,6 +179,13 @@
}
if(annotation.getValue(AnnotationConstants.NAME) != null) {
String serviceName =
(annotation.getValue(AnnotationConstants.NAME)).asString();
+ if(serviceName.equals("")){
+ serviceName=serviceClass.getName();
+ int firstChar = serviceName.lastIndexOf ('.') + 1;
+ if ( firstChar > 0 ) {
+ serviceName = serviceName.substring (
firstChar );
+ }
+ }
service.setName(serviceName);
}
> jaxws: Service name is blank when @WebService annotation is used without
> specifying a name
> ------------------------------------------------------------------------------------------
>
> Key: WSAS-650
> URL: http://wso2.org/jira/browse/WSAS-650
> Project: WSO2 WSAS
> Issue Type: Bug
> Affects Versions: Nightly
> Environment: winxp, jdk15, WSAS-2.2-qabuild2
> Reporter: Charitha Kankanamge
> Assigned To: Lahiru Sandakith
> Priority: Critical
> Attachments: jaxwswebparam.jar
>
>
> if @WebService annotation is specified without explicitly defining the name
> of the service, the web service should be named according to the class name.
> Currently, the service name is taken as blank when deploying such a service
> implementation class in WSAS.
> Steps to reproduce:
> ===============
> 1. Deploy the attached jar, which includes following service impl class.
> @WebService(targetNamespace="http://www.openuri.org/jsr181/WebParamExample")
> @SOAPBinding(style=SOAPBinding.Style.RPC)
> public class Webparamtestservice {
> @WebMethod(operationName = "jaxwsEchoMethod")
> public String echoString(@WebParam(name="stringIn")String s){
> return s;
> }
> }
> 2. Access WSAS maangement console and check the service name
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Wsas-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/wsas-java-dev