为什么对象数组返回null?

我有一个wsdl,它返回一个字段数组。

 [system.web.Services.Protocols.SoapDocumentMethodAttribute("http://sap.com/xi/WebService/soap1.1",Use=system.web.Services.Description.SoapBindingUse.Literal,ParameterStyle=system.web.Services.Protocols.SoapParameterStyle.Bare)]
    [return: system.xml.Serialization.XmlArrayAttribute("MT_PM",Namespace="test")]
    [return: system.xml.Serialization.XmlArrayItemAttribute("Records",Form=system.xml.Schema.XmlSchemaForm.Unqualified,Isnullable=false)]
    public DTPM[] SI_PM([system.xml.Serialization.XmlArrayAttribute(Namespace="Test")] [system.xml.Serialization.XmlArrayItemAttribute("Records",Isnullable=false)] DTPM[] MT_PM) {
        object[] results = this.Invoke("SI_PM",new object[] {
                    MT_PM});
        return ((DTPM[])(results[0]));

}

消耗了我创建的这种类型的数组以接收结果。

   Dim NotifResponse As DTPM() = New DTPM(0) {}

 NotifResponse = EAM_II002.SI_PM(NotifRequest)

它在NotifResponse中不返回任何内容。

但是在SOAPUI中使用相同的wsdl会返回数组中的数据。

DTPM的字段均为Stat,Num,都是字符串。

为什么?

windls2009 回答:为什么对象数组返回null?

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3153435.html

大家都在问