binumathew Posted March 8, 2009 Share Posted March 8, 2009 As you know i am new to this can u say Is it Important to Create a Web Service for PHP Based Application Quote Link to comment Share on other sites More sharing options...
corbin Posted March 8, 2009 Share Posted March 8, 2009 What do you mean? Quote Link to comment Share on other sites More sharing options...
binumathew Posted March 8, 2009 Author Share Posted March 8, 2009 i mean,while i develop an app in ASP.NET if it an enterprise app.then i need to use a WEBSERVICE For better performance...is it needed in PHP?? Quote Link to comment Share on other sites More sharing options...
corbin Posted March 8, 2009 Share Posted March 8, 2009 Hrmmm I don't exact know what a "webservice" is in regards to ASP.NET. I would imagine you mean something like an RSS feed, but that has nothing to do with better performance. Quote Link to comment Share on other sites More sharing options...
binumathew Posted March 8, 2009 Author Share Posted March 8, 2009 It is the same webservice that of java Quote Link to comment Share on other sites More sharing options...
corbin Posted March 8, 2009 Share Posted March 8, 2009 I'm not familiar with a web service in Java either. Can you explain to me what a web service is [in this context]? I've always understood a web service to essentially just be a portal to information (an API of sorts). Quote Link to comment Share on other sites More sharing options...
binumathew Posted March 8, 2009 Author Share Posted March 8, 2009 see this http://en.wikipedia.org/wiki/Web_service Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted March 8, 2009 Share Posted March 8, 2009 You only need to create an API if you actually need it. It won't improve your performance though. Quote Link to comment Share on other sites More sharing options...
trq Posted March 8, 2009 Share Posted March 8, 2009 Ok, so we know what a webservice is. However, I don't see how it relates to better preformance. If you would like your application to provide a web accessible api, then a webservice is likely what you need to create. Otherwise you don't need it. Quote Link to comment Share on other sites More sharing options...
binumathew Posted March 8, 2009 Author Share Posted March 8, 2009 then what is the benefit of webservice???Orkut using it..... Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted March 8, 2009 Share Posted March 8, 2009 The benefit of a web service is that you can give external access to some of your data without giving direct access to your DBMS. Quote Link to comment Share on other sites More sharing options...
binumathew Posted March 8, 2009 Author Share Posted March 8, 2009 Means hacker priventation?? if i access that directly will it cause any problem?? Quote Link to comment Share on other sites More sharing options...
trq Posted March 8, 2009 Share Posted March 8, 2009 Maybe you should go and read the mediawiki page you linked too? Quote Link to comment Share on other sites More sharing options...
binumathew Posted March 8, 2009 Author Share Posted March 8, 2009 K i will Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted March 8, 2009 Share Posted March 8, 2009 Means hacker priventation?? if i access that directly will it cause any problem?? No, an API, Application Programming Interface, is for developers to use. It has nothing to do with hackers, but one would obviously not give raw access to the database. That would be incredibly insecure and downright stupid. Quote Link to comment Share on other sites More sharing options...
binumathew Posted March 8, 2009 Author Share Posted March 8, 2009 Thks sir, So u said that the Webservice have no means in the web development? Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted March 8, 2009 Share Posted March 8, 2009 No, I did not. It's entirely dependent on what purpose your website serves. Quote Link to comment Share on other sites More sharing options...
binumathew Posted March 8, 2009 Author Share Posted March 8, 2009 Think i like to develop a social network site is a WEB Service is needed on that time? Quote Link to comment Share on other sites More sharing options...
trq Posted March 8, 2009 Share Posted March 8, 2009 Think i like to develop a social network site is a WEB Service is needed on that time? Not particularly, though I guess parts of it could be usefull. Its up to you. Quote Link to comment Share on other sites More sharing options...
binumathew Posted March 8, 2009 Author Share Posted March 8, 2009 So You are saying its not an important thing? Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted March 8, 2009 Share Posted March 8, 2009 It depends on YOUR requirements! Quote Link to comment Share on other sites More sharing options...
corbin Posted March 8, 2009 Share Posted March 8, 2009 If you don't know if you need a web service or not, chances are you do not need one. Quote Link to comment Share on other sites More sharing options...
dbo Posted March 9, 2009 Share Posted March 9, 2009 This is the best thread ever. Quote Link to comment Share on other sites More sharing options...
dsn Posted March 21, 2009 Share Posted March 21, 2009 Heres the deal if you have an application that you want third parties to integrate with or expose subsets of your applications functions outside of the website itself you develop an API for them to use. When you are talking about HTTP Requests based API's your talkings about Web Services. Example You have a site that sells widgets I have a site that sells cogs. I want to sell your widgets on my site. So you give me a Web Service I can query when I load my store to get inventory from you. I can make a HTTP Request to http://webservice.yoursite.com with various parameters typically in an XML request. Your API would process the request and return me a XML response I could parse and display on my site as the page loads. Another Example I use a CDN for my website. When I publish new content I can log into a web page, click around and issue a purge request OR I can write a script to call their webservices and automate the process as part of my code push scripts. I dont know any better way to explain the concept of a web service. If your application does not require it you do not need it EVER. Has nothing to do with ASP, .NET, Ruby, or PHP. As stated by others its all part of the design / application requirements. There is no added security or less security. If your Web Service has no authentication and the backend processing doesn't escape control characters you can be exposing yourself to XSS explots and other potential security risks (If you dont know what this means I can't help you sorry). As far as performace sure its faster / easier to parse only the data you need vs. me screen scaping your site removing all the data I dont need, formating it, and displaying it. Again though to have Web Services or not is part of your application requirements / design requirements. If you dont need to expose any part of the site outside the site itself you dont need them. You really should stop using the MS IDE's. If your creating a Web Service on your own site to consume it yourself and have no intention of exposing it to anyone else your kind of doing 2x the work. Your developing a Web Services API, a Client, when you could just query the data and do the work in one shot. Not to mention your making a HTTP Request which has a DNS lookup, a SYN, an ACK, now your service is going to do its work and query the DB whatever so add all that over head to it. Now why would you add the overhead of the HTTP requests back and forth to get the data when you have DB access in your application? So the way you describe the use of webservices in the past I would have to say your loosing performance and slowing your application down. Unless its part of a AJAX widget then I can see why you would use it to middle man a request and poll for status updates. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.