|
Thank you for the reply from zcbb. The generated proxy class is definitely problematic. I generated the proxy class based on the parlay standard wsdl file. The source code of the proxy class and the project source code of the test program can be provided. The following is the source code of the getMywatchers method part of the proxy class (A bit messy, open it with 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;
} |
|