RESTful Web Services Implementations in Mobile Devices

后端 未结 2 1540
清歌不尽
清歌不尽 2020-12-22 05:28

I have several questions around the implementations of RESTful web services in mobile devices:

  1. Mobile client as a RESTful web service consumer: How can I bu

相关标签:
2条回答
  • 2020-12-22 06:08

    I would reckon you are coming to REST WS from a SOAP background. If that is true then the first thing you have to do is forget how you did everything in SOAP and simplify everything.

    First thing to keep in mind is that you don't consume any web services contract like you do in SOAP. So you don't have a WSDL. That means you do not consume any WSDL or contract to build client code. You simply have to create HTTP requests to the web server by hand. Every language has it's own way to create HTTP requests, so you have to consult your platform of choice on how to craft HTTP requests.

    Not as detailed as you hopped I guess but should trigger a discussion.

    0 讨论(0)
  • 2020-12-22 06:33

    Providing a web-service from a mobile device is not a good idea because it will drain battery very fast. You can check this if it helps

    0 讨论(0)
提交回复
热议问题