>I am testing the following code. I built the dll and published it as a web service but it just returns blank. I have modifield the class to be olepublic and this works when I create an object using this class from the command window. Is there something I am missing or do not understand.
>
>
>DEFINE CLASS crypt as Session OLEPUBLIC
>
>FUNCTION callencrypt
>
>LOCAL lcEncryptedValue
>
>SET CLASSLIB TO _crypt.vcx
>
>oCrypt=CREATEOBJECT("_cryptapi")
>
>lcEncryptedValue=""
>
>oCrypt.EncryptSessionStreamString("just some text","sunday",@lcEncryptedValue)
>
>RELEASE oCrypt
>
>RETURN lcEncryptedValue
>
>ENDFUNC
>
>
>ENDDEFINE
Temporary, can you try to avoid using the oCrypt object and simply just return a "test" string? That would tell you if your Web Service is working ok. If that is working, then it'd be related to the oCrypt object across the Web Service. If not, then, it'd be something global.