You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Glen Mazza (JIRA)" <ji...@apache.org> on 2010/10/25 17:13:19 UTC
[jira] Created: (CXF-3092) WSDLDocumentation annotation not working
on SEI implementation
WSDLDocumentation annotation not working on SEI implementation
--------------------------------------------------------------
Key: CXF-3092
URL: https://issues.apache.org/jira/browse/CXF-3092
Project: CXF
Issue Type: Bug
Components: Core
Affects Versions: 2.3.0
Reporter: Glen Mazza
The WSDLDocumentation annotation works when placed on the service endpoint interface but not the SEI implementation class.
Below works:
package service;
import javax.jws.WebService;
import org.apache.cxf.annotations.WSDLDocumentation;
import org.apache.cxf.annotations.WSDLDocumentationCollection;
@WebService
@WSDLDocumentationCollection(
{
@WSDLDocumentation("My portType documentation"),
@WSDLDocumentation(value = "My top level documentation",
placement = WSDLDocumentation.Placement.TOP),
@WSDLDocumentation(value = "My binding doc",
placement = WSDLDocumentation.Placement.BINDING)
}
)
public interface DoubleItPortType {
public int doubleIt(int numberToDouble);
}
This does not:
package service;
import javax.jws.WebService;
import org.apache.cxf.annotations.WSDLDocumentation;
import org.apache.cxf.annotations.WSDLDocumentationCollection;
@WebService(targetNamespace = "http://www.example.org/contract/DoubleIt",
endpointInterface = "service.DoubleItPortType",
serviceName = "DoubleItService",
portName = "DoubleItPort")
@WSDLDocumentationCollection(
{
@WSDLDocumentation("My portType documentation"),
@WSDLDocumentation(value = "My top level documentation",
placement = WSDLDocumentation.Placement.TOP),
@WSDLDocumentation(value = "My binding doc",
placement = WSDLDocumentation.Placement.BINDING)
}
)
public class DoubleItPortTypeImpl implements DoubleItPortType {
public int doubleIt(int numberToDouble) {
return numberToDouble * 2;
}
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CXF-3092) WSDLDocumentation annotation not
working on SEI implementation
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved CXF-3092.
------------------------------
Resolution: Fixed
Fix Version/s: (was: NeedMoreInfo)
2.3.2
> WSDLDocumentation annotation not working on SEI implementation
> --------------------------------------------------------------
>
> Key: CXF-3092
> URL: https://issues.apache.org/jira/browse/CXF-3092
> Project: CXF
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.3.0
> Reporter: Glen Mazza
> Assignee: Daniel Kulp
> Fix For: 2.3.2
>
> Attachments: DoubleItJavaFirst.zip
>
>
> The WSDLDocumentation annotation works when placed on the service endpoint interface but not the SEI implementation class.
> Below works:
> package service;
> import javax.jws.WebService;
> import org.apache.cxf.annotations.WSDLDocumentation;
> import org.apache.cxf.annotations.WSDLDocumentationCollection;
> @WebService
> @WSDLDocumentationCollection(
> {
> @WSDLDocumentation("My portType documentation"),
> @WSDLDocumentation(value = "My top level documentation",
> placement = WSDLDocumentation.Placement.TOP),
> @WSDLDocumentation(value = "My binding doc",
> placement = WSDLDocumentation.Placement.BINDING)
> }
> )
> public interface DoubleItPortType {
> public int doubleIt(int numberToDouble);
> }
> This does not:
> package service;
> import javax.jws.WebService;
> import org.apache.cxf.annotations.WSDLDocumentation;
> import org.apache.cxf.annotations.WSDLDocumentationCollection;
> @WebService(targetNamespace = "http://www.example.org/contract/DoubleIt",
> endpointInterface = "service.DoubleItPortType",
> serviceName = "DoubleItService",
> portName = "DoubleItPort")
> @WSDLDocumentationCollection(
> {
> @WSDLDocumentation("My portType documentation"),
> @WSDLDocumentation(value = "My top level documentation",
> placement = WSDLDocumentation.Placement.TOP),
> @WSDLDocumentation(value = "My binding doc",
> placement = WSDLDocumentation.Placement.BINDING)
> }
> )
> public class DoubleItPortTypeImpl implements DoubleItPortType {
> public int doubleIt(int numberToDouble) {
> return numberToDouble * 2;
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CXF-3092) WSDLDocumentation annotation not working
on SEI implementation
Posted by "Glen Mazza (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Glen Mazza updated CXF-3092:
----------------------------
Attachment: DoubleItJavaFirst.zip
Apologies for not attaching a quick OOTB example. OK, very simple example (hopefully good enough compared to trying to get test case to fail):
1.) Extract the ZIP into a directory.
2.) In the DoubleItJavaFirst/service-war/src/main/java/service folder, observe that DoubleItPortType.java has no documentation annotation and DoubleItPortTypeImpl.java *does* have a documentation annotation.
3.) From the DoubleItJavaFirst folder, type "mvn clean install"
4.) Look in target/generated/wsdl, and confirm *no* WSDL Documentation comments. (Therefore 3092 broken).
5.) Move (not copy) the @WSDLDocumentationCollection from DoubleItPortTypeImpl.java to DoubleItPortType.java.
6.) Run mvn clean install again.
4.) Look in target/generated/wsdl again, and confirm DoubleItPortType.wsdl has one document element and DoubleItPortTypeImpl.wsdl has another, but there is *no* WSDL Documentation comment on the binding element. (Therefore 3093 broken).
> WSDLDocumentation annotation not working on SEI implementation
> --------------------------------------------------------------
>
> Key: CXF-3092
> URL: https://issues.apache.org/jira/browse/CXF-3092
> Project: CXF
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.3.0
> Reporter: Glen Mazza
> Assignee: Daniel Kulp
> Fix For: NeedMoreInfo
>
> Attachments: DoubleItJavaFirst.zip
>
>
> The WSDLDocumentation annotation works when placed on the service endpoint interface but not the SEI implementation class.
> Below works:
> package service;
> import javax.jws.WebService;
> import org.apache.cxf.annotations.WSDLDocumentation;
> import org.apache.cxf.annotations.WSDLDocumentationCollection;
> @WebService
> @WSDLDocumentationCollection(
> {
> @WSDLDocumentation("My portType documentation"),
> @WSDLDocumentation(value = "My top level documentation",
> placement = WSDLDocumentation.Placement.TOP),
> @WSDLDocumentation(value = "My binding doc",
> placement = WSDLDocumentation.Placement.BINDING)
> }
> )
> public interface DoubleItPortType {
> public int doubleIt(int numberToDouble);
> }
> This does not:
> package service;
> import javax.jws.WebService;
> import org.apache.cxf.annotations.WSDLDocumentation;
> import org.apache.cxf.annotations.WSDLDocumentationCollection;
> @WebService(targetNamespace = "http://www.example.org/contract/DoubleIt",
> endpointInterface = "service.DoubleItPortType",
> serviceName = "DoubleItService",
> portName = "DoubleItPort")
> @WSDLDocumentationCollection(
> {
> @WSDLDocumentation("My portType documentation"),
> @WSDLDocumentation(value = "My top level documentation",
> placement = WSDLDocumentation.Placement.TOP),
> @WSDLDocumentation(value = "My binding doc",
> placement = WSDLDocumentation.Placement.BINDING)
> }
> )
> public class DoubleItPortTypeImpl implements DoubleItPortType {
> public int doubleIt(int numberToDouble) {
> return numberToDouble * 2;
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CXF-3092) WSDLDocumentation annotation not working
on SEI implementation
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp updated CXF-3092:
-----------------------------
Fix Version/s: NeedMoreInfo
Assignee: Daniel Kulp
I added a testcase for this in:
rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/CodeFirstWSDLTest.java
and it passes fine. Can you create a more concrete example? Better yet, update the test until it doesn't pass.
> WSDLDocumentation annotation not working on SEI implementation
> --------------------------------------------------------------
>
> Key: CXF-3092
> URL: https://issues.apache.org/jira/browse/CXF-3092
> Project: CXF
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.3.0
> Reporter: Glen Mazza
> Assignee: Daniel Kulp
> Fix For: NeedMoreInfo
>
>
> The WSDLDocumentation annotation works when placed on the service endpoint interface but not the SEI implementation class.
> Below works:
> package service;
> import javax.jws.WebService;
> import org.apache.cxf.annotations.WSDLDocumentation;
> import org.apache.cxf.annotations.WSDLDocumentationCollection;
> @WebService
> @WSDLDocumentationCollection(
> {
> @WSDLDocumentation("My portType documentation"),
> @WSDLDocumentation(value = "My top level documentation",
> placement = WSDLDocumentation.Placement.TOP),
> @WSDLDocumentation(value = "My binding doc",
> placement = WSDLDocumentation.Placement.BINDING)
> }
> )
> public interface DoubleItPortType {
> public int doubleIt(int numberToDouble);
> }
> This does not:
> package service;
> import javax.jws.WebService;
> import org.apache.cxf.annotations.WSDLDocumentation;
> import org.apache.cxf.annotations.WSDLDocumentationCollection;
> @WebService(targetNamespace = "http://www.example.org/contract/DoubleIt",
> endpointInterface = "service.DoubleItPortType",
> serviceName = "DoubleItService",
> portName = "DoubleItPort")
> @WSDLDocumentationCollection(
> {
> @WSDLDocumentation("My portType documentation"),
> @WSDLDocumentation(value = "My top level documentation",
> placement = WSDLDocumentation.Placement.TOP),
> @WSDLDocumentation(value = "My binding doc",
> placement = WSDLDocumentation.Placement.BINDING)
> }
> )
> public class DoubleItPortTypeImpl implements DoubleItPortType {
> public int doubleIt(int numberToDouble) {
> return numberToDouble * 2;
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.