Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 82629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T21:38:49+00:00 2026-05-10T21:38:49+00:00

I am implementing web services for a PHP application and am trying to understand

  • 0

I am implementing web services for a PHP application and am trying to understand what both standard web services and RESTful web services have to offer. My intent is to write wrapper code to abstract away the web service details so that developers can just ‘instantiate remote objects’ and use them. Here are my thoughts, perhaps some of you could add your experience and expand this:

RESTful Web Servcies

are basically just ‘XML feeds on demand’, so e.g. you could write wrapper code for a client application so it could query the server application in this way:

$users = Users::getUsers('state = 'CO''); 
  • this would in turn get an XML feed form a remote URL
  • $users could be made into a collection of full User objects, or
  • left as XML, or
  • turned into an array, etc.
  • the query script (‘state = ‘CO”) would be translated into SQL on the server side
  • RESTful Web Services are in general read-only from the view of the client, although you could write code which could use POST or GET to make changes on the server, e.g. passing an encrypted token for security, e.g.:

    $users = Users::addUser($encryptedTrustToken, ‘jim’,$encryptedPassword, ‘James’, ‘Taylor’);

and this would create a new user on the server application.

Standard Web Services

Standard Web Servcies in the end basically do the same thing. The one advantage they have is that client can discover their details via WSDL. But other than that, if I want to write wrapper code which allows a developer to instantiate, edit and save objects remotely, I still need to implement the wrapper code. SOAP doesn’t do any of that for me, it can do this:

$soap = new nusoap_client('http://localhost/test/webservice_user.php?wsdl', true); $user = $soap->getProxy();  $lastName = $user->lastName(); 

but if I want to edit and save:

$user->setLastName('Jones'); $user->save(); 

then I need to e.g. handle all of the state on the server side, SOAP doesn’t seem to hold that object on the server side for each client.

Perhaps there are limitations in the PHP SOAP implementation I am using (nusoap). Perhaps Java and .NET implementations do much more.

Will enjoy hearing your feedback to clear up some of these clouds.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T21:38:49+00:00Added an answer on May 10, 2026 at 9:38 pm

    They are different models… REST is data-centric, where-as SOAP is operation-centric. i.e. with SOAP you tend to have discrete operations ‘SubmitOrder’, etc; but with REST you are typically a lot more fluid about how you are querying the data.

    SOAP also tends to be associated with a lot more complexity (which is sometimes necessary) – REST is back to POX etc, and YAGNI.


    In terms of .NET, tools like ‘wsdl.exe’ will give you a full client-side proxy library to represent a SOAP service (or ‘svcutil.exe’ for a WCF service):

    var someResult = proxy.SubmitOrder(...); 

    For REST with .NET, I guess ADO.NET Data Services is the most obvious player. Here, the tooling (datasvcutil.exe) will give you a full client-side data-context with LINQ support. LINQ is .NET’s relatively new way of forming complex queries. So something like (with strong/static type checking and intellisense):

    var qry = from user in ctx.Users           where user.State == 'CO'           select user; 

    (this will be translated to/from the appropriate REST syntax for ADO.NET Data Services)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 191k
  • Answers 191k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer What are you expecting it to do? You probably want… May 12, 2026 at 6:07 pm
  • Editorial Team
    Editorial Team added an answer You had two problems here: You're overriding validations The order… May 12, 2026 at 6:07 pm
  • Editorial Team
    Editorial Team added an answer I finally decided to rewrite the breadcrumb as html helper… May 12, 2026 at 6:07 pm

Related Questions

I'm building a framework and want developers who build with it to have the
2 short questions. I would appreciate an answer or a pointer to an answered
What is the best approach to implementing authorisation/authentication for a Windows Forms app talking
I'm trying to upload documents to SharePoint using web services attaching custom metadata to

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.