-1
我最初發布了一個關於爲什麼我的web服務的元素返回不想反序列化的問題。我發現我的郵件的WSDL.exe解釋不能正常工作。這是我改變了:從soapenv中刪除多餘的XML命名空間:Body
[return: XmlElement("RequestResult")]
public errorObject[] InitiateRequest(string[] params, string responseURL, string transactionID) {
object[] results = Invoke("InitiateRequest", new object[] {
params,
responseURL,
transactionID});
return ((errorObject[])(results[0]));
}
到
[return: XmlArray("RequestResult"), XmlArrayItem("errorObject", Namespace = "http://namespace/version", IsNullable = true)]
public errorObject[] InitiateRequest([XmlArray("Params"), XmlArrayItem("Param")] string[] params, string responseURL, string transactionID) {
object[] results = Invoke("InitiateRequest", new object[] {
params,
responseURL,
transactionID});
return ((errorObject[])(results[0]));
}
如果你讀這個未經修改或原始版本,我的道歉長ramblingness。希望這有人們需要找到他們的錯誤的關鍵字。我明天將它關閉。