Gradle JAXBEException:类。。。在这种情况下,也不知道它的任何超类

Gradle JAXBEException:类。。。在这种情况下,也不知道它的任何超类,gradle,soap,jaxb,wsdl2java,wsimport,Gradle,Soap,Jaxb,Wsdl2java,Wsimport,我有一个wsdl文件,当通过wsimport创建类时,我会得到一个接口。此接口具有用于发送MessagePrimaryContent.setAny请求的@WebMethod: /** * Sets the value of the any property. * * @param value * allowed object is * {@link Element } * {@link Object

我有一个wsdl文件,当通过wsimport创建类时,我会得到一个接口。此接口具有用于发送MessagePrimaryContent.setAny请求的@WebMethod:

     /**
     * Sets the value of the any property.
     * 
     * @param value
     *     allowed object is
     *     {@link Element }
     *     {@link Object }
     *     
     */
    public void setAny(Object value) {
        this.any = value;
    }
我还有一个xsd方案。通过xjc,我形成了jaxb类。我需要将生成的类传递给setAny方法。尝试发送请求后,我收到一个错误:

javax.xml.ws.WebServiceException: javax.xml.bind.MarshalException
- with linked exception:
[com.sun.istack.SAXException2: javax.xml.bind.JAXBException: class ru.absenceofdebt.fts.artefacts.x.root._1_0.AbsenceOfDebtRequest nor any of its super class is known to this context.
javax.xml.bind.JAXBException: class ru.absenceofdebt.fts.artefacts.x.root._1_0.AbsenceOfDebtRequest nor any of its super class is known to this context.
迫切需要这样做。因此,在接口中构建项目时,我不得不将从xsd生成的ObjectFactory添加到@XMLSee中作为临时解决方案。但这是错误的。我怎样才能正确地做呢

task editFile {

ext.fileService = "${buildDir}/generated/org/tempuri/ISMEVSERVICE.java"
dependsOn wsimport
dependsOn genJaxb

doLast() {
       ant.replaceregexp(
               file: fileService,
               match: "org.tempuri.ObjectFactory.class",
               replace: "ru.absenceofdebt.fts.artefacts.x.root._1_0.ObjectFactory.class, org.tempuri.ObjectFactory.class",
               byline: "true"
       )
    }
}