本文介绍了BizTalk- Salesforce GET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我正在尝试使用Rest API从salesforce执行GET。 POST对于force.com工作正常,但是对于GET,Hi, I am trying to perform a GET from salesforce using Rest API . POST is working fine for force.com but for GET ,我得到例外: 适配器无法传输发送端口"SendPort2"的消息。使用URL" https://xxx.salesforce。 COM /服务/异步/ 33.0 " ;. 将在为此发送端口指定的重试间隔后重新传输。详细信息:"System.ServiceModel。 ProtocolException:SOAP消息传递需要HTTP Content-Type标头,但未找到任何标头。The adapter failed to transmit message going to send port "SendPort2" with URL "https://xxx.salesforce.com/services/async/33.0". It will be retransmitted after the retry interval specified for this Send Port. Details:"System.ServiceModel.ProtocolException: An HTTP Content-Type header is required for SOAP messaging and none was found. 服务器堆栈跟踪:Server stack trace: at System.Runtime.AsyncResult。 End [TAsyncResult](IAsyncResult result)at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result) at System.ServiceModel.Channels。 ServiceChannel 。 SendAsyncResult.End( SendAsyncResult result)at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result) 在System.ServiceModel.Channels。 ServiceChannel.EndCall(String action,Object [] outs,IAsyncResult result)at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result) 。 ServiceChannel.EndRequest( IAsyncResult result)at System.ServiceModel.Channels.ServiceChannel.EndRequest(IAsyncResult result) 在[0]处重新抛出异常:Exception rethrown at [0]: 在System.Runtime.Remoting。 Proxies.RealProxy。 HandleReturnMessage(IMessage reqMsg,IMessage retMsg)at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) 。 Proxies.RealProxy。 PrivateInvoke(MessageData& msgData,Int32 type)at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) 。 IRequestChannel.EndRequest( IAsyncResult result)at System.ServiceModel.Channels.IRequestChannel.EndRequest(IAsyncResult result) at Microsoft.BizTalk.Adapter.Wcf。 Runtime.WcfClient`2。 RequestCallback(IAsyncResult result)"。at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.RequestCallback(IAsyncResult result)". 在Fiddler中,我看到GET和回复,但不知何故,adpater无法接受它。 In Fiddler I see the GET and the response back but somehow the adpater is not able to accept it.  任何想法如何让这个工作?Any ideas how to get this working ??问候& lt; br /& gt;当您看到答案和有用的帖子,& lt; br /& gt;请点击投票为有用,建议为答案和/或标记为答案Regards <br/> When you see answers and helpful posts,<br/> please click Vote As Helpful, Propose As Answer, and/or Mark As Answer推荐答案 您好,您是否可以验证通过fiddler捕获的响应并尝试验证您的业务流程期望的响应。您可能需要验证一些不匹配问题,因为服务正在响应您的数据。Can you validate your response captured through fiddler and try to validate against the response your Orchestration is expecting . There may be some mismatch issue which you need to validate as service is responing you with data .谢谢 Abhishek 这篇关于BizTalk- Salesforce GET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-18 11:52