WSO2 API Manager (1.6.0): Publisher API (endpoints)

戏子无情 提交于 2019-12-11 19:16:26

问题


When using the published API for the publisher has been changed for the endpoints. According to: http://docs.wso2.org/display/AM160/Publisher+APIs#PublisherAPIs-AddUpdateAPI

From APIM 1.6.0 this service accepts endpoint configuration data as a JSON value. In endpoint config JSON you have to specify "endpoint_type" and "production_endpoints" and/or "sandbox_endpoints".

We configure the endpoint as

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

But what is the syntax if I want to define a WSDL endpoint? And how do I configure basic authentication in the API (username,password)?


回答1:


You can provide the endpoint config in the following manner:

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

Basically you need to provide the WSDL, Service URL and the port type as a JSON.

When do you mean configuring Basic Authentication are you trying to access a Backend Secured with Basic Authentication or are you trying to secure the API using Basic Authentication?



来源:https://stackoverflow.com/questions/21702250/wso2-api-manager-1-6-0-publisher-api-endpoints

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!