OpenAccess for OpenEdge signature of connect procedure

Posted by Akioma on 12-Mar-2015 11:05

Hi all,

when connecting from OpenAccess to the OE AppServer a connect procedure is called.
Can anybody tell me the parameters this procedure is expected to provide?

I tried it with the same signature as a standard AppServer connect procedure
(INPUT CHAR user, INPUT CHAR PW, INPUT CHAR pcOther) but I get an Error in the AppServer log:

AS -- Mismatched number of parameters passed to routine server/openAccessConnect.p. (3234)
AS -- ** ABL Debug-Alert Stack Trace **
AS -- --> server/openAccessConnect.p at line 0 (c:\Users\IDa_wf\git\dev\opt\crm\tty\server\openAccessConnect.p)

Thanks,
Mike

All Replies

Posted by Prasanna Anireddy on 12-Mar-2015 11:28

Hi Mike,
 
The CONNECT procedure only takes two input parameters for userId and Password.
 
DEFINE INPUT PARAMETER p_cUserID AS CHARACTER INITIAL "" NO-UNDO.
DEFINE INPUT PARAMETER p_cUserPwd AS CHARACTER INITIAL "" NO-UNDO.
 
Please refer to “Performing Secure CRUD Operations” section in the User Guide of “OpenAccess for OpenEdge Application Server” for more details.
 
Sample implementation of the connect procedure is available in below sample
oasamples/oe11/security_cfg/si/oa/connect.p
 
Also what version of OpenEdge are you working with. The Secure connections are currently not supported with OE 10.2B.
 
Thanks
Prasanna
 
[collapse]
From: Akioma [mailto:bounce-Akioma@community.progress.com]
Sent: 12 March 2015 PM 09:36
To: TU.DD.Connect@community.progress.com
Subject: [Technical Users - DataDirect Connect] OpenAccess for OpenEdge signature of connect procedure
 
Thread created by Akioma

Hi all,

when connecting from OpenAccess to the OE AppServer a connect procedure is called.
Can anybody tell me the parameters this procedure is expected to provide?

I tried it with the same signature as a standard AppServer connect procedure
(INPUT CHAR user, INPUT CHAR PW, INPUT CHAR pcOther) but I get an Error in the AppServer log:

AS -- Mismatched number of parameters passed to routine server/openAccessConnect.p. (3234)
AS -- ** ABL Debug-Alert Stack Trace **
AS -- --> server/openAccessConnect.p at line 0 (c:\Users\IDa_wf\git\dev\opt\crm\tty\server\openAccessConnect.p)

Thanks,
Mike

Stop receiving emails on this subject.

Flag this post as spam/abuse.

[/collapse]

Posted by Akioma on 12-Mar-2015 15:27

Hi Prasanna,

using that sample I got it working. Thanks for your help!

Mike

This thread is closed