calling a progress procedure from php

tony82

New Member
Hi, does some one know how i can call a progress procedure from php or maybe create a dll file in progress and call it from php.
thank you in advance.
 

RealHeavyDude

Well-Known Member
You don't say anything 'bout your environment (Progress/OpenEdge version, OS, architecture ..., what the program does and what the output of that program is).

You need a Progress runtime environment in order to be able to run a Progress program. This could be the client runtime or an AppServer/WebSpeed Broker. I don't think it's possible to create a DLL to run a Progress program - at least not with a reasonable effort.

The way to go is depending on what you have and what you want to achieve.

Regards, RealHeavyDude.
 

tony82

New Member
Well i am using OpenEdge10.1C and Windows xp.
This program that i want to call should search in my Database in table PERSONS upon a given pin for example and output his first name, family, etc....
 

rstanciu

Member
http://communities.progress.com/pco...9552/StepByStep-HowToDeployA4GLWebWervice.zip

http://communities.progress.com/pcom/servlet/JiveServlet/download/79504-89547/client-ws.zip


http://communities.progress.com/pcom/servlet/JiveServlet/download/79504-89548/server-ws.zip


You can simply expose a 4GL Procedure using Web-Services and consume this service in PHP.


Code:
<?php
 $client = new SoapClient("http://myHost:8080/wsa/wsa1/wsdl?targetURI=urn:prgs:DocLiteral");
 print ($client->ping());
?>



You can find somelinks to "quick deploy" - Step-by-step procedure to expose a 4GL WebService and a lot of examples (client side: .Net, Java, perl, PHP, ruby .. etc)


Take a tour.


Good-luck
happy.gif
 

Cringer

ProgressTalk.com Moderator
Staff member
Tom, anyone would think you're a broken record!! :)

The man speaks truth though.
 

jkuhns

New Member
This program that i want to call should search in my Database in table PERSONS upon a given pin for example and output his first name, family, etc....

Wouldn't this be an excellent situation for SQL92?

Alternatively, write code to create a batch file calling your .P using session parameters for your inputs. Have it write out the results to a text file (or HTML content) and then use type in the batch file to throw the results back to PHP via stdin, or write PHP code to parse the file directly.
 
Top