C#net6.0 环境
使用WCF Web Service 调用其他系统的接口
//当statue为结案时 已捕获异常
Dictionary<string
string] reportda System.ServiceModel.FaultException:triedtoaccess
if (BaseInfo.PPTA
method
org.apache.cxf.interceptor.Abstractlogginglnterceptor.getMe
SsageLogger(Lorg/apache/cxf/message/Message)Ljava/util/
reportdatas
此异常最初是在此调用堆栈中引发的
map.Add(FIELDO0 [外部代码1
string fileJson
//string]pptadd 显示调用堆栈 查看详细信息 复制详细信息 启动LiveShare会话
vcarapiClient vcai
var binding =new
异常设置
引发此异常类型时中断
binding.MaxBuffer
binding.MaxReceiy
从以下位置引发时除外
binding. SendTimeo
口Srm.VCAR.Application.dll
打开异常设置编辑条件
Var aaa =awaitv
报错信息:
System.ServiceModel.FaultException: tried to access method org.apache.cxf.interceptor.AbstractLoggingInterceptor.getMessageLogger(Lorg/apache/cxf/message/Message;)Ljava/util/logging/Logger; from class org.apache.cxf.interceptor.LoggingSoapIn at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc) at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result) at System.ServiceModel.Channels.ServiceChannelProxy.TaskCreator.<>c__DisplayClass1_0.<CreateGenericTask>b__0(IAsyncResult asyncResult) --- End of stack trace from previous location --- at Srm.VCAR.Application.Commands.CreateD1TeamCommandHandler.HandleAsync(CreateD1TeamCommand request, IDbConnection dbConnection, CancellationToken cancellationToken) in D:\SRM\srm-api\src\Srm.VCAR.Application\D1Team\Commands\CreateD1TeamCommand.cs:line 695
代码如下:
string fileJson = JsonConvert.SerializeObject(map);
vcarapiClient vcarapi = new vcarapiClient();
var binding = new BasicHttpBinding();
binding.MaxBufferSize = 10000000;
binding.MaxReceivedMessageSize = 10000000;
binding.SendTimeout = new TimeSpan(00, 10, 00);
var aaa = await vcarapi.Receive8DDataAsync(BaseInfo.Bindid, fileJson);
本地也可以ping通别人的地址,接口文档也可以打开;执行到最后一行就报错了,麻烦各位帮忙看一下