Soap请求对象以null形式出现-spring ws

Soap请求对象以null形式出现-spring ws,soap,soapui,axis,spring-ws,Soap,Soapui,Axis,Spring Ws,在从soap UI尝试时,即使我在req对象中发送值,Iam也会在请求对象中获取空值。原因是什么?请帮忙 下面是我的终点 @Endpoint public class SummaryEndPoint { @PayloadRoot(namespace = "http://online.mysite.no", localPart ="getSummary") public @ResponsePayload JAXBEleme

在从soap UI尝试时,即使我在req对象中发送值,Iam也会在请求对象中获取空值。原因是什么?请帮忙

下面是我的终点

     @Endpoint
        public class SummaryEndPoint {

            @PayloadRoot(namespace = "http://online.mysite.no", localPart ="getSummary")
            public @ResponsePayload JAXBElement<EInvoicesObjects> getSummary(@RequestPayload SummaryObject summaryObject) {


//Here summaryObject.getzDocId() returns null.
    return null;

                }
            }

请求类的名称中应包含“request”。
请重命名您的请求类并尝试使用“SummaryObjectRequest”

请求类的名称中应该有'request'。
请重命名您的请求类并尝试使用“SummaryObjectRequest”

我也有同样的问题。在深入分析我的代码之后,我发现这是因为名称空间。(参见上的示例)。
在您的示例中,参数
应该包含在其父名称空间中,就像:
我有同样的问题一样。在深入分析我的代码之后,我发现这是因为名称空间。(参见上的示例)。
在您的示例中,参数
应该包含在其父名称空间中,如:

您是如何测试的?我建议为您的端点设置一个集成测试,因为它们通常提供对应用程序内部工作的更多了解,并在那里查找任何指针。应该能帮你解决这个问题,你能解决吗?我遇到了同样的问题。在我的端点类中,请求负载为String的方法在从SOAPUI调用时工作良好。但是在同一个类中,一个请求负载为自定义类的方法将使用空值。它被命名为customerStatusRequest。我也在这个页面上发布了:你是如何测试这个的?我建议为您的端点设置一个集成测试,因为它们通常提供对应用程序内部工作的更多了解,并在那里查找任何指针。应该能帮你解决这个问题,你能解决吗?我遇到了同样的问题。在我的端点类中,请求负载为String的方法在从SOAPUI调用时工作良好。但是在同一个类中,一个请求负载为自定义类的方法将使用空值。它被命名为customerStatusRequest。我也在这个页面上发布了:
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:onl="http://online.mysite.no">
   <soapenv:Header/>
   <soapenv:Body>
      <onl:getSummary soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <in0 xsi:type="onl:SummaryObject">
            <ZDocId xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">asdasdsa</ZDocId>
            <amountDue xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">sadadsadsa</amountDue>            
         </in0>
      </onl:getSummary>
   </soapenv:Body>
</soapenv:Envelope>
package com.nets.online2adapter.endpoints;

import javax.xml.bind.annotation.*;


import org.xmlsoap.schemas.soap.encoding.String;




@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SummaryObject", propOrder = {
        "zDocId",
        "amountDue"
},namespace="http://online.mysite.no")
public class SummaryObject {

    @XmlElement(name = "ZDocId", required = true, nillable = true)
    protected String zDocId;
    @XmlElement(required = true, nillable = true)
    protected String amountDue;


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

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

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

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

}