AS/400 To WebMD Bridge
Source library INPRO
Source file QRPGLESRC
Source member WEBMD
Source type RPGLE
Object library INPRO
Object type program
Object parameters
1. Production or Test Flag. Parameter size is one character in length.
Valid values are “P” for production and “T” for testing.
2. Send Type Flag. Parameter size is one character in length. Valid
values are “S” for send and “L” for loop test. The loop test goes as far
as the PC and it replies back with “Loop Test Complete.”.
3. Seconds To Wait. Parameter size is five packed with zero decimal
positions. This parameter is used to control the amount time in seconds
that this request will wait for a response back from the PC and/or
WebMD. A good starting point is 45 seconds.
4. Length Of Data Sending. Parameter size is five packed with zero
decimal positions. This parameter is the total length of the data that is
being sent.
5. Data To Send. Parameter size is 2,500 characters in length. Data needs
to be left justified.
6. Length Of Data Returned. Parameter size is five packed with zero
decimal positions. This parameter is returned to calling program. If
length is zero then a timeout has occurred.
7. Data Returned. Parameter size is 2,500 characters in length. Data will
be left justified. This parameter may have an error code that PC the
received from WebMD's API. If so the error code flag parameter will
have “ERROR” in it. Keep in mind if WebMD finds any errors in the
data it was sent it will return the error number/message in this
Page: 1 of 6
AS/400 To WebMD Bridge
parameter and the error code flag parameter will be blank.
8. Error Code Flag. Parameter size is 10 characters in length. This
parameter currently only returns “TIMEOUT”, “ERROR”, and blanks.
“TIMEOUT” is returned when seconds to wait parameter value is
reached and no data has been returned. “ERROR” is returned when the
PC receives an error code from the WebMD API it will executing.
/
!#"%$'&(*)+,.-
/
Source library INPRO
/
Source file QCLSRC
/
Source type CLP
/
Object type program
/
Source member RUNWEBMDP
/
Object library SKTEXE
/
Object parameters none
This program handles production request
/
/
!#"%$'&(*)+,10
Source library INPRO
/
Source file QCLSRC
/
Source type CLP
/
Object type program
/
Source member RUNWEBMDT
/
Object library SKTEXE
/
Object parameters none
This program handles testing request
Page: 2 of 6
=
2#354768*9:;.<
AS/400 To WebMD Bridge
=
Source library INPRO
=
Source file QCLSRC
=
Source type CLP
=
Object type program
=
Source member STRWEBMDP
=
Object library SKTEXE
=
Object parameters none
This program starts the socket server process for production. This is the program to
change if the port number and job queue it starts from needs changing.
=
=
2#354768*9:;1>
Source library INPRO
=
Source file QCLSRC
=
Source type CLP
=
Object type program
=
Source member STRWEBMDT
=
Object library SKTEXE
=
Object parameters none
This program starts the socket server process for testing. This is the program to
change if the port number and job queue it starts from needs changing.
?.@ ABCDEFHGJI
=
KMLONQPSR.<TVU
=
Object Folder
This folder contains sub folder and executables
Page: 3 of 6
l
WMXOYQZS[.\]V^_Y `badc*egfihkj
AS/400 To WebMD Bridge
l
Object Folder
This folder is where copies objects, sources, or other file should be copied to before
any changes are made to them. Date and time need to be added to the copied file's
name. Exampe: WebMDMain_2003_10_01_15_30_33.bas
l
WMXOYQZS[.\]V^_YnmMoqpgadcrj
l
Object Folder
This folder contains all source for executables that INPRO has created
l
WMXOYQZS[.\]V^_Ys\atogu
l
Object Folder
This folder contains production configuration files and log files
l
WMXOYQZS[.\]V^_Y5vwjx%y
l
Object Folder
This folder contains testing configuration files and log files
Zzv{m|`}\~Z#q
l
Object DLL
l
l
This is WebMD's API DLL
l
yjx%yfy
xrSjj
Object Executable
This is the WebMD test program. If the password on the WebMD server needs to
be changed this is the program to use to do it with. Remember if changing password
the WebMD configuration file needs to be changed to.
Page: 4 of 6
#r
%S
AS/400 To WebMD Bridge
Object Executable
Source in C:\INPRO\Source
Source name WebMDMain.bas
This program takes only one parameter and that is the name of the directory for
configuration files to use. Example: WebMDMain.exe TEST When creating a
shortcut or a startup the start in box should have “C:\INPRO” in it and target should
have “C:\INPRO\WebMDMain.exe xxxx” in it. Where xxxx is either TEST or
PROD. When program starts up it opens up a window as shown in Illustration 1
below. Note that in the window's title the word “TEST” shows up because it was
started with “TEST” as the parameter passed to the program. If “PROD” was it
would be there in place of “TEST”. This window gives some interactive
information about what is going on with the process. If more detail information is
required turn trace on in the abw.cfg file and also in ITS.conf file.
Illustration 1 AS/400 To WebMD Bridge
Page: 5 of 6
AS/400 To WebMD Bridge
_Sw
Configuration File For WebMDMain.exe
This file is documented in itself.
wSr %¡
Configuration File For WebMD API
This file is documented in itself.
Page: 6 of 6
© Copyright 2026 Paperzz