| Special Command Tags |
|
|
||||||||||||||||
| Formats | Call Remote Subprogram: CALL "[ HTTP:server ]subprog [;entry] " [,ERR=stmtref ][ ,arglist ] | |||||||||||||||
| Where:
|
||||||||||||||||
| Description | When
the [HTTP: ...] or [HTTPS: ...] tag
is used as a prefix to a program name in a PxPlus CALL
directive, the system will physically process
the call on the web site specified in server. PxPlus will internally pass the arglist and program name to the server specified using "SOAP" based XML data packets which, in turn, will load and run the program. When the subprogram completes, the server will return any updated variables found within the arglist to the caller or, should an error occur, the error condition will be returned to the calling program. To support this interface the server must be running an APACHE HTTP server with the PxPlus HTTP Call extensions configured. Please refer to the Apache Interface Configuration section for additional details. Unlike the RPC interface, this capability supports multiple instances of the program on the server. Each CALL will invoke a new instance that will be terminated after the subprogram exits. |
|||||||||||||||
| *Note* | Like the ProvideX RPC interface, the HTTP/HTTPS interface requires a Professional or E-Commerce Activation on the server. As this interface is not capable of serving web pages, it does not require an E-Commerce license. | |||||||||||||||
| Test Site | A
test site for the CALL [HTTP] interface has been
established at the website "call.pvxplus.com". This site contains a dummy data file and a sample callable subprogram "getcust.pxc". The contents of this program are as follows:
This program can be called remotely by issuing the following on a Professional, Demo, or Ecommerce version of PxPlus:
This will read the record whose key is "000555" and return its contents in R$ -- effectively running the above program starting at line 10. Note that the system will append the .pxc suffix to the file name automatically. There is also an EP_RANGE entry point that will return a range of records with $00$ as a record separator. You can use this entry point to get a list of all the records in the file.
To retrieve the internal IOLIST for the data file call the entry point EP_IOLIST as in:
|
|||||||||||||||
| Test Configration | The
APACHE HTTP server configuration file used for this web
site is as follows:
|
|||||||||||||||
| *Note* | Our web site uses an Apache Virtual Host for this connection as the IP address is shared many of our host services. | |||||||||||||||