The wrong target namespace of filed in response wrapper bean is generated
--------------------------------------------------------------------------
Key: CXF-2934
URL: https://issues.apache.org/jira/browse/CXF-2934
Project: CXF
Issue Type: Bug
Components: Tooling
Reporter: jimma
Assignee: jimma
Fix For: 2.3
When use java2ws with "-wrapperbean" flag to generate wsdl for this SEI :
public class webParamWebService {
@WebMethod(operationName="helloString4", action="urn:HelloString4")
public String hello4(@WebParam (name="Name",
targetNamespace="helloString4/Name", mode=WebParam.Mode.INOUT) Holder<Name>
name, @WebParam (name="Employee", mode=WebParam.Mode.OUT)
Holder<org.apache.cxf.Employee> employee) {
return "Hello " + name + " to Web Service";
}
}
the namespace value "helloString4/Name" in the @XmlElement annotated to Name
field is missing:
@XmlRootElement(name = "helloString4Response", namespace =
"http://cxf.apach.org")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "helloString4Response", namespace = "http://cxf.apach.org",
propOrder = {"_return", "Name", "Employee"})
public class Hello4Response {
@XmlElement(name = "return")
private java.lang.String _return;
@XmlElement(name = "Name")
private org.apache.cxf.Name Name;
@XmlElement(name = "Employee")
private org.apache.cxf.Employee Employee;
....
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.