我有一个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
,都是字符串。
为什么?