Java ArgumentException当我仅使用UNITY3d在内置android应用程序中显示SoapService时

Java ArgumentException当我仅使用UNITY3d在内置android应用程序中显示SoapService时,java,c#,unity3d,soap,wsdl,Java,C#,Unity3d,Soap,Wsdl,我做了一个统一的游戏,调用服务获取游戏数据。 当从unity player启动游戏时,它工作正常,但当我构建apk并在android设备上运行时,我在logCat中得到错误: 错误:ArgumentException:已添加项。字典中的键:':用户:::'正在添加的键:':用户::' 错误Unity:位于System.Collections.Hashtable.Insert(System.Object键、System.Object值、System.Boolean添加)[0x001d4]中:0 错

我做了一个统一的游戏,调用服务获取游戏数据。 当从unity player启动游戏时,它工作正常,但当我构建apk并在android设备上运行时,我在logCat中得到错误:

错误:ArgumentException:已添加项。字典中的键:':用户:::'正在添加的键:':用户::'

错误Unity:位于System.Collections.Hashtable.Insert(System.Object键、System.Object值、System.Boolean添加)[0x001d4]中:0

错误:位于System.Collections.Hashtable.Add(System.Object键、System.Object值)[0x00000]处,位于:0

错误:在0中的System.Collections.DictionaryBase.System.Collections.IDictionary.Add(System.Object键、System.Object值)[0x00016]处

错误:在:0中的System.Xml.Serialization.TempAssembly+TempMethodDictionary.Add(System.String键,System.Xml.Serialization.TempAssembly+TempMethod值)[0x00006]处

错误:位于System.Xml.Serialization.TempAssembly.InitAssemblyMethods(System.Xml.Serialization.XmlMapping[]xmlMappings)[0x00063]处,位于:0

错误:位于System.Xml.Serialization.TempAssembly..ctor(System.Xml.Serialization.XmlMapping[]xmlMappings,Sy

为了调用服务,我创建了一个WebClient文件夹,其中包含System.Web.Services.dll和通过命令生成的wsdl-c#文件

以下是ServiceSoap.cs文件内容:

使用系统;
使用系统组件模型;
使用系统诊断;
使用System.Web.Services;
使用System.Web.Services.Protocols;
使用System.Xml.Serialization;
[System.CodeDom.Compiler.GeneratedCodeAttribute(“wsdl”、“0.0.0.0”)]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute(“代码”)]
[System.Web.Services.WebServiceBindingAttribute(Name=“ServizioNumbersSoap”,命名空间=”http://tempuri.org/")]
公共部分类服务编号:System.Web.Services.Protocols.SoapHttpClientProtocol
{
private System.Threading.SendOrPostCallback getSolutionsbyGridOperationCompleted;
private System.Threading.SendOrPostCallback getGridOperationCompleted;
private System.Threading.SendOrPostCallback getUserOperationCompleted;
private System.Threading.SendOrPostCallback setUsersOperationCompleted;
private System.Threading.SendOrPostCallback UPDUserCore1操作已完成;
/// 
公共服务编号()
{
此Url=”http://numbers.jemaka.it/NumberService.asmx";
}
/// 
公共事件getSolutionsbyGridCompletedEventHandler getSolutionsbyGridCompleted;
/// 
公共事件getGridCompletedEventHandler getGridCompleted;
/// 
公共事件getUserCompletedEventHandler getUserCompleted;
/// 
公共事件setUsersCompletedEventHandler setUsersCompleted;
/// 
公共活动UpduserCore1CompletedEventHandler UpduserCore1Completed;
/// 
[System.Web.Services.Protocols.SoapDocumentMethodAttribute(“http://tempuri.org/getSolutionsbyGrid,RequestNamespace=http://tempuri.org/,ResponseNamespace=http://tempuri.org/,Use=System.Web.Services.Description.SoapBindingUse.Literal,ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
公共解决方案[]getSolutionsbyGrid(int idGrid)
{
object[]results=this.Invoke(“getSolutionsbyGrid”,新对象[]{
idGrid});
返回((解决方案[])(结果[0]);
}
/// 
公共void getSolutionsbyGridAsync(int-idGrid)
{
this.getSolutionsbyGridAsync(idGrid,null);
}
/// 
public void getSolutionsbyGridAsync(int-idGrid,object-userState)
{
if((this.getSolutionsbyGridOperationCompleted==null))
{
this.getSolutionsbyGridOperationCompleted=新系统.Threading.SendOrPostCallback(this.OngetSolutionsbyGridOperationCompleted);
}
InvokeAsync(“getSolutionsbyGrid”,新对象[]{
idGrid},this.getSolutionsbyGridOperationCompleted,userState);
}
私有void OngetSolutionsbyGridOperationCompleted(对象参数)
{
如果((this.getSolutionsbyGridCompleted!=null))
{
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs=((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.getSolutionsbyGridCompleted(这是新的getSolutionsbyGridCompletedEventArgs(invokeArgs.Results,invokeArgs.Error,invokeArgs.Cancelled,invokeArgs.UserState));
}
}
/// 
[System.Web.Services.Protocols.SoapDocumentMethodAttribute(“http://tempuri.org/getGrid,RequestNamespace=http://tempuri.org/,ResponseNamespace=http://tempuri.org/,Use=System.Web.Services.Description.SoapBindingUse.Literal,ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
公共网格getGrid()
{
object[]results=this.Invoke(“getGrid”,新对象[0]);
返回((网格)(结果[0]);
}
/// 
public void getGridAsync()
{
this.getGridAsync(null);
}
/// 
public void getGridAsync(对象用户状态)
{
if((this.getGridOperationCompleted==null))
{
this.getGridOperationCompleted=新系统.Threading.SendOrPostCallback(this.OngetGridOperationCompleted);
}
this.InvokeAsync(“getGrid”,新对象[0],this.getGridOperationCompleted,userState);
}
私有void OngetGridOperationCompleted(对象参数)
{
如果((this.getGridCompleted!=null))
{
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs=((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.getGridCompleted(this,新的getGridCompletedEventArgs(invokeArgs.Results,invokeArgs.Error,invokeArgs.Cancelled,invokeArgs.UserState));
}
}
/// 
[System.Web.Services.Protocols.SoapDocumentMethodAttribute(“http://tempuri.org/getUser,请求命名空间=