Greetings,
I am having trouble getting what should be a very simple CreateObject() to work in a Web Service. Here is the problem code:
Define Class ATIFws As Session OlePublic
Procedure FetchMembers(cPW As String, tLastUD As dateTime)
Local cDecryptedPW, cTemp
Set ClassLib To "c:\atifws\class libraries\CryptoAPI" Additive
oCrypt = CreateObject('CryptoAPI')
oCrypt.password = 'GLOBALWARMING'
.
.
.
.
.
etc.
When called from the client, this code bombs on the last line shown. the error message is: "Error in line ... OCRYPT is not an object"
Here is some background:
- The code portion above is part of a long web service procedure that works fine if I yank out the 3 encryption related code lines.
- If I pull the entire web service procedure out and put it into a stand-alone program it works fine, including the encryption portion.
- The CryptoAPI library is one I downloaded from the downloads area here at the UT
..... any help will be greatly appreciated.
Thanks,
-Steve