You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "nicolas de loof (JIRA)" <ji...@apache.org> on 2008/05/14 17:21:55 UTC
[jira] Created: (CXF-1586) option in wsdl2java generation to NOT
create a @Webservice.wsdlLocation
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
Priority: Minor
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.
[jira] Resolved: (CXF-1586) option in wsdl2java generation to NOT
create a @Webservice.wsdlLocation
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1586?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved CXF-1586.
------------------------------
Resolution: Fixed
Fix Version/s: 2.0.7
2.1.1
Assignee: Daniel Kulp
> 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.
[jira] Commented: (CXF-1586) option in wsdl2java generation to NOT
create a @Webservice.wsdlLocation
Posted by "Glen Mazza (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Commented: (CXF-1586) option in wsdl2java generation to NOT
create a @Webservice.wsdlLocation
Posted by "Glen Mazza (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12610512#action_12610512 ]
Glen Mazza commented on CXF-1586:
---------------------------------
BTW, what do you mean when you say "and only use the @Webservice annotations in generated code"? Also, if the WSDL is not set in the @WebService annotation or in jaxws:endpoint, where/how do you set the wsdllocation? Passed in at runtime, perhaps during Spring configuration?
> 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.