cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olivier Malik Costet (JIRA)" <>
Subject [jira] [Created] (CXF-6291) Improve versatility of @WSDLDocumentation
Date Thu, 12 Mar 2015 14:23:38 GMT
Olivier Malik Costet created CXF-6291:

             Summary: Improve versatility of @WSDLDocumentation
                 Key: CXF-6291
             Project: CXF
          Issue Type: Improvement
          Components: Core
    Affects Versions: 3.0.4
            Reporter: Olivier Malik Costet
            Priority: Minor

It would be nice if the @WSDLDocumantation annotation were more versatile.

I'm building an RPC/literal SOAP service. For each method I define, I want the service to
document the individual parameters. To that end, I would like to be able to place a wsdl:documentation
element on the individual wsdl:part element of the enclosing wsdl:message. CXF does not appear
currently to support this.


@XmlType( name = "customType" )
//doc either here, or in the @WebMethod parameter... but @WSDLDocumentation is currently not
allowed on method parameters
@WSDLDocumentation( "This is the documentation for this type" )
public class SomeType {
   private String value;
   public SomeType();
   public String getValue();

public class MyServiceEndpoint {
   @WebMethod( operationName="someOperation" )
   public void someMethod( 
      @WebParam( name="parameter" )
      //@WSDLDocumentation annotation currently not allowed on method parameter
      //@WSDLDocumentation( "This parameter's documentation" )
      SomeType someType )

Code should result in WSDL:
    <xs:schema attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="sampleNamespace">
        <xs:simpleType name="customType">
            <xs:restriction base="xs:string"/>
<wsdl:message name="someOperation">
    <wsdl:part name="parameter" type="tns:customType">
        <wsdl:documentation>I WOULD LIKE THE DOCUMENTATION HERE</wsdl:documentation>
<wsdl:message name="someOperationResponse">
<wsdl:operation name="someOperation">
    <wsdl:input message="tns:someOperation" name="someOperation"></wsdl:input>
    <wsdl:output message="tns:someOperationResponse" name="someOperationResponse">

This message was sent by Atlassian JIRA

View raw message