Skip to main content

org.apache.cxf.annotations.WSDLDocumentation org.apache.cxf.annotations.WSDLDocumentationCollection (since 2.3)

For "java first" scenarios where the WSDL is derived from the Java interfaces/code, these annotations allow adding wsd:documentation elements to various locations in the generated wsdl.

For example:

@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 MyService {

   @WSDLDocumentation("The docs for echoString")
   String echoString(String s);

}

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!