【发布时间】:2020-06-08 18:46:00
【问题描述】:
我需要将 Bearer Token 以以下格式传递给下游系统(使用 web 服务消费者组件连接)。
Bearer [token value]
我尝试使用键传递它的内联标头:Bearer 和 Value= 令牌值,但它不起作用。 我试图传递下面的 XML:
%dw 2.0
output application/xml
---
headers : {
Authorization: {
"Bearer " ++ vars.licenseServerTocken
}
}
但出现以下错误:
"Error trying to acquire a new connection:Error fetching the resource [https://abc123.com/xyz/Contract.svc?wsdl]: Server returned HTTP response code: 500 for URL: https://abc123.com/xyz/Contract.svc?wsdl"
当我在正文中按以下方式传递时,它正在从 SOAP UI 工作
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tem.org/">
<soapenv:Header>
<Authorization>Bearer sada3123gjkada1231</Authorization>
</soapenv:Header>
<soapenv:Body>
请推荐
【问题讨论】: