本文介绍了方法"xyz"无法反映.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要使用Java Axis Web服务,但是当我尝试创建和实例化对象时,会提示错误

I am to consume a java Axis web service, but when i am trying to create and instantiate an object its giving an error



ICIContainer.IciContainerService a1 =新的SAPCTI.ICIContainer.IciContainerService();

这是我收到错误方法IciContainerService.unsubscribe无法反映"的声明帖子

System.InvalidOperationException未处理
  Message =无法反映方法IciContainerService.unsubscribe."
 来源="System.Web.Services"
  StackTrace:
        at System.Web.Services.Protocols.SoapReflector.ReflectMethod(LogicalMethodInfo methodInfo,布尔型客户端,XmlReflectionImporter xmlImporter,SoapReflectionImporter soapImporter,字符串defaultNs)
        at System.Web.Services.Protocols.SoapClientType.GenerateXmlMappings(类型类型,ArrayList soapMethodList,字符串serviceNamespace,布尔值serviceDefaultIsEncoded,ArrayList映射)
        at System.Web.Services.Protocols.SoapClientType..ctor(类型类型)
        at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor()
     在D:\ P R O J E C T S \ Eureka Forbes \ SAPCTI \ Web References \ ICIContainer \ Reference.cs:第43行的SAPCTI.ICIContainer.IciContainerService..ctor()中      D:\ P R O J E C T S \ Eureka Forbes \ SAPCTI \ Form1.cs:第25行中的SAPCTI.Form1..ctor()      D:\ P R O J E C T S \ Eureka Forbes \ SAPCTI \ Program.cs:第17行中的SAPCTI.Program.Main()        at System.AppDomain.nExecuteAssembly(组装程序集,String []参数)
        at System.AppDomain.ExecuteAssembly(String assemblyFile,Evidence assemblySecurity,String [] args)
        at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
        at System.Threading.ThreadHelper.ThreadStart_Context(对象状态)
        at System.Threading.ExecutionContext.Run(ExecutionContext executeContext,ContextCallback回调,对象状态)
        at System.Threading.ThreadHelper.ThreadStart()



ICIContainer.IciContainerService a1 = new SAPCTI.ICIContainer.IciContainerService();

This is the statement post which i am getting the error "Method IciContainerService.unsubscribe can not be reflected"

System.InvalidOperationException was unhandled
  Message="Method IciContainerService.unsubscribe can not be reflected."
  Source="System.Web.Services"
  StackTrace:
       at System.Web.Services.Protocols.SoapReflector.ReflectMethod(LogicalMethodInfo methodInfo, Boolean client, XmlReflectionImporter xmlImporter, SoapReflectionImporter soapImporter, String defaultNs)
       at System.Web.Services.Protocols.SoapClientType.GenerateXmlMappings(Type type, ArrayList soapMethodList, String serviceNamespace, Boolean serviceDefaultIsEncoded, ArrayList mappings)
       at System.Web.Services.Protocols.SoapClientType..ctor(Type type)
       at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor()
       at SAPCTI.ICIContainer.IciContainerService..ctor() in D:\P R O J E C T S\Eureka Forbes\SAPCTI\Web References\ICIContainer\Reference.cs:line 43
       at SAPCTI.Form1..ctor() in D:\P R O J E C T S\Eureka Forbes\SAPCTI\Form1.cs:line 25
       at SAPCTI.Program.Main() in D:\P R O J E C T S\Eureka Forbes\SAPCTI\Program.cs:line 17
       at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()

这是详细的错误...下面也提供了参考.cs

 

//--------------------------------------------- ---------------------------------
//<自动生成的>
//    该代码是由工具生成的.
//    运行时版本:2.0.50727.42
//
//    对该文件所做的更改可能会导致不正确的行为,并且如果
将丢失//    代码将重新生成.
//</自动生成的>
//------------------------------------------------ ------------------------------

//
//此源代码是由Microsoft.VSDesigner版本2.0.50727.42自动生成的.
//
#pragma警告禁用1591

命名空间SAPCTI.ICIContainer {
   使用System.Diagnostics;
   使用System.Web.Services;
   使用System.ComponentModel;
   使用System.Web.Services.Protocols;
   使用系统;
   使用System.Xml.Serialization;
   
   
    ///<备注/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services","2.0.50727.42"))
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code"))
    [System.Web.Services.WebServiceBindingAttribute(Name ="IciContainerSOAPHTTPBinding",Namespace ="urn:IciContainerInterface"))]
   公共局部类IciContainerService:System.Web.Services.Protocols.SoapHttpClientProtocol {
      
      私人@string userField;
      
      私有string1 languageField;
      
      私有System.Threading.SendOrPostCallback unsubscribeOperationCompleted;
      
      私有System.Threading.SendOrPostCallback subscriptionOperationCompleted;
      
      私人布尔useDefaultCredentialsSetExplicitly;
      
       ///<备注/>
      公共IciContainerService(){
           this.Url =全局:: SAPCTI.Properties.Settings.Default.SAPCTI_ICIContainer_IciContainerService;
           if((this.IsLocalFileSystemWebService(this.Url)== true)){
                             this.UseDefaultCredentials = true;
                             this.useDefaultCredentialsSetExplicitly = false;
           }
          其他{
                             this.useDefaultCredentialsSetExplicitly = true;
           }
       }
      
      公共@string用户{
          得到{
                            返回this.userField;
           }
          设置{
                             this.userField = value;
           }
       }
      
      公共string1语言{
          得到{
                            返回this.languageField;
           }
          设置{
                             this.languageField =值;
           }
       }
      
      公共新字符串Url {
          得到{
                            返回base.Url;
           }
          设置{
                            如果(((((this.IsLocalFileSystemWebService(base.Url)== true)
              nbsp; bsp    && (this.useDefaultCredentialsSetExplicitly == false))
              nbsp; bsp    && (this.IsLocalFileSystemWebService(value)== false))){
                    base.UseDefaultCredentials = false;
                             }
                             base.Url =值;
           }
       }
      
      公共新布尔UseDefaultCredentials {
          得到{
                            返回base.UseDefaultCredentials;
           }
          设置{
                             base.UseDefaultCredentials =值;
                             this.useDefaultCredentialsSetExplicitly = true;
           }
       }
      
       ///<备注/>
      公共事件unsubscribeCompletedEventHandler unsubscribeCompleted;
      
       ///<备注/>
      公共事件subscriptionCompletedEventHandler subscriptionCompleted;
      
       ///<备注/>
       [System.Web.Services.Protocols.SoapHeaderAttribute("user"))
       [System.Web.Services.Protocols.SoapHeaderAttribute("language"))
       [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://inqmy.com/soapdispatcher/rpc/bcbici/IciContainerBean",Use = System.Web.Services.Description.SoapBindingUse.Literal,ParameterStyle = System.Web. Services.Protocols.SoapParameterStyle.Bare)]
       [返回:System.Xml.Serialization.XmlElementAttribute("unsubscribeResponse",命名空间="urn:IciContainerInterface"))]
      公开的unsubscribeResponse取消订阅([System.Xml.Serialization.XmlElementAttribute("unsubscribe",Namespace ="urn:IciContainerInterface"))取消订阅unsubscribe1){
           object [] results = this.Invoke("unsubscribe",new object [] {
               b unsubscribe1});
           return((unsubscribeResponse)(results [0]));
       }
      
       ///<备注/>
      公共无效unsubscribeAsync(取消订阅unsubscribe1){
           this.unsubscribeAsync(unsubscribe1,null);
       }
      
       ///<备注/>
       public void unsubscribeAsync(取消订阅unsubscribe1,对象userState){
           if((this.unsubscribeOperationCompleted == null)){
                             this.unsubscribeOperationCompleted =新的System.Threading.SendOrPostCallback(this.OnunsubscribeOperationCompleted);
           }
           this.InvokeAsync(取消订阅",新对象[] {
               b unsubscribe1},this.unsubscribeOperationCompleted,userState);
       }
      
      私有无效OnunsubscribeOperationCompleted(object arg){
           if((this.unsubscribeCompleted!= null)){
                             System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs =(((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                             this.unsubscribeCompleted(this,new unsubscribeSubscribeCompletedEventArgs(invokeArgs.Results,invokeArgs.Error,invokeArgs.Cancelled,invokeArgs.UserState));
           }
       }
      
       ///<备注/>
       [System.Web.Services.Protocols.SoapHeaderAttribute("user"))
       [System.Web.Services.Protocols.SoapHeaderAttribute("language"))]
       [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://inqmy.com/soapdispatcher/rpc/bcbici/IciContainerBean",Use = System.Web.Services.Description.SoapBindingUse.Literal,ParameterStyle = System.Web. Services.Protocols.SoapParameterStyle.Bare)]
       [返回:System.Xml.Serialization.XmlElementAttribute("subscribeResponse",命名空间="urn:IciContainerInterface"))]
       public subscriptionResponse subscription([System.Xml.Serialization.XmlElementAttribute("subscribe",Namespace ="urn:IciContainerInterface")] subscription subscription1){
           object [] results = this.Invoke("subscribe",new object [] {
               b subscription1});
           return((subscribeResponse)(results [0]));
       }
      
       ///<备注/>
      公共无效subscriptionAsync(subscribe Subscribe1){
           this.subscribeAsync(subscribe1,null);
       }
      
       ///<备注/>
      公共无效subscriptionAsync(订阅subscribe1,对象userState){
           if((this.subscribeOperationCompleted == null)){
                             this.subscribeOperationCompleted =新的System.Threading.SendOrPostCallback(this.OnsubscribeOperationCompleted);
           }
           this.InvokeAsync("subscribe",new object [] {
               b subscription1},this.subscribeOperationCompleted,userState);
       }
      
      私有无效OnsubscribeOperationCompleted(object arg){
           if((this.subscribeCompleted!= null)){
                             System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs =(((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                             this.subscribeCompleted(this,新的subscriptionCompletedEventArgs(invokeArgs.Results,invokeArgs.Error,invokeArgs.Cancelled,invokeArgs.UserState));
           }
       }
      
       ///<备注/>
       public new void CancelAsync(object userState){
           base.CancelAsync(userState);
       }
      
      私人布尔IsLocalFileSystemWebService(string url){
          如果(((url == null)
               b || (url == string.Empty))){
                            返回false;
           }
           System.Uri wsUri =新的System.Uri(URL);
          如果(((wsUri.Port> = 1024)
               b && (string.Compare(wsUri.Host,"localHost",System.StringComparison.OrdinalIgnoreCase)== 0)))(
                            返回true;
           }
          返回false;
       }
    }
   
    ///<备注/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml","2.0.50727.42"))
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code"))
    [System.Xml.Serialization.XmlTypeAttribute(Namespace ="http://www.w3.org/2001/XMLSchema")]
    [System.Xml.Serialization.XmlRootAttribute(用户",名称空间="urn:IciContainerInterface",IsNullable = false)]
   公共局部类@string:System.Web.Services.Protocols.SoapHeader {
      
      私有字符串[] textField;
      
       ///<备注/>
       [System.Xml.Serialization.XmlTextAttribute()]
      公共字符串[]文本{
          得到{
                            返回this.textField;
           }
          设置{
                             this.textField = value;
           }
       }
    }
   
    ///<备注/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml","2.0.50727.42"))
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code"))
    [System.Xml.Serialization.XmlTypeAttribute(TypeName ="string",Namespace ="http://www.w3.org/2001/XMLSchema")]
    [System.Xml.Serialization.XmlRootAttribute("language",命名空间="urn:IciContainerInterface",IsNullable = false)]
   公共局部类string1:System.Web.Services.Protocols.SoapHeader {
      
      私有字符串[] textField;
      
       ///<备注/>
       [System.Xml.Serialization.XmlTextAttribute()]
      公共字符串[]文本{
          得到{
                            返回this.textField;
           }
          设置{
                             this.textField = value;
           }
       }
    }
   
    ///<备注/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml","2.0.50727.42"))
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code"))
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
   公共局部类退订{
      
      私有字符串appUrlField;
      
      私有字符串appIdField;
      
       ///<备注/>
       [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
      公共字符串appUrl {
          得到{
                            返回this.appUrlField;
           }
          设置{
                             this.appUrlField = value;
           }
       }
      
       ///<备注/>
       [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
      公共字符串appId {
          得到{
                            返回this.appIdField;
           }
          设置{
                             this.appIdField =值;
           }
       }
    }
   
    ///<备注/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml","2.0.50727.42"))
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code"))
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
   公共局部类unsubscribeResponse {
      
      私有unsubscribeResponseResponse responseField;
      
       ///<备注/>
       [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
      公共unsubscribeResponseResponse响应{
          得到{
                            返回this.responseField;
           }
          设置{
                             this.responseField = value;
           }
       }
    }
   
    ///<备注/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml","2.0.50727.42"))
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code"))
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
   公共局部类unsubscribeResponseResponse {
    }
   
    ///<备注/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml","2.0.50727.42"))
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code"))
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
   公共局部类订阅{
      
      私有字符串appUrlField;
      
      私有字符串appIdField;
      
      私有字符串channelTypeField;
      
      私有字符串containerIdField;
      
       ///<备注/>
       [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
      公共字符串appUrl {
          得到{
                            返回this.appUrlField;
           }
          设置{
                             this.appUrlField = value;
           }
       }
      
       ///<备注/>
       [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
      公共字符串appId {
          得到{
                            返回this.appIdField;
           }
          设置{
                             this.appIdField =值;
           }
       }
      
       ///<备注/>
       [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
      公共字符串channelType {
          得到{
                            返回this.channelTypeField;
           }
          设置{
                             this.channelTypeField =值;
           }
       }
      
       ///<备注/>
       [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
      公共字符串containerId {
          得到{
                            返回this.containerIdField;
           }
          设置{
                             this.containerIdField =值;
           }
       }
    }
   
    ///<备注/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml","2.0.50727.42"))
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code"))
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
   公共局部类SubscribeResponse {
      
      私人subscriptionResponseResponse responseField;
      
       ///<备注/>
       [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
       public subscriptionResponseResponse响应{
          得到{
                            返回this.responseField;
           }
          设置{
                             this.responseField = value;
           }
       }
    }
   
    ///<备注/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml","2.0.50727.42"))
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code"))
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
   公共局部类subscriptionResponseResponse {
    }
   
    ///<备注/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services","2.0.50727.42"))
   公共委托void unsubscribeCompletedEventHandler(object sender,unsubscribeCompletedEventArgs e);
   
    ///<备注/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services","2.0.50727.42"))
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code"))
   公共局部类unsubscribeCompletedEventArgs:System.ComponentModel.AsyncCompletedEventArgs {
      
      私有对象[]结果;
      
      内部unsubscribeCompletedEventArgs(object []结果,System.Exception异常,布尔已取消,对象userState):
                            基本(异常,已取消,userState){
           this.results =结果;
       }
      
       ///<备注/>
       public unsubscribeResponse结果{
          得到{
                             this.RaiseExceptionIfNecessary();
                             return((unsubscribeResponse)(this.results [0]));
           }
       }
    }
   
    ///<备注/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services","2.0.50727.42"))
   公共委托void subscriptionCompletedEventHandler(object sender,subscriptionCompletedEventArgs e);
   
    ///<备注/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services","2.0.50727.42"))
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code"))
   公共局部类subscriptionCompletedEventArgs:System.ComponentModel.AsyncCompletedEventArgs {
      
      私有对象[]结果;
      
      内部subscribeCompletedEventArgs(对象[]结果,System.Exception异常,布尔取消,对象userState):
                            基本(异常,已取消,userState){
           this.results =结果;
       }
      
       ///<备注/>
       public subscriptionResponse结果{
          得到{
                             this.RaiseExceptionIfNecessary();
                             return((subscribeResponse)(this.results [0]));
           }
       }
    }
}

#pragma警告还原1591

//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:2.0.50727.42
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

//
// This source code was auto-generated by Microsoft.VSDesigner, Version 2.0.50727.42.
//
#pragma warning disable 1591

namespace SAPCTI.ICIContainer {
    using System.Diagnostics;
    using System.Web.Services;
    using System.ComponentModel;
    using System.Web.Services.Protocols;
    using System;
    using System.Xml.Serialization;
   
   
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.42")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name="IciContainerSOAPHTTPBinding", Namespace="urn:IciContainerInterface")]
    public partial class IciContainerService : System.Web.Services.Protocols.SoapHttpClientProtocol {
       
        private @string userField;
       
        private string1 languageField;
       
        private System.Threading.SendOrPostCallback unsubscribeOperationCompleted;
       
        private System.Threading.SendOrPostCallback subscribeOperationCompleted;
       
        private bool useDefaultCredentialsSetExplicitly;
       
        /// <remarks/>
        public IciContainerService() {
            this.Url = global::SAPCTI.Properties.Settings.Default.SAPCTI_ICIContainer_IciContainerService;
            if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
                this.UseDefaultCredentials = true;
                this.useDefaultCredentialsSetExplicitly = false;
            }
            else {
                this.useDefaultCredentialsSetExplicitly = true;
            }
        }
       
        public @string user {
            get {
                return this.userField;
            }
            set {
                this.userField = value;
            }
        }
       
        public string1 language {
            get {
                return this.languageField;
            }
            set {
                this.languageField = value;
            }
        }
       
        public new string Url {
            get {
                return base.Url;
            }
            set {
                if ((((this.IsLocalFileSystemWebService(base.Url) == true)
                            && (this.useDefaultCredentialsSetExplicitly == false))
                            && (this.IsLocalFileSystemWebService(value) == false))) {
                    base.UseDefaultCredentials = false;
                }
                base.Url = value;
            }
        }
       
        public new bool UseDefaultCredentials {
            get {
                return base.UseDefaultCredentials;
            }
            set {
                base.UseDefaultCredentials = value;
                this.useDefaultCredentialsSetExplicitly = true;
            }
        }
       
        /// <remarks/>
        public event unsubscribeCompletedEventHandler unsubscribeCompleted;
       
        /// <remarks/>
        public event subscribeCompletedEventHandler subscribeCompleted;
       
        /// <remarks/>
        [System.Web.Services.Protocols.SoapHeaderAttribute("user")]
        [System.Web.Services.Protocols.SoapHeaderAttribute("language")]
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://inqmy.com/soapdispatcher/rpc/bcbici/IciContainerBean", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Bare)]
        [return: System.Xml.Serialization.XmlElementAttribute("unsubscribeResponse", Namespace="urn:IciContainerInterface")]
        public unsubscribeResponse unsubscribe([System.Xml.Serialization.XmlElementAttribute("unsubscribe", Namespace="urn:IciContainerInterface")] unsubscribe unsubscribe1) {
            object[] results = this.Invoke("unsubscribe", new object[] {
                        unsubscribe1});
            return ((unsubscribeResponse)(results[0]));
        }
       
        /// <remarks/>
        public void unsubscribeAsync(unsubscribe unsubscribe1) {
            this.unsubscribeAsync(unsubscribe1, null);
        }
       
        /// <remarks/>
        public void unsubscribeAsync(unsubscribe unsubscribe1, object userState) {
            if ((this.unsubscribeOperationCompleted == null)) {
                this.unsubscribeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnunsubscribeOperationCompleted);
            }
            this.InvokeAsync("unsubscribe", new object[] {
                        unsubscribe1}, this.unsubscribeOperationCompleted, userState);
        }
       
        private void OnunsubscribeOperationCompleted(object arg) {
            if ((this.unsubscribeCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.unsubscribeCompleted(this, new unsubscribeCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
       
        /// <remarks/>
        [System.Web.Services.Protocols.SoapHeaderAttribute("user")]
        [System.Web.Services.Protocols.SoapHeaderAttribute("language")]
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://inqmy.com/soapdispatcher/rpc/bcbici/IciContainerBean", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Bare)]
        [return: System.Xml.Serialization.XmlElementAttribute("subscribeResponse", Namespace="urn:IciContainerInterface")]
        public subscribeResponse subscribe([System.Xml.Serialization.XmlElementAttribute("subscribe", Namespace="urn:IciContainerInterface")] subscribe subscribe1) {
            object[] results = this.Invoke("subscribe", new object[] {
                        subscribe1});
            return ((subscribeResponse)(results[0]));
        }
       
        /// <remarks/>
        public void subscribeAsync(subscribe subscribe1) {
            this.subscribeAsync(subscribe1, null);
        }
       
        /// <remarks/>
        public void subscribeAsync(subscribe subscribe1, object userState) {
            if ((this.subscribeOperationCompleted == null)) {
                this.subscribeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnsubscribeOperationCompleted);
            }
            this.InvokeAsync("subscribe", new object[] {
                        subscribe1}, this.subscribeOperationCompleted, userState);
        }
       
        private void OnsubscribeOperationCompleted(object arg) {
            if ((this.subscribeCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.subscribeCompleted(this, new subscribeCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
       
        /// <remarks/>
        public new void CancelAsync(object userState) {
            base.CancelAsync(userState);
        }
       
        private bool IsLocalFileSystemWebService(string url) {
            if (((url == null)
                        || (url == string.Empty))) {
                return false;
            }
            System.Uri wsUri = new System.Uri(url);
            if (((wsUri.Port >= 1024)
                        && (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) {
                return true;
            }
            return false;
        }
    }
   
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "2.0.50727.42")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.w3.org/2001/XMLSchema")]
    [System.Xml.Serialization.XmlRootAttribute("user", Namespace="urn:IciContainerInterface", IsNullable=false)]
    public partial class @string : System.Web.Services.Protocols.SoapHeader {
       
        private string[] textField;
       
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        public string[] Text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
    }
   
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "2.0.50727.42")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(TypeName="string", Namespace="http://www.w3.org/2001/XMLSchema")]
    [System.Xml.Serialization.XmlRootAttribute("language", Namespace="urn:IciContainerInterface", IsNullable=false)]
    public partial class string1 : System.Web.Services.Protocols.SoapHeader {
       
        private string[] textField;
       
        /// <remarks/>
        [System.Xml.Serialization.XmlTextAttribute()]
        public string[] Text {
            get {
                return this.textField;
            }
            set {
                this.textField = value;
            }
        }
    }
   
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "2.0.50727.42")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
    public partial class unsubscribe {
       
        private string appUrlField;
       
        private string appIdField;
       
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string appUrl {
            get {
                return this.appUrlField;
            }
            set {
                this.appUrlField = value;
            }
        }
       
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string appId {
            get {
                return this.appIdField;
            }
            set {
                this.appIdField = value;
            }
        }
    }
   
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "2.0.50727.42")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
    public partial class unsubscribeResponse {
       
        private unsubscribeResponseResponse responseField;
       
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public unsubscribeResponseResponse response {
            get {
                return this.responseField;
            }
            set {
                this.responseField = value;
            }
        }
    }
   
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "2.0.50727.42")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
    public partial class unsubscribeResponseResponse {
    }
   
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "2.0.50727.42")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
    public partial class subscribe {
       
        private string appUrlField;
       
        private string appIdField;
       
        private string channelTypeField;
       
        private string containerIdField;
       
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string appUrl {
            get {
                return this.appUrlField;
            }
            set {
                this.appUrlField = value;
            }
        }
       
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string appId {
            get {
                return this.appIdField;
            }
            set {
                this.appIdField = value;
            }
        }
       
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string channelType {
            get {
                return this.channelTypeField;
            }
            set {
                this.channelTypeField = value;
            }
        }
       
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string containerId {
            get {
                return this.containerIdField;
            }
            set {
                this.containerIdField = value;
            }
        }
    }
   
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "2.0.50727.42")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
    public partial class subscribeResponse {
       
        private subscribeResponseResponse responseField;
       
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public subscribeResponseResponse response {
            get {
                return this.responseField;
            }
            set {
                this.responseField = value;
            }
        }
    }
   
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "2.0.50727.42")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
    public partial class subscribeResponseResponse {
    }
   
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.42")]
    public delegate void unsubscribeCompletedEventHandler(object sender, unsubscribeCompletedEventArgs e);
   
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.42")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class unsubscribeCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
       
        private object[] results;
       
        internal unsubscribeCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
                base(exception, cancelled, userState) {
            this.results = results;
        }
       
        /// <remarks/>
        public unsubscribeResponse Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((unsubscribeResponse)(this.results[0]));
            }
        }
    }
   
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.42")]
    public delegate void subscribeCompletedEventHandler(object sender, subscribeCompletedEventArgs e);
   
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.42")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class subscribeCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
       
        private object[] results;
       
        internal subscribeCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
                base(exception, cancelled, userState) {
            this.results = results;
        }
       
        /// <remarks/>
        public subscribeResponse Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((subscribeResponse)(this.results[0]));
            }
        }
    }
}

#pragma warning restore 1591



推荐答案

类型"SAPCTI.ICIContainer.string"和"SAPCTI.ICIContainer.string1"都使用名称空间"http://www.w3.org/2001/XMLSchema"中的XML类型名称"string".使用XML属性为该类型指定唯一的XML名称和/或名称空间.

Types 'SAPCTI.ICIContainer.string' and 'SAPCTI.ICIContainer.string1' both use the XML type name, 'string', from namespace 'http://www.w3.org/2001/XMLSchema'. Use XML attributes to specify a unique XML name and/or namespace for the type.

将类@string和string1重命名为其他名称,您将避免看到的错误.

Rename the classes @string and string1 to some other names and you will get past the error you are seeing.

另一个要注意的是,这个论坛实际上是针对本地WWSAPI而不是WCF的. WCF论坛可能会为您提供更深入的答案.

One other note, this forum is really targeted toward the native WWSAPI not WCF.  You will probably get a more in-depth answer from the WCF forum.

希望有帮助,

 

-标记


这篇关于方法"xyz"无法反映.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 20:48