2014-02-11 49 views
0

当为发布服务器使用已发布的API时,端点已更改。据:http://docs.wso2.org/display/AM160/Publisher+APIs#PublisherAPIs-AddUpdateAPIWSO2 API管理器(1.6.0):发布程序API(端点)

从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(用户名,密码)中配置基本身份验证?

回答

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"} 

基本上你需要提供WSDL,服务URL和端口类型为JSON。

什么时候配置基本身份验证是指您想要使用基本身份验证来访问后端安全,还是试图使用基本身份验证保护API?

+0

我的后端服务器端点使用用户名和密码进行了保护。我如何通过这个配置? – Marc

+0

如果您单击“端点”部分下的“显示更多选项”,它将显示另一个端点安全方案。默认情况下,它被设置为非安全。如果您选择Secured选项,它将显示两个附加文本框以提供后端服务器的用户名和密码。 –

+0

我在控制台中看到了它,但是endpoint_config中的语法是什么? – Marc