Connecting to 3270 application via WHLLAPI and asp.net 2.0

C

col1blb

I have been writing vb6 and vb.net applications for years that use the
whllapi.dll file and a class that i built to interact with our 3270
emulator (QWS3270 Plus from Jolly Giant software). I got an idea to
try to create an asp.net webpage that would connect to the 3270 emu,
and preform many of the same functions as my vb.net apps. Using the
same class as my vb.net apps, I can connect to the 3270 using a
specific HLLAPI session id, but if i try to preform any other functions
I'm getting a return code of 1059. This return code isn't listed in
the whllapi.h file or any documentation that i've read. Does anyone
have any experience with this and could tell me if what i'm trying to
do is possible or maybe point me in some direction. I'm pretty much
lost at this point. :(
 
K

Ken Cox [Microsoft MVP]

I don't have any experience with the 3270 but if the code works with VB.NET
and not ASP.NET then I'd suspect that ASP.NET doesn't have the correct
Windows authentication to execute the code.

For a starter, how about using impersonation in the web.config and setting
the impersonated identity username and password to the same account that
works for the VB.NET app?

Ken
Microsoft MVP [ASP.NET]
 
C

col1blb

I'll try that in a few minutes, but i dont think its the case since i
can run the connect and disconnect functions with no problems.
I don't have any experience with the 3270 but if the code works with VB.NET
and not ASP.NET then I'd suspect that ASP.NET doesn't have the correct
Windows authentication to execute the code.

For a starter, how about using impersonation in the web.config and setting
the impersonated identity username and password to the same account that
works for the VB.NET app?

Ken
Microsoft MVP [ASP.NET]

I have been writing vb6 and vb.net applications for years that use the
whllapi.dll file and a class that i built to interact with our 3270
emulator (QWS3270 Plus from Jolly Giant software). I got an idea to
try to create an asp.net webpage that would connect to the 3270 emu,
and preform many of the same functions as my vb.net apps. Using the
same class as my vb.net apps, I can connect to the 3270 using a
specific HLLAPI session id, but if i try to preform any other functions
I'm getting a return code of 1059. This return code isn't listed in
the whllapi.h file or any documentation that i've read. Does anyone
have any experience with this and could tell me if what i'm trying to
do is possible or maybe point me in some direction. I'm pretty much
lost at this point. :(
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top