Doubts in webservice development for APP (android) and WEB (php)

0

Hello, we are developing an android APP and this will make a query in a webservice (which is not yet done) to validate data requested by APP. The same project runs on the web and is developed in php, jquery etc.

So I have 2 applications one for WEB (php) accessed by PC, Tablet, Mobile and other only for Android (.apk), the two versions do the same thing basically that is to query data in a webservice, this will return data for applications with information from the requested query.

As the two applications (web and apk) will make queries in this webservice that we will develop, what is the best option to develop this webservice so that it is fast and meets both applications? Develop in PHP, JAVA, NODEJS? What is the difference between each webservice, some advantage that one has over the other? If you need more information please comment.

I already have some tips that I have been researching, I want some help and an opinion from someone who has already done something similar.

I hope I have made the question and explanation clear. Thanks in advance.

    
asked by anonymous 23.04.2015 / 16:11

1 answer

1

I think the best way to help is by now defining what types of webservices you can find today "the most common."

I define two situations although one is actually a protocol:

  • Webservice SOAP - Simple Object Access Protocol (SOAP) is a standard that uses XML as the basis of its architecture. It can be used in SMTP, HTTP, FTP etc. Requires middleware support, well-defined mechanism to define services like WSDL + XSD, WS-Policy will return structured data in XML

  • RESTFul Webservice - Representational State Transfer (REST) of web services. They are second generation Web services. RESTful Web Services communicate over HTTP and unlike a SOAP-based service does not require the XML structure or WSDL-API service definitions. Simple HTTP no middleware required. Default, REST can return XML, Plain Text, JSON, HTML etc.

  • I have already used the two and I still use it but I have over time dropped SOAP and replaced with equivalent REST services. And why?

    As a professional I follow the market and the trend is clearly REST certainly sees a lot of reference to the REST API. I personally understand that REST is definitely the current way to create a Web service.

    Your API will be cleaner and easier to understand / discover. When synchronizing data with a website and / or application, it is probably easier to rest the user because you can simply say synchronization ("/ articles / 1 /") or whatever. Map operations is easy ... CRUD operations, etc.

    That said, there is still a direct answer to your question:

      

    Develop in PHP, JAVA, NODEJS?

    From my experience I would go through PHP. It is a server scripting language, it supports the HTTP protocol very well, the community is extensive and full of examples but as the main reason for your experience.

    Having said in the question that already has a WEB project done in PHP and JQUERY is indicator that already have knowledge in this language so your learning curve will certainly be lower than others and this is sincerely in my understanding the main reason. / p>     

    23.04.2015 / 22:39