473,396 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Connecting to 3270 application via WHLLAPI and asp.net 2.0

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. :(

Jul 24 '06 #1
2 3235
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]

<co*****@ups.comwrote in message
news:11**********************@75g2000cwc.googlegro ups.com...
>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. :(

Jul 24 '06 #2
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.

Ken Cox [Microsoft MVP] wrote:
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]

<co*****@ups.comwrote in message
news:11**********************@75g2000cwc.googlegro ups.com...
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. :(
Jul 25 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: stabbert | last post by:
We are running DB2 UDB 8.1.6 in a partitioned environment where we have 8 physical nodes. We have a process that remotely connects to each individual node and loads some data. By setting the...
12
by: Ann Marinas | last post by:
Hi all, I would like to ask for some help regarding separating the asp.net webserver and the sql server. I have created an asp.net application for a certain company. Initially, we installed...
0
by: Lucas Tam | last post by:
Hi all, Can anyone recommond some .NET or ActiveX components that I can use for screen scraping from a 3270 host? I'm planning to extract some customer information from a 3270 host in...
3
by: Vinod R.Shenoy | last post by:
Hi All, Came across a post wherin you had helped somebody with a similar problem and was wondering if you could help us out with it. Our problem is , We have a development SQL Server 2000...
0
by: jagat | last post by:
I tried using this dll which connects to mainframe and it works fine while when i tried using the same for VB.net it gives an error "System.Nullreference exception". Here is the piece of code: ...
8
by: Ananthu | last post by:
Hi I have done all the codings part for connecting mysql with java in eclipse environment. Coding Part: import java.sql.Connection; import java.sql.DriverManager; public class...
8
by: voroojak | last post by:
Hi. I have to read from from IBM terminal 3270. When the main menu is open I can send my keys and move the page forward. I mean I can send F6,F7,F2 and other keys to go to the page that I want. Then...
2
by: orandov | last post by:
Hi, I am having a problem connecting my .net applications from the application server to the database server. When I run the application from my windows xp (sp2) box it works fine. When I try to...
0
by: brum2008 | last post by:
Hello! Below is the Netbeans Mobility source code for my application (The application offers SPP service, and then just hangs waiting for a client to connect (using acceptAndOpen()). The other...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.