当前位置:网站首页>Practice of retro SOAP Protocol

Practice of retro SOAP Protocol

2022-07-04 12:34:00 onlyloveyd

Preface

As Android Development , I usually chat with the back-end most Besides drinking, it's interface . Common words :Restful and WebService, The former talks a lot now , The latter used to talk a lot .

The default meanings are :

  • Restful:HTTP agreement and JSON Format
  • WebService: especially Soap agreement and XML Format

For based on HTTP Agreement in the form of JSON Of Restful Interface ,Android The client usually uses Retrofit + Gson/Moshi The solution .

And for the Soap agreement and XML Format Soap WebService , There are few opportunities to practice . in consideration of Retroift is A type-safe HTTP client for Android and Java. also Soap The protocol is based on XML And through HTTP Protocol to exchange information , So solve it well XML Encapsulation and analysis of , Use Retrofit Realization SOAP Service invocation should be simple .

Restful & WebService

Concept

WebService

WebService It's a platform independent , Low coupling , Self contained 、 Based on programmable WEB Applications , Open... Can be used XML( A subset of the standard generic markup language ࿰

原网站

版权声明
本文为[onlyloveyd]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202141259384081.html