Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
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
}
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.