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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.2.11
    • Simple Frontend
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: