|
154 | 154 | success: function(json) { |
155 | 155 | var item = json.createserviceofferingresponse.serviceoffering; |
156 | 156 | args.response.success({data: item}); |
| 157 | + }, |
| 158 | + error: function(data) { |
| 159 | + args.response.error(parseXMLHttpResponse(data)); |
157 | 160 | } |
158 | 161 | }); |
159 | 162 | }, |
|
177 | 180 | actionFitler: serviceOfferingActionfilter, |
178 | 181 | data:items |
179 | 182 | }); |
| 183 | + }, |
| 184 | + error: function(data) { |
| 185 | + args.response.error(parseXMLHttpResponse(data)); |
180 | 186 | } |
181 | 187 | }); |
182 | 188 | }, |
|
196 | 202 | success: function(json) { |
197 | 203 | var item = json.updateserviceofferingresponse.serviceoffering; |
198 | 204 | args.response.success({data: item}); |
| 205 | + }, |
| 206 | + error: function(data) { |
| 207 | + args.response.error(parseXMLHttpResponse(data)); |
199 | 208 | } |
200 | 209 | }); |
201 | 210 | } |
|
218 | 227 | async: true, |
219 | 228 | success: function(json) { |
220 | 229 | args.response.success(); |
| 230 | + }, |
| 231 | + error: function(data) { |
| 232 | + args.response.error(parseXMLHttpResponse(data)); |
221 | 233 | } |
222 | 234 | }); |
223 | 235 | }, |
|
438 | 450 | success: function(json) { |
439 | 451 | var item = json.createserviceofferingresponse.serviceoffering; |
440 | 452 | args.response.success({data: item}); |
| 453 | + }, |
| 454 | + error: function(data) { |
| 455 | + args.response.error(parseXMLHttpResponse(data)); |
441 | 456 | } |
442 | 457 | }); |
443 | 458 | }, |
|
458 | 473 | success: function(json) { |
459 | 474 | var items = json.listserviceofferingsresponse.serviceoffering; |
460 | 475 | args.response.success({data:items}); |
| 476 | + }, |
| 477 | + error: function(data) { |
| 478 | + args.response.error(parseXMLHttpResponse(data)); |
461 | 479 | } |
462 | 480 | }); |
463 | 481 | }, |
|
477 | 495 | success: function(json) { |
478 | 496 | var item = json.updateserviceofferingresponse.serviceoffering; |
479 | 497 | args.response.success({data: item}); |
| 498 | + }, |
| 499 | + error: function(data) { |
| 500 | + args.response.error(parseXMLHttpResponse(data)); |
480 | 501 | } |
481 | 502 | }); |
482 | 503 | } |
|
499 | 520 | async: true, |
500 | 521 | success: function(json) { |
501 | 522 | args.response.success(); |
| 523 | + }, |
| 524 | + error: function(data) { |
| 525 | + args.response.error(parseXMLHttpResponse(data)); |
502 | 526 | } |
503 | 527 | }); |
504 | 528 | }, |
|
594 | 618 | success: function(json) { |
595 | 619 | var items = json.listdiskofferingsresponse.diskoffering; |
596 | 620 | args.response.success({data:items}); |
| 621 | + }, |
| 622 | + error: function(data) { |
| 623 | + args.response.error(parseXMLHttpResponse(data)); |
597 | 624 | } |
598 | 625 | }); |
599 | 626 | }, |
|
687 | 714 | success: function(json) { |
688 | 715 | var item = json.creatediskofferingresponse.diskoffering; |
689 | 716 | args.response.success({data: item}); |
| 717 | + }, |
| 718 | + error: function(data) { |
| 719 | + args.response.error(parseXMLHttpResponse(data)); |
690 | 720 | } |
691 | 721 | }); |
692 | 722 | }, |
|
714 | 744 | success: function(json) { |
715 | 745 | var item = json.updatediskofferingresponse.diskoffering; |
716 | 746 | args.response.success({data: item}); |
| 747 | + }, |
| 748 | + error: function(data) { |
| 749 | + args.response.error(parseXMLHttpResponse(data)); |
717 | 750 | } |
718 | 751 | }); |
719 | 752 | } |
|
736 | 769 | async: true, |
737 | 770 | success: function(json) { |
738 | 771 | args.response.success(); |
| 772 | + }, |
| 773 | + error: function(data) { |
| 774 | + args.response.error(parseXMLHttpResponse(data)); |
739 | 775 | } |
740 | 776 | }); |
741 | 777 | }, |
|
818 | 854 | actionFilter: networkOfferingActionfilter, |
819 | 855 | data:items |
820 | 856 | }); |
| 857 | + }, |
| 858 | + error: function(data) { |
| 859 | + args.response.error(parseXMLHttpResponse(data)); |
821 | 860 | } |
822 | 861 | }); |
823 | 862 | }, |
|
876 | 915 | data: data.createnetworkofferingresponse.networkoffering, |
877 | 916 | actionFilter: networkOfferingActionfilter |
878 | 917 | }); |
| 918 | + }, |
| 919 | + |
| 920 | + error: function(data) { |
| 921 | + args.response.error(parseXMLHttpResponse(data)); |
879 | 922 | } |
880 | 923 | }); |
881 | 924 | }, |
|
950 | 993 | }) |
951 | 994 | ) |
952 | 995 | }); |
| 996 | + }, |
| 997 | + error: function(data) { |
| 998 | + args.response.error(parseXMLHttpResponse(data)); |
953 | 999 | } |
954 | 1000 | }); |
955 | 1001 | } |
|
999 | 1045 | args.response.success({ |
1000 | 1046 | fields: fields |
1001 | 1047 | }); |
| 1048 | + }, |
| 1049 | + error: function(data) { |
| 1050 | + args.response.error(parseXMLHttpResponse(data)); |
1002 | 1051 | } |
1003 | 1052 | }); |
1004 | 1053 | } |
|
1041 | 1090 | success: function(json) { |
1042 | 1091 | var item = json.updatenetworkofferingresponse.networkoffering; |
1043 | 1092 | args.response.success(); |
| 1093 | + }, |
| 1094 | + error: function(data) { |
| 1095 | + args.response.error(parseXMLHttpResponse(data)); |
1044 | 1096 | } |
1045 | 1097 | }); |
1046 | 1098 | }, |
|
1071 | 1123 | success: function(json) { |
1072 | 1124 | var item = json.updatenetworkofferingresponse.networkoffering; |
1073 | 1125 | args.response.success(); |
| 1126 | + }, |
| 1127 | + error: function(data) { |
| 1128 | + args.response.error(parseXMLHttpResponse(data)); |
1074 | 1129 | } |
1075 | 1130 | }); |
1076 | 1131 | }, |
|
1091 | 1146 | }, |
1092 | 1147 | success: function(json) { |
1093 | 1148 | args.response.success(); |
| 1149 | + }, |
| 1150 | + error: function(data) { |
| 1151 | + args.response.error(parseXMLHttpResponse(data)); |
1094 | 1152 | } |
1095 | 1153 | }); |
1096 | 1154 | }, |
|
1168 | 1226 | actionFilter: networkOfferingActionfilter |
1169 | 1227 | }); |
1170 | 1228 | }, |
1171 | | - |
1172 | | - notification: { |
1173 | | - poll: function(args) { |
1174 | | - args.complete({ |
1175 | | - data: { state: 'Disabled' }, |
1176 | | - actionFilter: networkOfferingActionfilter |
1177 | | - }); |
1178 | | - } |
| 1229 | + error: function(data) { |
| 1230 | + args.response.error(parseXMLHttpResponse(data)); |
1179 | 1231 | } |
1180 | 1232 | }); |
1181 | 1233 | }, |
|
1250 | 1302 | }) |
1251 | 1303 | ) |
1252 | 1304 | }); |
| 1305 | + }, |
| 1306 | + error: function(data) { |
| 1307 | + args.response.error(parseXMLHttpResponse(data)); |
1253 | 1308 | } |
1254 | 1309 | }); |
1255 | 1310 | } |
|
1299 | 1354 | args.response.success({ |
1300 | 1355 | fields: fields |
1301 | 1356 | }); |
| 1357 | + }, |
| 1358 | + error: function(data) { |
| 1359 | + args.response.error(parseXMLHttpResponse(data)); |
1302 | 1360 | } |
1303 | 1361 | }); |
1304 | 1362 | } |
|
1333 | 1391 | success: function(json) { |
1334 | 1392 | var item = json.updatenetworkofferingresponse.networkoffering; |
1335 | 1393 | args.response.success(); |
| 1394 | + }, |
| 1395 | + error: function(data) { |
| 1396 | + args.response.error(parseXMLHttpResponse(data)); |
1336 | 1397 | } |
1337 | 1398 | }); |
1338 | 1399 | }, |
|
1363 | 1424 | success: function(json) { |
1364 | 1425 | var item = json.updatenetworkofferingresponse.networkoffering; |
1365 | 1426 | args.response.success(); |
| 1427 | + }, |
| 1428 | + error: function(data) { |
| 1429 | + args.response.error(parseXMLHttpResponse(data)); |
1366 | 1430 | } |
1367 | 1431 | }); |
1368 | 1432 | }, |
|
1383 | 1447 | }, |
1384 | 1448 | success: function(json) { |
1385 | 1449 | args.response.success(); |
| 1450 | + }, |
| 1451 | + error: function(data) { |
| 1452 | + args.response.error(parseXMLHttpResponse(data)); |
1386 | 1453 | } |
1387 | 1454 | }); |
1388 | 1455 | }, |
|
0 commit comments