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

Log warning message instead of ServiceConstructionException in ReflectionServiceFactoryBean.initializeClassInfo()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.11
    • Component/s: Simple Frontend
    • Labels:
      None

      Description

      When publish following service impl class with the wsdl generated from this same class, the runtime throws ServiceConstructionException because the wsdl generated is bare style which does not match with class method wrapped style.

      @WebService(wsdlLocation="WebResult.wsdl")
      @SOAPBinding(style=SOAPBinding.Style.DOCUMENT, use=SOAPBinding.Use.LITERAL, parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)
      public class WebResultService {
      @WebMethod(operationName="helloString", action="urn:HelloString")
      @WebResult(name="employee", partName="Employee", header=true, targetNamespace="hello/employee")
      public Employee hello(@WebParam(name="EmployeeName", header=true, targetNamespace="hello/employee") Employee employee, String name) throws NameException

      { Name newName = new Name(); newName.setFirstName("firstname"); newName.setLastName(name); Employee newEmployee = new Employee(); return newEmployee; }

      }

      After talked with Oracle's jaxws spec guys, I am told this specific case is valid and jaxws2.1 complaint. So we just log a warning message and enable the further process on it to support this use case.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: