REST服务层的体系结构

时间:2012-01-17 20:17:25

标签: web-services rest architecture soap

我想构建一个服务层,它消耗大量的SOAP和XML / HTTP Web服务,并通过REST使它们全部可用。如何开发这个新层的架构?

1 个答案:

答案 0 :(得分:2)

10 MAKE THE NOUNS OF YOUR SYSTEM INTO RESTFUL RESOURCES IDENTIFIED BY URIS
20 DEFINE MEDIA TYPES AND LINKS BETWEEN RESOURCES
30 IMPLEMENT RESTFUL DESIGN USING STUBBED-OUT METHODS
40 IF WRITING A CLIENT OF YOUR REST API SUCKS THEN GOTO 10
50 CHOOSE A SOAP TOOLKIT
60 IMPLEMENT SOAP DELEGATION CODE WITHIN YOUR REST API
70 IF SOAP TOOLKIT CHOICE DRIVES YOU INSANE THEN GOTO 50
80 DEPLOY IT
90 OK I CAN NO LONGER RESIST IT, HERE IT COMES
100 PRINT I AM KOOL
110 GOTO 100