You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Frode Nerbråten (JIRA)" <ji...@apache.org> on 2009/09/02 11:22:33 UTC

[jira] Created: (CXF-2416) wsdl2java generates compiler warning

wsdl2java generates compiler warning
------------------------------------

                 Key: CXF-2416
                 URL: https://issues.apache.org/jira/browse/CXF-2416
             Project: CXF
          Issue Type: Improvement
          Components: Tooling
    Affects Versions: 2.2.3
         Environment: openjdk 1.6
            Reporter: Frode Nerbråten
            Priority: Trivial


wsdl2java generates compiler warning for document literal bare service.
Both javax.jws.soap.SOAPBinding and javax.jws.soap.SOAPBinding.ParameterStyle are imported, but the ParameterStyle is referenced through SOAPBinding: (wsdl and generated classes are attached)

package org.example.person;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.jws.soap.SOAPBinding.ParameterStyle;
import javax.xml.bind.annotation.XmlSeeAlso;

/**
 * This class was generated by Apache CXF 2.2.3
 * Wed Sep 02 11:11:05 CEST 2009
 * Generated source version: 2.2.3
 * 
 */

@WebService(targetNamespace = "http://www.example.org/person/", name = "PersonPortType")
@XmlSeeAlso({ObjectFactory.class})
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public interface PersonPortType {

    @WebResult(name = "person", targetNamespace = "", partName = "person")
    @WebMethod(action = "http://www.example.org/person/getPerson")
    public Person getPerson(
        @WebParam(partName = "id", name = "id", targetNamespace = "")
        int id
    );
}


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


[jira] Issue Comment Edited: (CXF-2416) wsdl2java generates compiler warning

Posted by "Frode Nerbråten (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-2416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750352#action_12750352 ] 

Frode Nerbråten edited comment on CXF-2416 at 9/2/09 2:26 AM:
--------------------------------------------------------------

Example with wsdl and generated code with import warning. See PersonPortType.java

      was (Author: froden):
    Example illustrating generated code with import warning. See PersonPortType.java
  
> wsdl2java generates compiler warning
> ------------------------------------
>
>                 Key: CXF-2416
>                 URL: https://issues.apache.org/jira/browse/CXF-2416
>             Project: CXF
>          Issue Type: Improvement
>          Components: Tooling
>    Affects Versions: 2.2.3
>         Environment: openjdk 1.6
>            Reporter: Frode Nerbråten
>            Priority: Trivial
>         Attachments: wsdl2java_compiler_warning.tgz
>
>
> wsdl2java generates compiler warning for document literal bare service.
> Both javax.jws.soap.SOAPBinding and javax.jws.soap.SOAPBinding.ParameterStyle are imported, but the ParameterStyle is referenced through SOAPBinding: (wsdl and generated classes are attached)
> package org.example.person;
> import javax.jws.WebMethod;
> import javax.jws.WebParam;
> import javax.jws.WebResult;
> import javax.jws.WebService;
> import javax.jws.soap.SOAPBinding;
> import javax.jws.soap.SOAPBinding.ParameterStyle;
> import javax.xml.bind.annotation.XmlSeeAlso;
> /**
>  * This class was generated by Apache CXF 2.2.3
>  * Wed Sep 02 11:11:05 CEST 2009
>  * Generated source version: 2.2.3
>  * 
>  */
> @WebService(targetNamespace = "http://www.example.org/person/", name = "PersonPortType")
> @XmlSeeAlso({ObjectFactory.class})
> @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
> public interface PersonPortType {
>     @WebResult(name = "person", targetNamespace = "", partName = "person")
>     @WebMethod(action = "http://www.example.org/person/getPerson")
>     public Person getPerson(
>         @WebParam(partName = "id", name = "id", targetNamespace = "")
>         int id
>     );
> }

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


[jira] Updated: (CXF-2416) wsdl2java generates compiler warning

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

Frode Nerbråten updated CXF-2416:
---------------------------------

    Attachment: wsdl2java_compiler_warning.tgz

Example illustrating generated code with import warning. See PersonPortType.java

> wsdl2java generates compiler warning
> ------------------------------------
>
>                 Key: CXF-2416
>                 URL: https://issues.apache.org/jira/browse/CXF-2416
>             Project: CXF
>          Issue Type: Improvement
>          Components: Tooling
>    Affects Versions: 2.2.3
>         Environment: openjdk 1.6
>            Reporter: Frode Nerbråten
>            Priority: Trivial
>         Attachments: wsdl2java_compiler_warning.tgz
>
>
> wsdl2java generates compiler warning for document literal bare service.
> Both javax.jws.soap.SOAPBinding and javax.jws.soap.SOAPBinding.ParameterStyle are imported, but the ParameterStyle is referenced through SOAPBinding: (wsdl and generated classes are attached)
> package org.example.person;
> import javax.jws.WebMethod;
> import javax.jws.WebParam;
> import javax.jws.WebResult;
> import javax.jws.WebService;
> import javax.jws.soap.SOAPBinding;
> import javax.jws.soap.SOAPBinding.ParameterStyle;
> import javax.xml.bind.annotation.XmlSeeAlso;
> /**
>  * This class was generated by Apache CXF 2.2.3
>  * Wed Sep 02 11:11:05 CEST 2009
>  * Generated source version: 2.2.3
>  * 
>  */
> @WebService(targetNamespace = "http://www.example.org/person/", name = "PersonPortType")
> @XmlSeeAlso({ObjectFactory.class})
> @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
> public interface PersonPortType {
>     @WebResult(name = "person", targetNamespace = "", partName = "person")
>     @WebMethod(action = "http://www.example.org/person/getPerson")
>     public Person getPerson(
>         @WebParam(partName = "id", name = "id", targetNamespace = "")
>         int id
>     );
> }

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


[jira] Resolved: (CXF-2416) wsdl2java generates compiler warning

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

Daniel Kulp resolved CXF-2416.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2.4
                   2.1.7

> wsdl2java generates compiler warning
> ------------------------------------
>
>                 Key: CXF-2416
>                 URL: https://issues.apache.org/jira/browse/CXF-2416
>             Project: CXF
>          Issue Type: Improvement
>          Components: Tooling
>    Affects Versions: 2.2.3
>         Environment: openjdk 1.6
>            Reporter: Frode Nerbråten
>            Assignee: Daniel Kulp
>            Priority: Trivial
>             Fix For: 2.1.7, 2.2.4
>
>         Attachments: wsdl2java_compiler_warning.tgz
>
>
> wsdl2java generates compiler warning for document literal bare service.
> Both javax.jws.soap.SOAPBinding and javax.jws.soap.SOAPBinding.ParameterStyle are imported, but the ParameterStyle is referenced through SOAPBinding. This generates an unused import warning on the line:
> import javax.jws.soap.SOAPBinding.ParameterStyle;
> (wsdl and generated classes are attached)
> package org.example.person;
> import javax.jws.WebMethod;
> import javax.jws.WebParam;
> import javax.jws.WebResult;
> import javax.jws.WebService;
> import javax.jws.soap.SOAPBinding;
> import javax.jws.soap.SOAPBinding.ParameterStyle;
> import javax.xml.bind.annotation.XmlSeeAlso;
> /**
>  * This class was generated by Apache CXF 2.2.3
>  * Wed Sep 02 11:11:05 CEST 2009
>  * Generated source version: 2.2.3
>  * 
>  */
> @WebService(targetNamespace = "http://www.example.org/person/", name = "PersonPortType")
> @XmlSeeAlso({ObjectFactory.class})
> @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
> public interface PersonPortType {
>     @WebResult(name = "person", targetNamespace = "", partName = "person")
>     @WebMethod(action = "http://www.example.org/person/getPerson")
>     public Person getPerson(
>         @WebParam(partName = "id", name = "id", targetNamespace = "")
>         int id
>     );
> }

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


[jira] Updated: (CXF-2416) wsdl2java generates compiler warning

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

Frode Nerbråten updated CXF-2416:
---------------------------------

    Description: 
wsdl2java generates compiler warning for document literal bare service.
Both javax.jws.soap.SOAPBinding and javax.jws.soap.SOAPBinding.ParameterStyle are imported, but the ParameterStyle is referenced through SOAPBinding. This generates an unused import warning on the line:
import javax.jws.soap.SOAPBinding.ParameterStyle;

(wsdl and generated classes are attached)

package org.example.person;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.jws.soap.SOAPBinding.ParameterStyle;
import javax.xml.bind.annotation.XmlSeeAlso;

/**
 * This class was generated by Apache CXF 2.2.3
 * Wed Sep 02 11:11:05 CEST 2009
 * Generated source version: 2.2.3
 * 
 */

@WebService(targetNamespace = "http://www.example.org/person/", name = "PersonPortType")
@XmlSeeAlso({ObjectFactory.class})
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public interface PersonPortType {

    @WebResult(name = "person", targetNamespace = "", partName = "person")
    @WebMethod(action = "http://www.example.org/person/getPerson")
    public Person getPerson(
        @WebParam(partName = "id", name = "id", targetNamespace = "")
        int id
    );
}


  was:
wsdl2java generates compiler warning for document literal bare service.
Both javax.jws.soap.SOAPBinding and javax.jws.soap.SOAPBinding.ParameterStyle are imported, but the ParameterStyle is referenced through SOAPBinding: (wsdl and generated classes are attached)

package org.example.person;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.jws.soap.SOAPBinding.ParameterStyle;
import javax.xml.bind.annotation.XmlSeeAlso;

/**
 * This class was generated by Apache CXF 2.2.3
 * Wed Sep 02 11:11:05 CEST 2009
 * Generated source version: 2.2.3
 * 
 */

@WebService(targetNamespace = "http://www.example.org/person/", name = "PersonPortType")
@XmlSeeAlso({ObjectFactory.class})
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public interface PersonPortType {

    @WebResult(name = "person", targetNamespace = "", partName = "person")
    @WebMethod(action = "http://www.example.org/person/getPerson")
    public Person getPerson(
        @WebParam(partName = "id", name = "id", targetNamespace = "")
        int id
    );
}



> wsdl2java generates compiler warning
> ------------------------------------
>
>                 Key: CXF-2416
>                 URL: https://issues.apache.org/jira/browse/CXF-2416
>             Project: CXF
>          Issue Type: Improvement
>          Components: Tooling
>    Affects Versions: 2.2.3
>         Environment: openjdk 1.6
>            Reporter: Frode Nerbråten
>            Priority: Trivial
>         Attachments: wsdl2java_compiler_warning.tgz
>
>
> wsdl2java generates compiler warning for document literal bare service.
> Both javax.jws.soap.SOAPBinding and javax.jws.soap.SOAPBinding.ParameterStyle are imported, but the ParameterStyle is referenced through SOAPBinding. This generates an unused import warning on the line:
> import javax.jws.soap.SOAPBinding.ParameterStyle;
> (wsdl and generated classes are attached)
> package org.example.person;
> import javax.jws.WebMethod;
> import javax.jws.WebParam;
> import javax.jws.WebResult;
> import javax.jws.WebService;
> import javax.jws.soap.SOAPBinding;
> import javax.jws.soap.SOAPBinding.ParameterStyle;
> import javax.xml.bind.annotation.XmlSeeAlso;
> /**
>  * This class was generated by Apache CXF 2.2.3
>  * Wed Sep 02 11:11:05 CEST 2009
>  * Generated source version: 2.2.3
>  * 
>  */
> @WebService(targetNamespace = "http://www.example.org/person/", name = "PersonPortType")
> @XmlSeeAlso({ObjectFactory.class})
> @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
> public interface PersonPortType {
>     @WebResult(name = "person", targetNamespace = "", partName = "person")
>     @WebMethod(action = "http://www.example.org/person/getPerson")
>     public Person getPerson(
>         @WebParam(partName = "id", name = "id", targetNamespace = "")
>         int id
>     );
> }

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


[jira] Assigned: (CXF-2416) wsdl2java generates compiler warning

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

Daniel Kulp reassigned CXF-2416:
--------------------------------

    Assignee: Daniel Kulp

> wsdl2java generates compiler warning
> ------------------------------------
>
>                 Key: CXF-2416
>                 URL: https://issues.apache.org/jira/browse/CXF-2416
>             Project: CXF
>          Issue Type: Improvement
>          Components: Tooling
>    Affects Versions: 2.2.3
>         Environment: openjdk 1.6
>            Reporter: Frode Nerbråten
>            Assignee: Daniel Kulp
>            Priority: Trivial
>         Attachments: wsdl2java_compiler_warning.tgz
>
>
> wsdl2java generates compiler warning for document literal bare service.
> Both javax.jws.soap.SOAPBinding and javax.jws.soap.SOAPBinding.ParameterStyle are imported, but the ParameterStyle is referenced through SOAPBinding. This generates an unused import warning on the line:
> import javax.jws.soap.SOAPBinding.ParameterStyle;
> (wsdl and generated classes are attached)
> package org.example.person;
> import javax.jws.WebMethod;
> import javax.jws.WebParam;
> import javax.jws.WebResult;
> import javax.jws.WebService;
> import javax.jws.soap.SOAPBinding;
> import javax.jws.soap.SOAPBinding.ParameterStyle;
> import javax.xml.bind.annotation.XmlSeeAlso;
> /**
>  * This class was generated by Apache CXF 2.2.3
>  * Wed Sep 02 11:11:05 CEST 2009
>  * Generated source version: 2.2.3
>  * 
>  */
> @WebService(targetNamespace = "http://www.example.org/person/", name = "PersonPortType")
> @XmlSeeAlso({ObjectFactory.class})
> @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
> public interface PersonPortType {
>     @WebResult(name = "person", targetNamespace = "", partName = "person")
>     @WebMethod(action = "http://www.example.org/person/getPerson")
>     public Person getPerson(
>         @WebParam(partName = "id", name = "id", targetNamespace = "")
>         int id
>     );
> }

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