[jboss-user] [JBoss Web Services] New message: "Annotation SOAPBinding in generated Interface does not compile"

Michael Eibeck do-not-reply at jboss.com
Fri Jan 8 05:09:23 EST 2010


User development,

A new message was posted in the thread "Annotation SOAPBinding in generated Interface does not compile":

http://community.jboss.org/message/518910#518910

Author  : Michael Eibeck
Profile : http://community.jboss.org/people/skymic

Message:
--------------------------------------------------------------
Hi ,
 
I am using JBoss V5.1.0 and jdk1.6.0_17.
I try to generate java classes for my web service using wsconsume an passing a wsdl.
wsconsume manages to generate and compile my java classes fine.
I copied the generated java classes into my project and recompiled all using my IDE (which uses the same jdk11.6.0_17.
During this compile I get error messages on every SOAPBinding annotation which in the code which was generated by wsconsume.
 
Here is the generated interface:
 
 

package ch.skyguide.aim.interfaces.ws.server;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.adapters.HexBinaryAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import javax.xml.ws.Holder;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;

/**
 * This class was generated by the JAX-WS RI.
 * JAX-WS RI 2.1.3-b02-
 * Generated source version: 2.1
 * 
 */
@WebService(name = "SDOCustomerInterfaces", targetNamespace = "http://server.ws.aim.interfaces.skyguide.ch")
@XmlSeeAlso({
    ObjectFactory.class
})
public interface SDOCustomerInterfaces {

    /**
     * 
     * @param username
     * @param securityToken
     * @param isSupervisor
     * @param scopeIdentifier
     * @param password
     * @param isEditor
     * @throws LoginFault_Exception
     */
    @WebMethod
    @RequestWrapper(localName = "login", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", className = "ch.skyguide.aim.interfaces.ws.server.Login")
    @ResponseWrapper(localName = "loginResponse", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", className = "ch.skyguide.aim.interfaces.ws.server.LoginResponse")
    public void login(
        @WebParam(name = "username", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch")
        String username,
        @WebParam(name = "password", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch")
        String password,
        @WebParam(name = "scopeIdentifier", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch")
        ScopeIdentifier scopeIdentifier,
        @WebParam(name = "securityToken", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", mode = WebParam.Mode.OUT)
        Holder<byte[]> securityToken,
        @WebParam(name = "isSupervisor", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", mode = WebParam.Mode.OUT)
        Holder<Boolean> isSupervisor,
        @WebParam(name = "isEditor", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", mode = WebParam.Mode.OUT)
        Holder<Boolean> isEditor)
        throws LoginFault_Exception
    ;
    /**
     * 
     * @param logoffParameters
     * @throws LogoffRequestFault
     */
    @WebMethod
    @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
    public void logoff(
        @WebParam(name = "logoff", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", partName = "logoffParameters")
        Logoff logoffParameters)
        throws LogoffRequestFault
    ;
    /**
     * 
     * @param iBriefingExportResponsePart
     * @param iBriefingExportResponseData
     * @param iBriefingExportRequestGeneralPart
     * @param iBriefingExportRequestFilterPart
     * @throws ExportFault_Exception
     */
    @WebMethod(operationName = "IBriefingExport")
    @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
    public void iBriefingExport(
        @WebParam(name = "exportBase", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", partName = "IBriefingExportRequestGeneralPart")
        ExportBase iBriefingExportRequestGeneralPart,
        @WebParam(name = "IBriefingExportRequestFilterPart", targetNamespace = "", partName = "IBriefingExportRequestFilterPart")
        String iBriefingExportRequestFilterPart,
        @WebParam(name = "exportResponse", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", mode = WebParam.Mode.OUT, partName = "IBriefingExportResponsePart")
        Holder<ExportResponse> iBriefingExportResponsePart,
        @XmlJavaTypeAdapter(HexBinaryAdapter.class)
        @WebParam(name = "IBriefingExportResponseData", targetNamespace = "", mode = WebParam.Mode.OUT, partName = "IBriefingExportResponseData")
        Holder<byte[]> iBriefingExportResponseData)
        throws ExportFault_Exception
    ;
    /**
     *
     * @param tdSimExportRequestIdentifierFilter
     * @param tdSimExportResponseData
     * @param tdSimExportRequestSpatialFilterPart
     * @param tdSimExportResponsePart
     * @throws ExportFault_Exception
     */
    @WebMethod(operationName = "TDSimExport")
    @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
    public void tdSimExport(
        @WebParam(name = "TDSimIdentifierFilter", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", partName = "TDSimExportRequestIdentifierFilter")
        TDSimIdentifierFilter tdSimExportRequestIdentifierFilter,
        @WebParam(name = "TDSimExportRequestSpatialFilterPart", targetNamespace = "", partName = "TDSimExportRequestSpatialFilterPart")
        String tdSimExportRequestSpatialFilterPart,
        @WebParam(name = "exportResponse", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", mode = WebParam.Mode.OUT, partName = "TDSimExportResponsePart")
        Holder<ExportResponse> tdSimExportResponsePart,
        @XmlJavaTypeAdapter(HexBinaryAdapter.class)
        @WebParam(name = "TDSimExportResponseData", targetNamespace = "", mode = WebParam.Mode.OUT, partName = "TDSimExportResponseData")
        Holder<byte[]> tdSimExportResponseData)
        throws ExportFault_Exception
    ;
    /**
     * 
     * @param pansOpsExportRequestGeneralPart
     * @param pansOpsExportRequestFilterPart
     * @param pansOpsExportResponsePart
     * @param pansOpsExportResponseData
     * @throws ExportFault_Exception
     */
    @WebMethod(operationName = "PansOpsExport")
    @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
    public void pansOpsExport(
        @WebParam(name = "exportPansOps", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", partName = "PansOpsExportRequestGeneralPart")
        ExportPansOps pansOpsExportRequestGeneralPart,
        @WebParam(name = "PansOpsExportRequestFilterPart", targetNamespace = "", partName = "PansOpsExportRequestFilterPart")
        String pansOpsExportRequestFilterPart,
        @WebParam(name = "exportResponse", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", mode = WebParam.Mode.OUT, partName = "PansOpsExportResponsePart")
        Holder<ExportResponse> pansOpsExportResponsePart,
        @XmlJavaTypeAdapter(HexBinaryAdapter.class)
        @WebParam(name = "PansOpsExportResponseData", targetNamespace = "", mode = WebParam.Mode.OUT, partName = "PansOpsExportResponseData")
        Holder<byte[]> pansOpsExportResponseData)
        throws ExportFault_Exception
    ;
    /**
     * 
     * @param ftSimExportResponseData
     * @param ftSimExportRequestGeneralPart
     * @param ftSimExportResponsePart
     * @param ftSimExportRequestFilterPart
     * @throws ExportFault_Exception
     */
    @WebMethod(operationName = "FTSimExport")
    @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
    public void ftSimExport(
        @WebParam(name = "exportFastTimeSimulation", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", partName = "FTSimExportRequestGeneralPart")
        ExportFastTimeSimulation ftSimExportRequestGeneralPart,
        @WebParam(name = "FTSimExportRequestFilterPart", targetNamespace = "", partName = "FTSimExportRequestFilterPart")
        String ftSimExportRequestFilterPart,
        @WebParam(name = "exportResponse", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", mode = WebParam.Mode.OUT, partName = "FTSimExportResponsePart")
        Holder<ExportResponse> ftSimExportResponsePart,
        @XmlJavaTypeAdapter(HexBinaryAdapter.class)
        @WebParam(name = "FTSimExportResponseData", targetNamespace = "", mode = WebParam.Mode.OUT, partName = "FTSimExportResponseData")
        Holder<byte[]> ftSimExportResponseData)
        throws ExportFault_Exception
    ;
    /**
     * 
     * @param chartingExportRequestFilterPart
     * @param chartingExportResponsePart
     * @param chartingExportRequestGeneralPart
     * @param chartingExportResponseData
     * @throws ExportFault_Exception
     */
    @WebMethod(operationName = "ChartingExport")
    @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
    public void chartingExport(
        @WebParam(name = "exportCharting", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", partName = "ChartingExportRequestGeneralPart")
        ExportCharting chartingExportRequestGeneralPart,
        @WebParam(name = "ChartingExportRequestFilterPart", targetNamespace = "", partName = "ChartingExportRequestFilterPart")
        String chartingExportRequestFilterPart,
        @WebParam(name = "exportResponse", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", mode = WebParam.Mode.OUT, partName = "ChartingExportResponsePart")
        Holder<ExportResponse> chartingExportResponsePart,
        @XmlJavaTypeAdapter(HexBinaryAdapter.class)
        @WebParam(name = "ChartingExportResponseData", targetNamespace = "", mode = WebParam.Mode.OUT, partName = "ChartingExportResponseData")
        Holder<byte[]> chartingExportResponseData)
        throws ExportFault_Exception
    ;
    /**
     * 
     * @param hBriefingExportResponsePart
     * @param hBriefingExportRequestGeneralPart
     * @param hBriefingExportRequestFilterPart
     * @param hBriefingExportResponseData
     * @throws ExportFault_Exception
     */
    @WebMethod(operationName = "HBriefingExport")
    @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
    public void hBriefingExport(
        @WebParam(name = "exportHBriefing", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", partName = "HBriefingExportRequestGeneralPart")
        ExportHBriefing hBriefingExportRequestGeneralPart,
        @WebParam(name = "HBriefingExportRequestFilterPart", targetNamespace = "", partName = "HBriefingExportRequestFilterPart")
        String hBriefingExportRequestFilterPart,
        @WebParam(name = "exportResponse", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", mode = WebParam.Mode.OUT, partName = "HBriefingExportResponsePart")
        Holder<ExportResponse> hBriefingExportResponsePart,
        @XmlJavaTypeAdapter(HexBinaryAdapter.class)
        @WebParam(name = "HBriefingExportResponseData", targetNamespace = "", mode = WebParam.Mode.OUT, partName = "HBriefingExportResponseData")
        Holder<byte[]> hBriefingExportResponseData)
        throws ExportFault_Exception
    ;
    /**
     * 
     * @param focaExportResponseData
     * @param focaExportResponsePart
     * @param focaExportRequestFilterPart
     * @param focaExportRequestGeneralPart
     * @throws ExportFault_Exception
     */
    @WebMethod(operationName = "FOCAExport")
    @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
    public void focaExport(
        @WebParam(name = "exportFOCA", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", partName = "FOCAExportRequestGeneralPart")
        ExportFOCA focaExportRequestGeneralPart,
        @WebParam(name = "FOCAExportRequestFilterPart", targetNamespace = "", partName = "FOCAExportRequestFilterPart")
        String focaExportRequestFilterPart,
        @WebParam(name = "exportResponse", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", mode = WebParam.Mode.OUT, partName = "FOCAExportResponsePart")
        Holder<ExportResponse> focaExportResponsePart,
        @XmlJavaTypeAdapter(HexBinaryAdapter.class)
        @WebParam(name = "FOCAExportResponseData", targetNamespace = "", mode = WebParam.Mode.OUT, partName = "FOCAExportResponseData")
        Holder<byte[]> focaExportResponseData)
        throws ExportFault_Exception
    ;
    /**
     * 
     * @param historyRequestParam
     * @return
     *     returns ch.skyguide.aim.interfaces.ws.server.HistoryList
     * @throws HistoryFault_Exception
     */
    @WebMethod
    @WebResult(name = "historyList", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", partName = "history")
    @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
    public HistoryList history(
        @WebParam(name = "historyRequest", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", partName = "historyRequestParam")
        HistoryRequest historyRequestParam)
        throws HistoryFault_Exception
    ;
    /**
     * 
     * @param historyDataRequest
     * @return
     *     returns ch.skyguide.aim.interfaces.ws.server.HistoryData
     * @throws HistoryDataFault_Exception
     */
    @WebMethod
    @WebResult(name = "historyData", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", partName = "historyData")
    @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
    public HistoryData historyData(
        @WebParam(name = "historyDataRequest", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", partName = "historyDataRequest")
        HistoryDataRequest historyDataRequest)
        throws HistoryDataFault_Exception
    ;
    /**
     * 
     * @param importNavData
     * @param importNavDataParameters
     * @return
     *     returns boolean
     * @throws ImportNavDataFault_Exception
     */
    @WebMethod
    @WebResult(name = "importNavDataSuccess", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", partName = "importNavDataSuccess")
    @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
    public boolean importNavData(
        @WebParam(name = "importNavDataParameters", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", partName = "importNavDataParameters")
        ImportNavDataParameters importNavDataParameters,
        @XmlJavaTypeAdapter(HexBinaryAdapter.class)
        @WebParam(name = "importNavData", targetNamespace = "", partName = "importNavData")
        byte[] importNavData)
        throws ImportNavDataFault_Exception
    ;
    /**
     * 
     * @param importNavDataHistoryRequest
     * @return
     *     returns ch.skyguide.aim.interfaces.ws.server.ImportNavDataHistoryList
     * @throws ImportNavDataFault_Exception
     */
    @WebMethod
    @WebResult(name = "importNavDataHistoryList", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", partName = "importNavDataHistoryResponse")
    @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
    public ImportNavDataHistoryList importNavDataHistory(
        @WebParam(name = "importNavDataHistoryRequest", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", partName = "importNavDataHistoryRequest")
        ImportNavDataHistoryRequest importNavDataHistoryRequest)
        throws ImportNavDataFault_Exception
    ;
    /**
     * 
     * @param importNavDataLogRequest
     * @return
     *     returns ch.skyguide.aim.interfaces.ws.server.ImportNavDataLog
     * @throws ImportNavDataFault_Exception
     */
    @WebMethod
    @WebResult(name = "importNavDataLog", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", partName = "importNavDataLogResponse")
    @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
    public ImportNavDataLog importNavDataLog(
        @WebParam(name = "importNavDataLogRequest", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", partName = "importNavDataLogRequest")
        ImportNavDataLogRequest importNavDataLogRequest)
        throws ImportNavDataFault_Exception
    ;
    /**
     * 
     * @return
     *     returns ch.skyguide.aim.interfaces.ws.server.ExportImportStatus
     * @throws ImportExportStatusFault_Exception
     */
    @WebMethod
    @WebResult(name = "exportImportStatus", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", partName = "importExportStatusResponse")
    @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
    public ExportImportStatus importExportStatus()
        throws ImportExportStatusFault_Exception
    ;
    /**
     * 
     * @param exportImportTerminationRequest
     * @throws ExportImportTerminationFault_Exception
     */
    @WebMethod
    @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
    public void exportImportTermination(
        @WebParam(name = "exportImportTermination", targetNamespace = "http://types.server.ws.aim.interfaces.skyguide.ch", partName = "exportImportTerminationRequest")
        ExportImportTermination exportImportTerminationRequest)
        throws ExportImportTerminationFault_Exception
    ;
}
 
The error I get is "annotation type not applicable to this kind of declaration" on every line with a SOAPBinding annotation.
How come that wsconsume can generate AND compile the generated class well but my IDE cannot compile the generated code.
 
Can anyone help?
 
Thanks

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/518910#518910




More information about the jboss-user mailing list