简体   繁体   English

在WSO2 API Manager中使用我的Rest服务

[英]Using my Rest Service with WSO2 API Manager

I have my REST Service name getRates. 我有我的REST服务名称getRates。 Which accepts few inputs and gives out the loan rates. 它接受少量投入并给出贷款利率。 I wanted to use the API that I have with WSO2 Api Manager. 我想使用我与WSO2 Api Manager的API。 I am not able to do it. 我无法做到。 I am not sure where and how to define the sample request/response code to check if my service is being hit or not. 我不知道在何处以及如何定义示例请求/响应代码以检查我的服务是否被命中。 I have a URL to my Service but I want it to be used via WSO2 APi manager. 我有一个我的服务的URL,但我想通过WSO2 APi管理器使用它。 Help me out with this 帮助我解决这个问题

Question is too generic to give an exact answer. 问题太通用了,无法给出确切的答案。 Please follow this guide to create a new API from scratch and add your backend service URL as 'Production Endpoint'. 请按照指南从头开始创建新API,并将后端服务URL添加为“生产端点”。 If you already have set this up and want to get an idea if the message flow is working correctly, enable wire logs as follows, 如果您已经设置了这个并希望了解消息流是否正常工作,请按如下所示启用线路日志,

  • open log4j.properties file from a text editor. 从文本编辑器打开log4j.properties文件。 log4j.properties file is located in /repository/conf directory. log4j.properties文件位于/ repository / conf目录中。
  • Un-comment the following entry. 取消评论以下条目。

log4j.logger.org.apache.synapse.transport.http.wire=DEBUG log4j.logger.org.apache.synapse.transport.http.wire = DEBUG

Get an idea about the wire logs from here . 这里了解有关电线的日志。 Explain the steps you tried already and mention if you get any errors. 解释您已经尝试过的步骤,如果出现任何错误,请提及。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM