× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



As I had mentioned it depends on the app architecture.

I believe the requestor is using PHP on the i already and wanted to communicate to the DB or an RPG app, so why write a web service to talk to a web app which are all on the same side of the wire. One word: OVERKILL :-)

Now if the PHP service is being exposed to the outside world in addition to needed DB access, of course you would want to use a web page or web service.

Regards,
Richard Schoen
RJS Software Systems Inc.
Where Information Meets Innovation
Document Management, Workflow, Report Delivery, Forms and Business Intelligence
Email: richard@xxxxxxxxxxxxxxx
Web Site: http://www.rjssoftware.com
Tel: (952) 736-5800
Fax: (952) 736-5801
Toll Free: (888) RJSSOFT

----------------------------------------------------------------------

message: 1
date: Thu, 29 Nov 2012 17:58:09 -0800 (PST)
from: Nathan Andelin <nandelin@xxxxxxxxx>
subject: Re: What style of RPG program can communicate with PHP?

why introduce a web service into the mix ...



A web service may offer support for more "input types" and "output types". Many applications would benefit from having a wider variety than what is possible via stored procedure interfaces. I'm currently working on an interface to support the following for both input types and output types, using JavaScript Object Notation (JSON):

1. Simple variables.
2. Basic arrays.
3. Basic objects.
4. Object arrays.
5. Basic two dimensional arrays.

For example:

http://www.radile.com/rdweb/temp/jsonex.html


You should use your browser view the page source. It strikes me how quickly and easily the browser maps JSON streams to JavaScript objects and how well those objects are supported by the language. It also strikes me how efficient JSON streams are size-wise in comparison to XML.

-Nathan




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.