Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6716

java2ws should log a warning message for a Holder parameter annoated with WebParam.Mode.IN property

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.7, 3.1.4
    • Fix Version/s: 3.1.5, 3.0.8, 3.2.0
    • Component/s: Simple Frontend
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      java2ws should print warning message for the follow method and let user know the annotation for holder parameter is invalid and treat this as inout parameter by default :

      @WebService(name = "MyEchoService", targetNamespace = "urn:echo")
      public class MyEchoService {
      @WebResult(name = "result")
      public String echo(
      @WebParam(name = "message") String message,

      @WebParam(name = "paramIn", mode = WebParam.Mode.IN, header = true) Holder<String> paramIn,

      @WebParam(name = "paramOut",mode = WebParam.Mode.OUT, header = true) Holder<String> paramOut)

      { paramOut.value = "got paramIn " + paramIn.value; return "echo " + message; }

      }

        Attachments

          Activity

            People

            • Assignee:
              ema Jim Ma
              Reporter:
              ema Jim Ma
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: