WSO2 API管理器(1.6.0):发布API(端点) [英] WSO2 API Manager (1.6.0): Publisher API (endpoints)

查看:355
本文介绍了WSO2 API管理器(1.6.0):发布API(端点)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当使用发布的发布的API已经改变了终点。据: http://docs.wso2.org/display/AM160/出版商+的API#PublisherAPIs-AddUpdateAPI


  

从APIM 1.6.0本服务接受端点配置数据作为
  JSON值。在端点配置JSON你必须指定
  endpoint_type和production_endpoints和/或sandbox_endpoints


我们配置端点为

<$p$p><$c$c>endpoint_config={\"production_endpoints\":{\"url\":\"http://my.backend.server/HelloWorldService\",\"config\":null},\"endpoint_type\":\"http\"}

但什么是语法,如果我想定义一个WSDL端点?而我怎么了API(用户名,密码)?

在配置基本身份验证
解决方案

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

<$p$p><$c$c>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?

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)?

解决方案

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?

这篇关于WSO2 API管理器(1.6.0):发布API(端点)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆