我们想用SOAP代理RESTful Web服务.
REST服务使用GET方法并通过查询参数接受输入.它生成application/csv类型的资源.
WSO2 ESB/Synapse是否支持这种情况,是否有可用的示例?
示例请求
SOAP代理请求:
<request>
<fromDate>2012-01-01</fromDate>
<toDate>2012-12-31</toDate>
</request>
Run Code Online (Sandbox Code Playgroud)
REST端点请求:
http://localhost/person?fromDate=2012-01-01&toDate=2012-12-31
Run Code Online (Sandbox Code Playgroud)
示例响应
REST端点响应
"Name","Age","Sex"
"Geoff","22","Male"
Run Code Online (Sandbox Code Playgroud)
SOAP代理响应
<person>
<name>Geoff</name>
<age>22</age>
<sex>Male</sex>
<person>
Run Code Online (Sandbox Code Playgroud)
非常感谢.
这可能很愚蠢,但是我无法弄清楚。
我在用:
当我在开发过程中运行“ grunt服务”时,表格可以完美运行。但是当我运行'grunt'并使用dist文件夹时,列不再可排序。似乎“可排序”类不适用于生产版本中的标头单元,而正在开发中。
非常感激任何的帮助。
控制器:
angular.module('couponWebApp').controller('MainCtrl', ['NgTableParams', 'couponService',
function(NgTableParams, couponService) {
var PAGE_SIZE = 10;
var lastPage = 2;
var lastPageDiscovered = false;
var self = this;
self.tableParams = new NgTableParams({}, {
counts: [], // we don't want to display other page count options
getData: function(params) {
var currentdata = params.data;
return couponService.getAllBatches(PAGE_SIZE, params.page()).then(function(payload) {
if (payload.length < 1) { // no data for this page
lastPageDiscovered = true;
lastPage = params.page() - …Run Code Online (Sandbox Code Playgroud)