You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "jimma (JIRA)" <ji...@apache.org> on 2010/08/16 18:32:19 UTC

[jira] Resolved: (CXF-2934) The wrong target namespace of filed in response wrapper bean is generated

     [ https://issues.apache.org/jira/browse/CXF-2934?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

jimma resolved CXF-2934.
------------------------

    Resolution: Fixed

> 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.