Java JAXBEException:类org.tempuri.BillPull上的属性无效

Java JAXBEException:类org.tempuri.BillPull上的属性无效,java,jdeveloper,Java,Jdeveloper,尝试测试web服务JAXBEException时出现以下错误:类org.tempuri.BillPull上的属性无效 public BillPull { @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "guid", "billPullRequest", "username", "password" }) @XmlRootElement(name = "BillPul

尝试测试web服务JAXBEException时出现以下错误:类org.tempuri.BillPull上的属性无效

public BillPull {

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "guid",
    "billPullRequest",
    "username",
    "password"
})
@XmlRootElement(name = "BillPull")


public class BillPull {
//@XmlElement(name = "GUID")
protected String guid;
@XmlElement(name = "BillPullRequest")
protected BillPull.BillPullRequest billPullRequest;
@XmlElement(required = true)
protected String username;
@XmlElement(required = true)
protected String password;

/**
 * Gets the value of the guid property.
 * 
 * @return
 *     possible object is
 *     {@link String }
 *     
 */
public String getGUID() {
    return guid;
}

/**
 * Sets the value of the guid property.
 * 
 * @param value
 *     allowed object is
 *     {@link String }
 *     
 */
public void setGUID(String value) {
    this.guid = value;
}
这是一个org.tempuri.BillPull

public BillPull {

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "guid",
    "billPullRequest",
    "username",
    "password"
})
@XmlRootElement(name = "BillPull")


public class BillPull {
//@XmlElement(name = "GUID")
protected String guid;
@XmlElement(name = "BillPullRequest")
protected BillPull.BillPullRequest billPullRequest;
@XmlElement(required = true)
protected String username;
@XmlElement(required = true)
protected String password;

/**
 * Gets the value of the guid property.
 * 
 * @return
 *     possible object is
 *     {@link String }
 *     
 */
public String getGUID() {
    return guid;
}

/**
 * Sets the value of the guid property.
 * 
 * @param value
 *     allowed object is
 *     {@link String }
 *     
 */
public void setGUID(String value) {
    this.guid = value;
}
}

公共类ReceivePaymentNotification{

protected String guid;
protected ReceivePaymentNotification.PaymentNotification paymentNotification;
@XmlElement(required = true)
protected String username;
@XmlElement(required = true)
protected String password;

/**
 * Gets the value of the guid property.
 * 
 * @return
 *     possible object is
 *     {@link String }
 *     
 */
public String getGuid() {
    return guid;
}

/**
 * Sets the value of the guid property.
 * 
 * @param value
 *     allowed object is
 *     {@link String }
 *     
 */
public void setGuid(String value) {
    this.guid = value;`enter code here`
}
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name=),比例={ “guid”, “付款通知”, “用户名”, “密码” }) @XmlRootElement(name=“ReceivePaymentNotification”)

公共类ReceivePaymentNotification{

protected String guid;
protected ReceivePaymentNotification.PaymentNotification paymentNotification;
@XmlElement(required = true)
protected String username;
@XmlElement(required = true)
protected String password;

/**
 * Gets the value of the guid property.
 * 
 * @return
 *     possible object is
 *     {@link String }
 *     
 */
public String getGuid() {
    return guid;
}

/**
 * Sets the value of the guid property.
 * 
 * @param value
 *     allowed object is
 *     {@link String }
 *     
 */
public void setGuid(String value) {
    this.guid = value;`enter code here`
}
} }

日志

“WSHttpBinding_IBillerServices”无法在Web应用程序“IBillerWebService_GlassfishRelase.war”中启动时预加载。javax.xml.ws.WebServiceException:class org.tempuri.ReceivePaymentNotification在com.sun.xml.ws.server.sei.EndpointArgumentsBuilder$DocLit处没有名称为guid的属性。(EndpointArgumentsBuilder.java:513)在com.sun.xml.ws.server.sei.EndpointMethodHandlerImpl.createArgumentsBuilder处(EndpointMethodHandlerImpl.java:144)位于com.sun.xml.ws.server.sei.EndpointMethodHandlerImpl.(EndpointMethodHandlerImpl.java:117)位于com.sun.xml.ws.server.sei.EndpointMethodHandlerFactory.create(EndpointMethodHandlerFactory.java:15)位于com.sun.xml.ws.server.sei.PayloadQNameBasedDispatcher.(PayloadQNameBasedDispatcher.java:118)位于com.sun.xml.ws.server.sei.endpointMethodDispatchetter.(endpointMethodDispatchetter.java:83)位于com.sun.xml.ws.server.sei.seinvokerTube.(seinvokerTube.java:82)位于weblogic.wsee.jaxws.WLSContainer$WLSEndpointFactory$1.createServer(WLSContainer.java:800)位于weblogic.wsee.jaxws.ServerLateInitTube.postCreateEndpointweblogic.wsee.jaxws.jaxws.JAXWSServlet.registerEndpoint(JAXWSServlet.java:150)的weblogic.wsee.jaxws.jaxwservlet.init(jaxwservlet.java:54)的weblogic.wsee.jaxws.JAXWSServlet.init(JAXWSServlet.java:64)的weblogic.wsee.jaxws.jaxws.JAXWSDeployedServlet.init(JAXWSDeployedServlet.java:54)上weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)上weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)的weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)的weblogic.servlet.internal.StubLifecycleHelper.(StubLifecycleHelper.java:48)的weblogic.servlet.servlet.internal.servlet.ServletStubletImpl.prepareServlet(ServletStubImpl.java:539)在weblogic.servlet.internal.WebAppServletContext.preloservlet(WebAppServletContext.java:1985)在weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1959)在weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1878)在weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)在weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)在weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)在weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)在weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)在weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)在weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)在weblogic.application.internal.flow.ModuleListenerInvoker.startweblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)位于weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)位于weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)在weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)在weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)在weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)在weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)中在weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43)在weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)在weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)上在weblogic.deploy.internal.targetserver.operations.AbstractOperations.activate(AbstractOperation.java:569)在weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)在weblogic.deploy.internal.targetserver.operations.ActivateOperations.doCommit(ActivateOperations.java:116)上在weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)在weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)在weblogic.Deployment.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)中位于weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)的weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)的weblogic.Deployment.service.internal.targetserver.DeploymentReceiverCallbackDeliver.doCommitCallback(DeploymentReceiverCallbackDeliver.java:195)位于weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliver.access$100(DeploymentReceiverCallbackDeliver.java:13)位于weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliver$2.run(DeploymentReceiverCallbackDeliver.java:68)在weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)在weblogic.work.ExecuteThread.e