Biztalk发送端口调用.asmx服务

Biztalk发送端口调用.asmx服务,biztalk,Biztalk,错误详细信息:System.ServiceModel.ProtocolException:远程 服务器返回意外响应:(400)错误请求。--> System.Net.WebException:远程服务器返回错误:(400) 请求错误。在 System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) 在 System.ServiceModel.Channel.HttpChannelFactory`1.HttpRequestCh

错误详细信息:System.ServiceModel.ProtocolException:远程 服务器返回意外响应:(400)错误请求。--> System.Net.WebException:远程服务器返回错误:(400) 请求错误。在 System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
在 System.ServiceModel.Channel.HttpChannelFactory`1.HttpRequestChannel.HttpChannelAsyncRequest.CompleteTresponse(IAsyncResult 结果)-内部异常堆栈跟踪结束---

服务器堆栈跟踪:在 System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult结果)
在 System.ServiceModel.Channel.ServiceChannel.SendAsyncResult.End(SendAsyncResult 结果)在 System.ServiceModel.Channel.ServiceChannel.EndCall(字符串操作, 对象[]输出,IAsyncResult结果)位于 System.ServiceModel.Channel.ServiceChannel.EndRequest(IAsyncResult 结果)

在[0]处重试异常:在 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg)在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData,Int32类型)at System.ServiceModel.Channel.IRequestChannel.EndRequest(IAsyncResult 结果)在 Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.RequestCallback(IAsyncResult 结果)消息ID:{656781BB-FFA0-466B-A001-83ADCD4EEB78}


已使用BasicHTTPbindings…没有登录凭据。在使用其他WCF测试工具进行测试时工作

您应该将此web服务器设置为向调用者返回错误文本。默认情况下(出于安全原因),它不会返回它。您还可以将调试器附加到web服务并定位请求问题。

.asmx
用于
ASP.Net
web服务,而
.svc
用于
WCF
web服务。两者是不同的。不能使用WCF客户端调用.asmx web方法并不奇怪。您确定这应该有效吗?您可以从WCF客户端调用.asmx服务。它应该使用BasicHTTP绑定。我今天这样做,没有任何问题。这里我缺少的是远程错误。我怀疑这是一个糟糕的SOAP请求。如果调试远程asmx服务并将断点放在web方法的第一行,调用是否会使其进入断点?如果没有,则调用的格式不正确,IIS正在捕获它并返回错误的请求,因为调用的签名与Web方法的签名不匹配。方法中的错误应返回50x。请使用HTTP Fiddler,查看使用WCF测试工具调用web服务时发生的情况,该工具在哪里工作,并在从Biztalk调用时进行比较。它应该给你一个线索。