|
楼主 |
发表于 2020-6-20 14:00:01
|
显示全部楼层
谢谢zcbb的回复,生成的代理类肯定有问题,我是根据parlay标准的wsdl文件生成的代理类,代理类的源码和测试程序的项目源码都可以提供,下面是代理类中getMywatchers方法部分的源码(有点乱,用ultraedit打开好了):
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Bare)]
[return: System.Xml.Serialization.XmlArrayAttribute("getMyWatchersResponse", Namespace="http://www.csapi.org/schema/parlayx/presence/supplier/v3_1/local")]
[return: System.Xml.Serialization.XmlArrayItemAttribute("result", Namespace="http://www.csapi.org/schema/parlayx/presence/supplier/v3_1/local", DataType="anyURI", IsNullable=false)]
public string[] getMyWatchers([System.Xml.Serialization.XmlElementAttribute("getMyWatchers", Namespace="http://www.csapi.org/schema/parlayx/presence/supplier/v3_1/local")] getMyWatchers getMyWatchers1) {
object[] results = this.Invoke("getMyWatchers", new object[] {
getMyWatchers1});
return ((string[])(results[0]));
}
/// <remarks/>
public System.IAsyncResult BegingetMyWatchers(getMyWatchers getMyWatchers1, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("getMyWatchers", new object[] {
getMyWatchers1}, callback, asyncState);
}
/// <remarks/>
public string[] EndgetMyWatchers(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string[])(results[0]));
}
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.csapi.org/schema/parlayx/presence/supplier/v3_1/local")]
public class getMyWatchers {
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(DataType="anyURI")]
public string presentity;
} |
|