Software Design
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreSoftware Design

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 13th, 2008, 10:29 PM
Scottman Scottman is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 16 Scottman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 50 m 40 sec
Reputation Power: 0
Exposing business logic through web services and web site

How are sites like Flickr, PayPal, Amazon, Digg, etc implemented? They expose their business logic through both an interactive website and a public API.

I have been writing SOAP web services using Apache Axis2/Java but am now unclear how to integrate this with a PHP web application. Do I interact with the core through the web services or can I access it directly?

I imagine being able to access it directly would by much more efficient.

Could someone explain how this sort of architecture works?

Thanks,
Scott

Reply With Quote
  #2  
Old July 17th, 2008, 01:28 AM
Matt1776's Avatar
Matt1776 Matt1776 is offline
Recovering Intellectual
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jun 2006
Location: Orange County, CA
Posts: 1,021 Matt1776 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Matt1776 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Matt1776 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Matt1776 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Matt1776 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Matt1776 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Matt1776 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Matt1776 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Matt1776 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Matt1776 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Matt1776 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 7 m 56 sec
Reputation Power: 457
Send a message via ICQ to Matt1776 Send a message via AIM to Matt1776 Send a message via MSN to Matt1776 Send a message via Yahoo to Matt1776 Send a message via Skype to Matt1776
As far as I understand, these things are accessed through very carefully designed layers. You would be right to assume they interact through a webservice.

I work for a company that designs and implements customer service back office software and we use java's J2EE framework. So along with that we utilize a webservice layer, which then interfaces an EJB layer and Domain/DAO layer (respectively the business logic layer and database layer). This framework, along with other popular frameworks such as Ruby On Rails, Django, Struts, etc. utilize a longstanding methodology known as MVC .

I would suggest in your case to spend some time implementing the MVC methodology (IF you have the need and the time .. and of course the interest). You could look into a php based MVC framework called Zend Framework which may or may not have some web service hooks built in (I believe it does). Once you've separated your layers out (and you can quite comfortably do this without a framework at all, dont believe all the hype), then publish your web service calls as an API to your website.

Accessing your business logic layers directly may be more efficient in the short term, but as your website/application grows in complexity this may become a liability more than an asset.
__________________
Bugs that go away by themselves come back by themselves
Never take life seriously, Nobody gets out alive anyway.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreSoftware Design > Exposing business logic through web services and web site


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT