[
https://issues.apache.org/jira/browse/CXF-1586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12610527#action_12610527
]
Glen Mazza commented on CXF-1586:
---------------------------------
Just FYI, strictly speaking, it shouldn't be necessary to *remove* the
attribute value wsdlLocation for CXF not to reference it (although that might
be ideal anyway). From Section 5.2.5 of the JAX-WS 2.1 Spec of May 2007:
"Both the WebService and WebServiceProvider annotations define a wsdlLocation
annotation element which can be used to point to the desired WSDL document for
the endpoint. If such an annotation element is present on the endpoint
implementation class --->and has a value other than the default one (i.e. it is
not the empty string)<---, then a JAX-WS implementation MUST use the document
referred to from the wsdlLocation annotation element to determine the contract,
according to the rules in section 5.2.5.3."
In other words, @WebService.wsdlLocation="" and a missing
@WebService.wsdlLocation should have the same effect.
> option in wsdl2java generation to NOT create a @Webservice.wsdlLocation
> -----------------------------------------------------------------------
>
> Key: CXF-1586
> URL: https://issues.apache.org/jira/browse/CXF-1586
> Project: CXF
> Issue Type: Improvement
> Components: Tooling
> Affects Versions: 2.0.6
> Reporter: nicolas de loof
> Assignee: Daniel Kulp
> Priority: Minor
> Fix For: 2.1.1, 2.0.7
>
>
> Using <jaxws:endpoint/> CXF tries to load the wsd set in
> @WebService.wsdlLocation.
> As my service implementation is generated from wsdl2java maven plugin, the
> location is hardcoded to my local path (D:/workspace/...) and fails when
> running the application on unix.
> I have to set the wsdlLocation in <jaxws:endpoint> or generate with the
> "-wsdlLocation WEB-INF/wsdl/x" extraargs.
> I expected CXF to run without requirement to the original WSDL, and only use
> the @Webservice annotations in generated code. The only way to get this
> behaviour is to remove the annotation attribute in generated code.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.