FPGA Prototyping of Web Service Using REST and SOAP Packages
Abstract
:1. Introduction
2. Design and Implementation
2.1. Overall Setup
2.2. REST and SOAP Servers
2.3. FPGA Implementation of Embedded RESTful Web Services
3. Results
3.1. Resource Usage
3.2. Message Length
3.3. Processing Time
4. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Li, S.; Xu, L.D.; Zhao, S. The internet of things: A survey. Inf. Syst. Front. 2015, 17, 243–259. [Google Scholar] [CrossRef]
- Ooi, C.P.; Tan, W.H.; Cheong, S.N.; Lee, Y.L.; Baskaran, V.M.; Low, Y.L. FPGA-based embedded architecture for IoT home automation application. Indones. J. Electr. Eng. Comput. Sci. 2019, 14, 646–652. [Google Scholar] [CrossRef]
- Gottschalk, K.; Graham, S.; Kreger, H.; Snell, J. Introduction to Web services architecture. IBM Syst. J. 2002, 41, 170–177. [Google Scholar] [CrossRef]
- Brzoza-Woch, R.; Nawrocki, P. FPGA-Based Web Services—Infinite Potential or a Road to Nowhere? IEEE Internet Comput. 2016, 20, 44–51. [Google Scholar] [CrossRef]
- Shelby, Z. Embedded web services. IEEE Wirel. Commun. 2010, 17, 52–57. [Google Scholar] [CrossRef]
- Fielding, R.T. Architectural Styles and the Design of Network-Based Software Architectures. Ph.D. Thesis, University of California, Irvine, CA, USA, 2000. [Google Scholar]
- Markonnen, J. Performance and Usage Comparison between REST and SOAP Web Services. Master’s Thesis, Aalto University, Espoo, Finland, 2019. [Google Scholar]
- Su, H.; Cheng, B.; Wu, T.; Li, X. Mashup service release based on SOAP and REST. In Proceedings of the 2011 International Conference on Computer Science and Network Technology, Harbin, China, 24–26 December 2011; IEEE: Manhattan, NY, USA, 2012; Volume 2, pp. 1091–1095. [Google Scholar]
- Potti, P.K.; Ahuja, S.; Umapathy, K.; Prodanoff, Z. Comparing performance of web service interaction styles: Soap vs. Rest. In Proceedings of the Conference on Information Systems Applied Research, New Orleans, LA, USA, 1–18 November 2012; Volume 2167, p. 1508. [Google Scholar]
- Belqasmi, F.; Singh, J.; Melhem, S.Y.B.; Glitho, R.H. SOAP-based vs. RESTful web services: A case study for multimedia conferencing. IEEE Internet Comput. 2012, 16, 54–63. [Google Scholar] [CrossRef]
- Kumari, S.; Rath, S.K. Performance comparison of soap and rest based web services for enterprise application integration. In Proceedings of the 2015 International Conference on Advances in Computing, Communications and Informatics (ICACCI), Kochi, India, 10–13 August 2015; IEEE: Manhattan, NY, USA, 2015; pp. 1656–1660. [Google Scholar]
- AlShahwan, F.; Moessner, K. Providing soap web services and restful web services from mobile hosts. In Proceedings of the 2010 Fifth International Conference on Internet and Web Applications and Services, Barcelona, Spain, 9–15 May 2010; IEEE: Manhattan, NY, USA, 2010; pp. 174–179. [Google Scholar]
- Mohamed, K.; Wijesekera, D. Performance analysis of web services on mobile devices. Procedia Comput. Sci. 2012, 10, 744–751. [Google Scholar] [CrossRef] [Green Version]
- Ali, M.; Zolkipli, M.F.; Zain, J.M.; Anwar, S. Mobile cloud computing with SOAP and REST web services. J. Phys. Conf. Ser. 2018, 1018, 012005. [Google Scholar] [CrossRef]
- Malik, S.; Kim, D.H. A comparison of RESTful vs. SOAP web services in actuator networks. In Proceedings of the 2017 Ninth International Conference on Ubiquitous and Future Networks (ICUFN), Milan, Italy, 4–7 July 2017; IEEE: Manhattan, NY, USA, 2017; pp. 753–755. [Google Scholar]
- Riihijarvi, J.; Mahonen, P.; Saaranen, M.J.; Roivainen, J.; Soininen, J.P. Providing network connectivity for small appliances: A functionally minimized embedded web server. IEEE Commun. Mag. 2001, 39, 74–79. [Google Scholar] [CrossRef]
- Xilinx. Spartan-3E FPGA Family Data Sheet; Xilinx: San Jose, CA, USA, 2018. [Google Scholar]
- Bytronic. Washing Machine Simulator. Bromsgrove, UK. Available online: http://www.bytronic.net/product/washing-machine-simulator (accessed on 3 September 2022).
- Chang, C.E.; Mohd-Yasin, F.; Mustapha, A.K. An implementation of embedded restful web services. In Proceedings of the 2009 Innovative Technologies in Intelligent Systems and Industrial Applications, Kuala Lumpur, Malaysia, 25–26 July 2009; IEEE: Manhattan, NY, USA, 2009; pp. 45–50. [Google Scholar]
- Chang, C.E.; Mohd-Yasin, F.; Mustapha, A.K. RBStreX: Hardware XML parser for embedded system. In Proceedings of the 2009 International Conference for Internet Technology and Secured Transactions (ICITST), London, UK, 9–12 November 2009; IEEE: Manhattan, NY, USA, 2010; pp. 1–6. [Google Scholar]
Packaging Mechanism | FF | 4-LUT | Slice |
---|---|---|---|
REST | 901 | 2987 | 1606 |
SOAP | 951 | 3531 | 1901 |
Reduction using REST (in % with reference to SOAP) | 5.3 | 15.4 | 15.5 |
Module | REST | SOAP | ||
---|---|---|---|---|
FF | MUX | FF | MUX | |
1. Application | 330 | 25 | 343 | 25 |
2. SAX | (n/a) | (n/a) | 21 | - |
3. XML Writer | 79 | - | 79 | - |
4. HTTP | 277 | 36 | 267 | 20 |
Operation | Request (Req.)/ Response (Resp.) | Message Length (Character) | Difference in Character | Reduction Using REST (in % with Reference to SOAP) | |
---|---|---|---|---|---|
REST | SOAP | ||||
Retrieve device name | Req. | 46 | 189 | 143 | 75.7 |
Resp. | 97 | 189 | 92 | 48.7 | |
Retrieve available functions | Req. | 56 | 189 | 133 | 70.4 |
Resp. | 202 | 294 | 92 | 31.3 | |
Perform a function (spin) | Req. | 68 | 183 | 115 | 62.8 |
Resp. | 86 | 178 | 92 | 51.7 | |
Erroneous request (missing 1 char.) | Req. | 67 | 182 | 115 | 63.2 |
Resp. | 90 | 182 | 92 | 50.5 |
Operation | Processing Time (μs) | Difference (μs) | Reduction (% with Reference to SOAP) | |
---|---|---|---|---|
REST | SOAP | |||
Retrieve device name | 26 | 32 | 4 | 12.5 |
Retrieve available functions | 34 | 39 | 5 | 12.8 |
Perform a function (spin) | 33 | 38 | 5 | 13.2 |
Erroneous request (missing 1 char.) | 4 | 8 | 4 | 50.0 |
REST | SOAP | |
---|---|---|
Processing complexity | Lower, due to low service abstraction and format verbosity. | Higher. |
Memory requirement | Lower, due to short message length. | Higher. |
Performance | Faster, due to low format and message overhead. | Slower. |
Service abstraction | Lower. | Higher, thus able to provide advanced services. |
Standards | None, thus more freedom but hard for long-term management. | Yes, thus more systematic for long-term management. |
Resources and supports | Less. | A lot, thus easier to develop. |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Chang, C.E.; Mustapha, A.K.; Mohd-Yasin, F. FPGA Prototyping of Web Service Using REST and SOAP Packages. Chips 2022, 1, 210-217. https://doi.org/10.3390/chips1030014
Chang CE, Mustapha AK, Mohd-Yasin F. FPGA Prototyping of Web Service Using REST and SOAP Packages. Chips. 2022; 1(3):210-217. https://doi.org/10.3390/chips1030014
Chicago/Turabian StyleChang, Chee Er, Azhar Kassim Mustapha, and Faisal Mohd-Yasin. 2022. "FPGA Prototyping of Web Service Using REST and SOAP Packages" Chips 1, no. 3: 210-217. https://doi.org/10.3390/chips1030014
APA StyleChang, C. E., Mustapha, A. K., & Mohd-Yasin, F. (2022). FPGA Prototyping of Web Service Using REST and SOAP Packages. Chips, 1(3), 210-217. https://doi.org/10.3390/chips1030014