【问题标题】:WSO2 API Manager (1.6.0): Publisher API (endpoints)WSO2 API Manager (1.6.0):发布者 API(端点)
【发布时间】:2014-02-11 12:44:58
【问题描述】:

使用已发布 API 时,发布者已针对端点进行了更改。根据:http://docs.wso2.org/display/AM160/Publisher+APIs#PublisherAPIs-AddUpdateAPI

从 APIM 1.6.0 开始,此服务接受端点配置数据作为 JSON 值。在端点配置 JSON 中,您必须指定 “endpoint_type”和“production_endpoints”和/或“sandbox_endpoints”。

我们将端点配置为

endpoint_config={"production_endpoints":{"url":"http://my.backend.server/HelloWorldService","config":null},"endpoint_type":"http"}

但是,如果我想定义一个 WSDL 端点,语法是什么?以及如何在 API 中配置基本身份验证(用户名、密码)?

【问题讨论】:

    标签: json api wso2 endpoint


    【解决方案1】:

    您可以通过以下方式提供端点配置:

    endpoint_config={"production_endpoints":{"url":"http://localhost:9763/services/HelloService?wsdl","config":null},"wsdlendpointService":"http://localhost:9763/services/HelloService","wsdlendpointPort":"http://localhost:9763/services/HelloService.HelloServiceHttpSoap11Endpoint","endpoint_type":"wsdl"}
    

    基本上您需要以 JSON 格式提供 WSDL、服务 URL 和端口类型。

    您的意思是什么时候配置基本身份验证您是尝试访问使用基本身份验证保护的后端还是尝试使用基本身份验证保护 API?

    【讨论】:

    • 我在后端服务器上的端点由用户名和密码保护。我如何在这个配置中传递这个?
    • 如果您单击端点部分下的显示更多选项,它将显示另一个字段端点安全方案。默认情况下,这设置为非安全。如果您选择 Secured 选项,它将显示两个额外的文本框以提供后端服务器的用户名和密码。
    • 我在控制台看到了,但是endpoint_config里面的语法是什么?
    • 可以通过这些参数endpointType=secured&epUsername=username&epPassword=userpass
    猜你喜欢
    • 2014-02-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多