我正在尝试在ASP.NET MVC C#中连接Amadeus Enterprise API,但出现以下错误:
'提供的URI方案'https'无效;预期的“ http”。 (参数“通过”)”
这是Web配置,自定义
{{1}}
如何解决此问题?
答案 0 :(得分:0)
您如何确定所需的绑定配置?这是猜测吗,是由某些工具生成的还是由文档指定的?
有意义的是,由于同时存在type SomeKey = "A" | "B";
type ObjType = { [k in SomeKey]: k };
const Obj: ObjType = {
A: "A",
B: "B",
};
type A = typeof Obj.A;
type B = typeof Obj.B;
const TargetObj: ObjType = {
[Obj.A]: "A",
[Obj.B]: "B",
};
和httpTransport
绑定元素,因此httpsTransport
将是要使用的绑定元素,因为您的服务URL是一个https地址。