你的serverce都写什么代码了,看一下new中的代码。

解决方案 »

  1.   

    这个跟Service代码有关的?不是所有的客户端都出错,到现在才出来一台,win98客户端添加Web Service引用,ServiceProxy proxy = new localhost.ServiceProxy();代理类代码如下,已做部分处理,关键字用xxxxxxxxx表示了:)//------------------------------------------------------------------------------
    // <autogenerated>
    //     This code was generated by a tool.
    //     Runtime Version: 1.0.3705.0
    //
    //     Changes to this file may cause incorrect behavior and will be lost if 
    //     the code is regenerated.
    // </autogenerated>
    //------------------------------------------------------------------------------// 
    // This source code was auto-generated by Microsoft.VSDesigner, Version 1.0.3705.0.
    // 
    namespace xxxxxxxxxxxxxx{
        using System.Diagnostics;
        using System.Xml.Serialization;
        using System;
        using System.Web.Services.Protocols;
        using System.ComponentModel;
        using System.Web.Services;
        
        
        /// <res/>
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        [System.ComponentModel.DesignerCategoryAttribute("code")]
        [System.Web.Services.WebServiceBindingAttribute(Name="CommonServiceSoap", Namespace="xxxxxxxxxxxxxx")]
        public class CommonService : System.Web.Services.Protocols.SoapHttpClientProtocol {
            
            /// <res/>
            public CommonService() {
                this.Url = "xxxxxxxxxxxxxx";
            }
            
            /// <res/>
            [System.Web.Services.Protocols.SoapDocumentMethodAttribute("xxxxxxxxxxxxxx/GetServerDay", RequestNamespace="xxxxxxxxxxxxxx", ResponseNamespace="xxxxxxxxxxxxxx", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
            public System.DateTime GetServerDay() {
                object[] results = this.Invoke("GetServerDay", new object[0]);
                return ((System.DateTime)(results[0]));
            }
            
            /// <res/>
            public System.IAsyncResult BeginGetServerDay(System.AsyncCallback callback, object asyncState) {
                return this.BeginInvoke("GetServerDay", new object[0], callback, asyncState);
            }
            
            /// <res/>
            public System.DateTime EndGetServerDay(System.IAsyncResult asyncResult) {
                object[] results = this.EndInvoke(asyncResult);
                return ((System.DateTime)(results[0]));
            }
            
            /// <res/>
            [System.Web.Services.Protocols.SoapDocumentMethodAttribute("xxxxxxxxxxxxxx", RequestNamespace="xxxxxxxxxxxxxx", ResponseNamespace="xxxxxxxxxxxxxx", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
            public bool SendLog(string nasrSbm, [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] System.Byte[] logStream) {
                object[] results = this.Invoke("SendLog", new object[] {
                            nasrSbm,
                            logStream});
                return ((bool)(results[0]));
            }
            
            /// <res/>
            public System.IAsyncResult BeginSendLog(string nasrSbm, System.Byte[] logStream, System.AsyncCallback callback, object asyncState) {
                return this.BeginInvoke("SendLog", new object[] {
                            nasrSbm,
                            logStream}, callback, asyncState);
            }
            
            /// <res/>
            public bool EndSendLog(System.IAsyncResult asyncResult) {
                object[] results = this.EndInvoke(asyncResult);
                return ((bool)(results[0]));
            }
            
            /// <res/>
            [System.Web.Services.Protocols.SoapDocumentMethodAttribute("xxxxxxxxxxxxxx", RequestNamespace="xxxxxxxxxxxxxx", ResponseNamespace="xxxxxxxxxxxxxx", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
            public void SendCA(string nasrsbm, [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] System.Byte[] certStream) {
                this.Invoke("SendCA", new object[] {
                            nasrsbm,
                            certStream});
            }
            
            /// <res/>
            public System.IAsyncResult BeginSendCA(string nasrsbm, System.Byte[] certStream, System.AsyncCallback callback, object asyncState) {
                return this.BeginInvoke("SendCA", new object[] {
                            nasrsbm,
                            certStream}, callback, asyncState);
            }
            
            /// <res/>
            public void EndSendCA(System.IAsyncResult asyncResult) {
                this.EndInvoke(asyncResult);
            }
            
            /// <res/>
            [System.Web.Services.Protocols.SoapDocumentMethodAttribute("xxxxxxxxxxxxxx", RequestNamespace="xxxxxxxxxxxxxx", ResponseNamespace="xxxxxxxxxxxxxx", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
            public string GetServerVersion() {
                object[] results = this.Invoke("GetServerVersion", new object[0]);
                return ((string)(results[0]));
            }
            
            /// <res/>
            public System.IAsyncResult BeginGetServerVersion(System.AsyncCallback callback, object asyncState) {
                return this.BeginInvoke("GetServerVersion", new object[0], callback, asyncState);
            }
            
            /// <res/>
            public string EndGetServerVersion(System.IAsyncResult asyncResult) {
                object[] results = this.EndInvoke(asyncResult);
                return ((string)(results[0]));
            }
            
            /// <res/>
            [System.Web.Services.Protocols.SoapDocumentMethodAttribute("xxxxxxxxxxxxxx", RequestNamespace="xxxxxxxxxxxxxx", ResponseNamespace="xxxxxxxxxxxxxx", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
            public bool IsServerUpdateValid() {
                object[] results = this.Invoke("IsServerUpdateValid", new object[0]);
                return ((bool)(results[0]));
            }
            
      

  2.   

    /// <res/>
            public System.IAsyncResult BeginIsServerUpdateValid(System.AsyncCallback callback, object asyncState) {
                return this.BeginInvoke("IsServerUpdateValid", new object[0], callback, asyncState);
            }
            
            /// <res/>
            public bool EndIsServerUpdateValid(System.IAsyncResult asyncResult) {
                object[] results = this.EndInvoke(asyncResult);
                return ((bool)(results[0]));
            }
            
            /// <res/>
            [System.Web.Services.Protocols.SoapDocumentMethodAttribute("xxxxxxxxxxxxxx", RequestNamespace="xxxxxxxxxxxxxx", ResponseNamespace="xxxxxxxxxxxxxx", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
            public bool DownManifestFile(xxxxxxxxxxxxxxInfomation clientInformation, [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] out System.Byte[] manifestFileBytes, out string errorMessage) {
                object[] results = this.Invoke("DownManifestFile", new object[] {
                            clientInformation});
                manifestFileBytes = ((System.Byte[])(results[1]));
                errorMessage = ((string)(results[2]));
                return ((bool)(results[0]));
            }
            
            /// <res/>
            public System.IAsyncResult BeginDownManifestFile(xxxxxxxxxxxxxxInfomation clientInformation, System.AsyncCallback callback, object asyncState) {
                return this.BeginInvoke("DownManifestFile", new object[] {
                            clientInformation}, callback, asyncState);
            }
            
            /// <res/>
            public bool EndDownManifestFile(System.IAsyncResult asyncResult, out System.Byte[] manifestFileBytes, out string errorMessage) {
                object[] results = this.EndInvoke(asyncResult);
                manifestFileBytes = ((System.Byte[])(results[1]));
                errorMessage = ((string)(results[2]));
                return ((bool)(results[0]));
            }
            
            /// <res/>
            [System.Web.Services.Protocols.SoapDocumentMethodAttribute("xxxxxxxxxxxxxx", RequestNamespace="xxxxxxxxxxxxxx", ResponseNamespace="xxxxxxxxxxxxxx", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
            public bool DownApplicationFile(string fileName, [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] out System.Byte[] applicationFileBytes) {
                object[] results = this.Invoke("DownApplicationFile", new object[] {
                            fileName});
                applicationFileBytes = ((System.Byte[])(results[1]));
                return ((bool)(results[0]));
            }
            
            /// <res/>
            public System.IAsyncResult BeginDownApplicationFile(string fileName, System.AsyncCallback callback, object asyncState) {
                return this.BeginInvoke("DownApplicationFile", new object[] {
                            fileName}, callback, asyncState);
            }
            
            /// <res/>
            public bool EndDownApplicationFile(System.IAsyncResult asyncResult, out System.Byte[] applicationFileBytes) {
                object[] results = this.EndInvoke(asyncResult);
                applicationFileBytes = ((System.Byte[])(results[1]));
                return ((bool)(results[0]));
            }
            
            /// <res/>
            [System.Web.Services.Protocols.SoapDocumentMethodAttribute("xxxxxxxxxxxxxx", RequestNamespace="xxxxxxxxxxxxxx", ResponseNamespace="xxxxxxxxxxxxxx", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
            public void SetServerUpdateValid(bool updateValid) {
                this.Invoke("SetServerUpdateValid", new object[] {
                            updateValid});
            }
            
            /// <res/>
            public System.IAsyncResult BeginSetServerUpdateValid(bool updateValid, System.AsyncCallback callback, object asyncState) {
                return this.BeginInvoke("SetServerUpdateValid", new object[] {
                            updateValid}, callback, asyncState);
            }
            
            /// <res/>
            public void EndSetServerUpdateValid(System.IAsyncResult asyncResult) {
                this.EndInvoke(asyncResult);
            }
            
            /// <res/>
            [System.Web.Services.Protocols.SoapDocumentMethodAttribute("xxxxxxxxxxxxxx", RequestNamespace="xxxxxxxxxxxxxx", ResponseNamespace="xxxxxxxxxxxxxx", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
            public void SendFile(string fileName, [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] System.Byte[] logStream) {
                this.Invoke("SendFile", new object[] {
                            fileName,
                            logStream});
            }
            
            /// <res/>
            public System.IAsyncResult BeginSendFile(string fileName, System.Byte[] logStream, System.AsyncCallback callback, object asyncState) {
                return this.BeginInvoke("SendFile", new object[] {
                            fileName,
                            logStream}, callback, asyncState);
            }
            
            /// <res/>
            public void EndSendFile(System.IAsyncResult asyncResult) {
                this.EndInvoke(asyncResult);
            }
        }
        
        /// <res/>
        [System.Xml.Serialization.XmlTypeAttribute(Namespace="xxxxxxxxxxxxxx")]
        public class xxxxxxxxxxxxxxInfomation {
            
            /// <res/>
            public string Nasrsbm;
            
            /// <res/>
            public string OSID;
            
            /// <res/>
            public string OSVersion;
            
            /// <res/>
            public string mainAssermblyName;
            
            /// <res/>
            public string CAType;
        }
    }
      

  3.   

    do you happen to have overloaded methods in your web service?