[
https://issues.apache.org/jira/browse/CXF-1979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12663539#action_12663539
]
Jon Miller commented on CXF-1979:
---------------------------------
On the server side, if I do this:
@WebService()
public class NewWebService {
Then JAX-WS RI does this:
/**
* This class was generated by the JAX-WS RI.
* JAX-WS RI 2.1.4-b01-
* Generated source version: 2.1
*
*/
@WebServiceClient(name = "NewWebServiceService", targetNamespace =
"http://test/", wsdlLocation =
"http://localhost:8084/WebApplication4/NewWebService?wsdl")
public class NewWebServiceService
extends Service
{
Interestingly, there is no _ (underscore), but, it does seem to always append a
"Service" at the end. Personally, I'm still a bit confused on what the
difference is between the name and serviceName properties of the WebService
annotation. I'm not setting either of those in this example.
I'm just a lowly staff member here at U of C. ;-) Not sure I could afford the
tuition if I was a student. ;-) Where are you from?
> wsdl2java fails to generate working client code if web service name or
> serviceName is "Service"
> -----------------------------------------------------------------------------------------------
>
> Key: CXF-1979
> URL: https://issues.apache.org/jira/browse/CXF-1979
> Project: CXF
> Issue Type: Bug
> Components: Tooling
> Affects Versions: 2.1.3
> Environment: Windows XP, JDK 1.6.0_11, JAX-WS RI for the web service,
> and CXF for the client
> Reporter: Jon Miller
> Priority: Minor
>
> If you create a web service and set the name or serviceName to "Service" like
> the following,
> @WebService(name = "Service", serviceName = "Service")
> public class Service {
> ...
> }
> and you use wsdl2java to generate client code for the web service. The
> generated code won't compile. This is because javax.xml.ws.Service is
> imported in some of the files and it gets confused between this and the
> generated classes. It would be better if the generated code fully qualified
> the class names rather than importing them. Or, if knew to look for conflicts
> and renamed the classes to something else. i.e. maybe just call it Service2
> instead.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.