0
Msg_Get_AccessToken = "";
Msg_Get_AccessToken(GUID) = ...;
Msg_Get_AccessToken(WebServiceHost) = "http://...";
Msg_Get_AccessToken(WCF.VariablePropertyMapping)= @"<?xml version='1.0' encoding='utf-16'?>
<BtsVariablePropertyMapping xmlns:xsi='http://www...' xmlns:xsd='http://www...'>
<Variable Name='var_GUID' PropertyName='GUID' PropertyNamespace='https://...'/>
</BtsVariablePropertyMapping">;
Msg_Get_AccessToken(WCF.BindingType)="WCF-WebHTTP";
Msg_Get_AccessToken(WCF.SecurityMode)="Transport";
Msg_Get_AccessToken(WCF.HttpMethodAndUrl)=@"<BtsHttpUrlMapping> <Operation Method='POST' Url='{var_GUID}'  /></BtsHttpUrlMapping>";
Msg_Get_AccessToken(WCF.HttpHeaders) = "Content-Type:application/x-www-form-urlencoded"+"grant_type=client_credentials&client_id=123&client_secret=3456&scope=https://...";
Msg_Get_AccessToken(WCF.SuppressMessageBodyForHttpVerbs)="POST";
Msg_Get_AccessToken(WCF.SecurityMode)="None";
Msg_Get_AccessToken(WCF.TransportClientCredentialType)="None";
Msg_Get_AccessToken(WCF.MaxReceivedMessageSize)=2147483647;
Msg_Get_AccessToken(BTS.RetryCount) = 5;
Msg_Get_AccessToken(BTS.RetryInterval) = 5;
Msg_Get_AccessToken(BTS.IsDynamicSend) = true;
P_GET_ACCESSTOKEN(Microsoft.XLANGs.BaseTypes.Address)=Msg_Get_AccessToken(WebServiceHost);
P_GET_ACCESSTOKEN(Microsoft.XLANGs.BaseTypes.TransportType)="WCF-WebHttp";

这是行不通的!我不知道如何传递信息

"Content-Type:application/x-www-form-urlencoded"+"grant_type=client_credentials&client_id=1234&client_secret=5678&scope=https://..."; 

到动态发送端口

有谁知道如何为动态 wcf-http 发送端口完成此操作?

4

1 回答 1

0

我们获得具有 WCF 行为的访问令牌。这对你来说可能吗?请参阅:BizTalk 中的令牌行为

于 2022-02-17T13:02:14.307 回答