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/13 11:59:17 UTC

[jira] Created: (CXF-2941) Response wrapper bean generation does not respect the @WebResult annotation

Response wrapper bean generation does not respect the @WebResult annotation
---------------------------------------------------------------------------

                 Key: CXF-2941
                 URL: https://issues.apache.org/jira/browse/CXF-2941
             Project: CXF
          Issue Type: Bug
          Components: Transports
            Reporter: jimma
            Assignee: jimma
             Fix For: 2.3


The namespace value of @XmlElement should be "hello/name" and name value should be "name" in the wrapp bean HelloStringResponse.java which is genererated from the following SEI: 
public class WebResultService {
    @WebMethod(operationName="helloString", action="urn:HelloString")
    @WebResult(name="name", partName="name", targetNamespace="hello/name")
    public String hello(int age) {
      return "Hello " + age + " to Web Service";
    }
}

java2ws tool  does not respect the @WebResult annotation to get the namesapce and value to generate the @XmlElement in the wrapper bean :

@XmlRootElement(name = "helloStringResponse", namespace = "http://cxf2936.fortest.tools.cxf.apache.org/")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "helloStringResponse", namespace = "http://cxf2936.fortest.tools.cxf.apache.org/")

public class HelloResponse {

    @XmlElement(name = "return")
    private java.lang.String name;

    public java.lang.String getName() {
        return this.name;
    }

    public void setName(java.lang.String newName)  {
        this.name = newName;
    }
}





-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CXF-2941) Response wrapper bean generation does not respect the @WebResult annotation

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-2941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp updated CXF-2941:
-----------------------------

    Fix Version/s: 2.2.11
                       (was: 2.3)
      Component/s: Tooling
                       (was: Transports)

> Response wrapper bean generation does not respect the @WebResult annotation
> ---------------------------------------------------------------------------
>
>                 Key: CXF-2941
>                 URL: https://issues.apache.org/jira/browse/CXF-2941
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>            Reporter: jimma
>            Assignee: jimma
>             Fix For: 2.2.11
>
>
> The namespace value of @XmlElement should be "hello/name" and name value should be "name" in the wrapp bean HelloStringResponse.java which is genererated from the following SEI: 
> public class WebResultService {
>     @WebMethod(operationName="helloString", action="urn:HelloString")
>     @WebResult(name="name", partName="name", targetNamespace="hello/name")
>     public String hello(int age) {
>       return "Hello " + age + " to Web Service";
>     }
> }
> java2ws tool  does not respect the @WebResult annotation to get the namesapce and value to generate the @XmlElement in the wrapper bean :
> @XmlRootElement(name = "helloStringResponse", namespace = "http://cxf2936.fortest.tools.cxf.apache.org/")
> @XmlAccessorType(XmlAccessType.FIELD)
> @XmlType(name = "helloStringResponse", namespace = "http://cxf2936.fortest.tools.cxf.apache.org/")
> public class HelloResponse {
>     @XmlElement(name = "return")
>     private java.lang.String name;
>     public java.lang.String getName() {
>         return this.name;
>     }
>     public void setName(java.lang.String newName)  {
>         this.name = newName;
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CXF-2941) Response wrapper bean generation does not respect the @WebResult annotation

Posted by "jimma (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-2941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

jimma resolved CXF-2941.
------------------------

    Resolution: Fixed

> Response wrapper bean generation does not respect the @WebResult annotation
> ---------------------------------------------------------------------------
>
>                 Key: CXF-2941
>                 URL: https://issues.apache.org/jira/browse/CXF-2941
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>            Reporter: jimma
>            Assignee: jimma
>             Fix For: 2.3
>
>
> The namespace value of @XmlElement should be "hello/name" and name value should be "name" in the wrapp bean HelloStringResponse.java which is genererated from the following SEI: 
> public class WebResultService {
>     @WebMethod(operationName="helloString", action="urn:HelloString")
>     @WebResult(name="name", partName="name", targetNamespace="hello/name")
>     public String hello(int age) {
>       return "Hello " + age + " to Web Service";
>     }
> }
> java2ws tool  does not respect the @WebResult annotation to get the namesapce and value to generate the @XmlElement in the wrapper bean :
> @XmlRootElement(name = "helloStringResponse", namespace = "http://cxf2936.fortest.tools.cxf.apache.org/")
> @XmlAccessorType(XmlAccessType.FIELD)
> @XmlType(name = "helloStringResponse", namespace = "http://cxf2936.fortest.tools.cxf.apache.org/")
> public class HelloResponse {
>     @XmlElement(name = "return")
>     private java.lang.String name;
>     public java.lang.String getName() {
>         return this.name;
>     }
>     public void setName(java.lang.String newName)  {
>         this.name = newName;
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.