任何人都能弄清楚我的问题是……
我正在从.Net客户端调用Java Webservice(Axis 1.4)的web方法.该方法返回一个Map对象,如果我从Axis客户端调用它工作正常,但在我的c#代码中它总是为null.
这是WSDL:
和我的c#自动生成的代码:
[System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace="urn:http.service.enlaces.portlet.ext.com", ResponseNamespace="urn:http.service.enlaces.portlet.ext.com")]
[return: System.Xml.Serialization.SoapElementAttribute("getFoldersAndBookmarksReturn")]
public Map getFoldersAndBookmarks() {
object[] results = this.Invoke("getFoldersAndBookmarks", new object[0]);
return ((Map)(results[0]));
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "2.0.50727.3082")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.SoapTypeAttribute(Namespace="http://xml.apache.org/xml-soap")]
public partial class Map {
private mapItem[] itemField;
///
public mapItem[] item {
get {
return this.itemField;
}
set {
this.itemField = value;
}
}
}
不幸的是,我到处都看到了,我找不到解决办法.
拜托,有谁知道呢?