1

我正在使用 Maven 3.0.3。我想使用 jaxws-maven-plugin 生成本地 WSDL 文件,但对需要为“<SEI>”标签设置什么值感到困惑。我的 Maven 插件代码是

                    <plugin>
                            <groupId>org.codehaus.mojo</groupId>
                            <artifactId>jaxws-maven-plugin</artifactId>
                            <executions>
                                    <execution>
                                            <goals>
                                                    <goal>wsimport</goal>
                                            </goals>
                                            <configuration>
                                                    <wsdlUrls>
                                                            <wsdlUrl>${wsdl.url}</wsdlUrl>
                                                    </wsdlUrls>
                                                    <sourceDestDir>${basedir}/src/main/java</sourceDestDir>
                                                    <packageName>org.mainco.orgws</packageName>
                                            </configuration>
                                    </execution>
                                    <execution>
                                            <!-- generate WSDL file from the compiled classes in tmp directory -->
                                            <id>generate wsdl file</id>
                                            <phase>process-resources</phase>
                                            <goals>
                                                    <goal>wsgen</goal>
                                            </goals>
                                            <configuration>
                                                    <sei>org.mainco.orgws.OrganizationWebService</sei>
                                                    <destDir>${basedir}/src/main/java</destDir>
                                                    <genWsdl>true</genWsdl>
                                                    <resourceDestDir>${basedir}/src/main/java</resourceDestDir>
                                                    <packageName>org.mainco.orgws</packageName>
                                            </configuration>
                                    </execution>
                            </executions>
                    </plugin>

运行此(“mvn clean test”)时,只生成一个带有“@WebService”注释的接口......

./src/main/java/org/mainco/orgws/OrganizationWebService.java

但是没有生成实现此交互的类。当我运行我的插件时,我得到了错误

[INFO] --- jaxws-maven-plugin:1.10:wsgen (generate wsdl file) @ orgsclient ---
The class "org.mainco.orgws.OrganizationWebService" is not an endpoint implementation class.

我需要寻找什么类来确定如何填充 <sei> 标签?

编辑:根据评论,这是该类的代码。它绝对是巨大的,所以我省略了几个方法,但希望它有助于解释事情。

package org.mainco.myws;

import java.util.List;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
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 = "OrganizationWebService", targetNamespace = "http://mainco.org/myws/")
@XmlSeeAlso({
    ObjectFactory.class
})
public interface OrganizationWebService {


    /**
     * 
     * @param referenceDomain
     * @param appId
     * @return
     *     returns org.mainco.myws.ReferenceDomainResponse
     * @throws BusinessServiceFaultException
     */
    @WebMethod
    @WebResult(targetNamespace = "")
    @RequestWrapper(localName = "getReferenceDomain", targetNamespace = "http://mainco.org/myws/", className = "org.mainco.myws.GetReferenceDomain")
    @ResponseWrapper(localName = "getReferenceDomainResponse", targetNamespace = "http://mainco.org/myws/", className = "org.mainco.myws.GetReferenceDomainResponse")
    public ReferenceDomainResponse getReferenceDomain(
        @WebParam(name = "appId", targetNamespace = "")
        Integer appId,
        @WebParam(name = "referenceDomain", targetNamespace = "")
        ReferenceDomain referenceDomain)
        throws BusinessServiceFaultException
    ;

    /**
     * 
     * @param orgDatasetList
     * @param orgId
     * @param aiDomain
     * @param appId
     * @return
     *     returns org.mainco.myws.OrgData
     * @throws BusinessServiceFaultException
     */
    @WebMethod
    @WebResult(targetNamespace = "")
    @RequestWrapper(localName = "getOrgData", targetNamespace = "http://mainco.org/myws/", className = "org.mainco.myws.GetOrgData")
    @ResponseWrapper(localName = "getOrgDataResponse", targetNamespace = "http://mainco.org/myws/", className = "org.mainco.myws.GetOrgDataResponse")
    public OrgData getOrgData(
        @WebParam(name = "appId", targetNamespace = "")
        Integer appId,
        @WebParam(name = "orgId", targetNamespace = "")
        Integer orgId,
        @WebParam(name = "aiDomain", targetNamespace = "")
        AiDomain aiDomain,
        @WebParam(name = "orgDatasetList", targetNamespace = "")
        OrgDatasetList orgDatasetList)
        throws BusinessServiceFaultException
    ;

    /**
     * 
     * @param orgType
     * @param orgId
     * @param relationshipType
     * @param appId
     * @param educationPeriodCd
     * @param orgSubTypeCd
     * @return
     *     returns org.mainco.myws.ParentOrgData
     * @throws BusinessServiceFaultException
     */
    @WebMethod
    @WebResult(targetNamespace = "")
    @RequestWrapper(localName = "getParentOrgData", targetNamespace = "http://mainco.org/myws/", className = "org.mainco.myws.GetParentOrgData")
    @ResponseWrapper(localName = "getParentOrgDataResponse", targetNamespace = "http://mainco.org/myws/", className = "org.mainco.myws.GetParentOrgDataResponse")
    public ParentOrgData getParentOrgData(
        @WebParam(name = "appId", targetNamespace = "")
        Integer appId,
        @WebParam(name = "orgId", targetNamespace = "")
        Integer orgId,
        @WebParam(name = "relationshipType", targetNamespace = "")
        OrgRelationshipType relationshipType,
        @WebParam(name = "educationPeriodCd", targetNamespace = "")
        String educationPeriodCd,
        @WebParam(name = "orgType", targetNamespace = "")
        OrgType orgType,
        @WebParam(name = "orgSubTypeCd", targetNamespace = "")
        String orgSubTypeCd)
        throws BusinessServiceFaultException
    ;

    /**
     * 
     * @param appId
     * @param suppressRequestorEmail
     * @param orgDataChange
     * @param requestInfo
     * @return
     *     returns java.lang.Integer
     * @throws BusinessServiceFaultException
     */
    @WebMethod
    @WebResult(targetNamespace = "")
    @RequestWrapper(localName = "requestOrgDataChange", targetNamespace = "http://mainco.org/myws/", className = "org.mainco.myws.RequestOrgDataChange")
    @ResponseWrapper(localName = "requestOrgDataChangeResponse", targetNamespace = "http://mainco.org/myws/", className = "org.mainco.myws.RequestOrgDataChangeResponse")
    public Integer requestOrgDataChange(
        @WebParam(name = "appId", targetNamespace = "")
        Integer appId,
        @WebParam(name = "requestInfo", targetNamespace = "")
        OrgDataChangeRequestInfo requestInfo,
        @WebParam(name = "orgDataChange", targetNamespace = "")
        OrgDataChangeInfo orgDataChange,
        @WebParam(name = "suppressRequestorEmail", targetNamespace = "")
        Boolean suppressRequestorEmail)
        throws BusinessServiceFaultException
    ;

    /**
     * 
     * @param orgId
     * @param testProgram
     * @param appId
     * @param educationPeriodCd
     * @return
     *     returns org.mainco.myws.OrgReportsAvailableResponse
     * @throws BusinessServiceFaultException
     */
    @WebMethod
    @WebResult(targetNamespace = "")
    @RequestWrapper(localName = "getOrgReportsAvailable", targetNamespace = "http://mainco.org/myws/", className = "org.mainco.myws.GetOrgReportsAvailable")
    @ResponseWrapper(localName = "getOrgReportsAvailableResponse", targetNamespace = "http://mainco.org/myws/", className = "org.mainco.myws.GetOrgReportsAvailableResponse")
    public OrgReportsAvailableResponse getOrgReportsAvailable(
        @WebParam(name = "appId", targetNamespace = "")
        Integer appId,
        @WebParam(name = "orgId", targetNamespace = "")
        Integer orgId,
        @WebParam(name = "educationPeriodCd", targetNamespace = "")
            String educationPeriodCd,
        @WebParam(name = "testProgram", targetNamespace = "")
        TestProgramType testProgram)
        throws BusinessServiceFaultException
    ;

    /**
     * 
     * @param orgType
     * @param appId
     * @param educationPeriodCd
     * @param parentOrgId
     * @param orgSubTypeCd
     * @return
     *     returns java.util.List<org.mainco.myws.OrgChildrenList>
     * @throws BusinessServiceFaultException
     */
    @WebMethod
    @WebResult(targetNamespace = "")
    @RequestWrapper(localName = "getCrossProgramChildren", targetNamespace = "http://mainco.org/myws/", className = "org.mainco.myws.GetCrossProgramChildren")
    @ResponseWrapper(localName = "getCrossProgramChildrenResponse", targetNamespace = "http://mainco.org/myws/", className = "org.mainco.myws.GetCrossProgramChildrenResponse")
    public List<OrgChildrenList> getCrossProgramChildren(
        @WebParam(name = "appId", targetNamespace = "")
        Integer appId,
        @WebParam(name = "parentOrgId", targetNamespace = "")
        Integer parentOrgId,
        @WebParam(name = "educationPeriodCd", targetNamespace = "")
        String educationPeriodCd,
        @WebParam(name = "orgType", targetNamespace = "")
        OrgType orgType,
        @WebParam(name = "orgSubTypeCd", targetNamespace = "")
        String orgSubTypeCd)
        throws BusinessServiceFaultException
    ;

...
}
4

1 回答 1

0

这是一个错字:你已经 <packageName>org.mainco.orgws</packageName>在你的pom.xmlOrganizationWebService包中声明了org.mainco.myws吗?

于 2012-11-07T11:16:47.733 回答