Invokable TP program in .Net
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Invokable TP program in .Net

 
Post new topic   Reply to topic    Windows Server Forum Index -> Host Integration Server
Author Message
simms_s@lotterywest.wa.go
Guest





Posted: Mon Oct 17, 2005 8:51 am    Post subject: Invokable TP program in .Net Reply with quote

I am interested in writing an Invokable (server-side) CPI-C program to
replace an existing TP on a mainframe. I would like to write the
program in C# and so I'm wondering if anyone has any sample C# code for
CPI-C programs?

Thanks,

Scott Simms.
Back to top
Neil Pike
Guest





Posted: Mon Oct 17, 2005 8:51 pm    Post subject: Re: Invokable TP program in .Net Reply with quote

Scott,

I don't, but I know Aaron Grady re-wrote the SDK sample (I assume you've seen
this one?) in C# a while back. Not sure where/if it's publicly available
though, but he'll probably stop by this thread soon....

Quote:
I am interested in writing an Invokable (server-side) CPI-C program to
replace an existing TP on a mainframe. I would like to write the
program in C# and so I'm wondering if anyone has any sample C# code for
CPI-C programs?

Thanks,

Scott Simms.


Neil Pike. Protech Computing Ltd
Microsoft SNA/HIS MVP
Back to top
Scott Simms
Guest





Posted: Tue Oct 18, 2005 6:06 am    Post subject: Re: Invokable TP program in .Net Reply with quote

Hi Neil,

Thanks; I did try to contact Aaron but the email bounced...hopefully
someone will pickup the thread soon.

With your app, are you looking to replace existing mainframe
functionality?

Thanks,

Scott Simms.
Back to top
Scott Simms
Guest





Posted: Tue Oct 18, 2005 8:51 am    Post subject: Re: Invokable TP program in .Net Reply with quote

Hi Neil,

Thanks for your help.

FYI, In terms of the new server, we will be building a Web based app
but catch is that the client TP program is *not* changing so we still
need to support the same protocols. I am hoping to build a 'bridge'
Invokable TP app behind HIS that handles the protocol conversion
between the existing client and the new server app.

Thanks,

Scott.
Back to top
Neil Pike
Guest





Posted: Tue Oct 18, 2005 8:51 am    Post subject: Re: Invokable TP program in .Net Reply with quote

Scott,

I got a message from Aaron. He'll post the source on his blog when he's back
in the office on Wednesday. Blog URL below

http://blogs.msdn.com/aagrady/default.aspx

Neil Pike. Protech Computing Ltd
Microsoft SNA/HIS MVP
Back to top
Neil Pike
Guest





Posted: Tue Oct 18, 2005 8:51 am    Post subject: Re: Invokable TP program in .Net Reply with quote

Hi Scott. I pinged Aaron at the same time I replied to you, so hopefully
he'll reply too.

I've never done any HIS stuff to replace a mainframe per-se. When I've used
HIS as an APPC LU62 server it's been for mainframes to talk to it - for file
transfers (Connect:Direct) and as a gateway to a tcp-ip application where the
mainframe couldn't talk direct to the application.

Usually if someone wants to replace a mainframe app completely, they develop
the alternative as Web based and/or .NET and/or J2EE and/or whatever on a
distributed platform.

Quote:
Thanks; I did try to contact Aaron but the email bounced...hopefully
someone will pickup the thread soon.

With your app, are you looking to replace existing mainframe
functionality?

Neil Pike. Protech Computing Ltd
Microsoft SNA/HIS MVP
Back to top
Neil Pike
Guest





Posted: Tue Oct 18, 2005 4:51 pm    Post subject: Re: Invokable TP program in .Net Reply with quote

Scott - that should be relatively easy via either the APPC or CPI-C API's. As
it will need to run all the time it will probably need to run as an NT service.

Quote:
FYI, In terms of the new server, we will be building a Web based app
but catch is that the client TP program is *not* changing so we still
need to support the same protocols. I am hoping to build a 'bridge'
Invokable TP app behind HIS that handles the protocol conversion
between the existing client and the new server app.

Thanks,

Scott.


Neil Pike. Protech Computing Ltd
Microsoft SNA/HIS MVP
Back to top
Scott Simms
Guest





Posted: Wed Oct 19, 2005 7:55 am    Post subject: Re: Invokable TP program in .Net Reply with quote

Thanks Neil,

Are you able to clarify for me the difference between APPC and CPI-C?
APPC seems to use the CPI-C API but it's not clear why you would use
one over the other.

Thanks,

Scott.
Back to top
Neil Pike
Guest





Posted: Wed Oct 19, 2005 8:52 am    Post subject: Re: Invokable TP program in .Net Reply with quote

Scott - it's the other way round. CPI-C is a "higher-level" set of API's that
run over APPC/LU62. All CPI-C apps are APPC/LU62, but not all APPC/LU62 apps
are CPI-C.

If you want a TP on HIS to be written using the CPI-C API to listen for
requests, then the calling program (TP) needs to also be conformant to CPI-C I
believe. (Though I'm no hands on coder these days).

There are C SDK samples for each in the HIS SDK. You'll see that the APPC one
runs to more lines of code as it has to do more low-level stuff itself.

Quote:
Are you able to clarify for me the difference between APPC and CPI-C?
APPC seems to use the CPI-C API but it's not clear why you would use
one over the other.

Neil Pike. Protech Computing Ltd
Microsoft SNA/HIS MVP
Back to top
Scott Simms
Guest





Posted: Thu Oct 20, 2005 12:51 pm    Post subject: Re: Invokable TP program in .Net Reply with quote

Hi Neil,

Thanks for all you help. Do you know of anyone who might be able to
confirm that HIS supports the ability to 'serve' an existing CPI-C
application (non windows) that uses dependent LU's? In our case we
cannot change the client program; all we want to do is re-write the
server application and host it with HIS.

Thanks again,

Scott.
Back to top
Neil Pike
Guest





Posted: Thu Oct 20, 2005 4:51 pm    Post subject: Re: Invokable TP program in .Net Reply with quote

Scott,

Yes, as far as I know, that will all work - assuming you've coded your app
correctly of course! I've only personally worked with CPI-C as a client on
HIS, rather than as a server, but the support is all there.

Hopefully will of the MS folks will drop in to give you the MS
seal-of-approval should you need it.

Quote:
Thanks for all you help. Do you know of anyone who might be able to
confirm that HIS supports the ability to 'serve' an existing CPI-C
application (non windows) that uses dependent LU's? In our case we
cannot change the client program; all we want to do is re-write the
server application and host it with HIS.

Thanks again,

Scott.


Neil Pike. Protech Computing Ltd
Microsoft SNA/HIS MVP
Back to top
Charles Ezzell (MSFT)
Guest





Posted: Thu Oct 20, 2005 4:51 pm    Post subject: Re: Invokable TP program in .Net Reply with quote

Yes. You can use dependent LUs. It won't be as efficient as independent, but
you can do so.

--
HTH,
Charles Ezzell
Microsoft

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"Scott Simms" <simms_s@lotterywest.wa.gov.au> wrote in message
news:1129802189.003758.294840@g14g2000cwa.googlegroups.com...
Quote:
Hi Neil,

Thanks for all you help. Do you know of anyone who might be able to
confirm that HIS supports the ability to 'serve' an existing CPI-C
application (non windows) that uses dependent LU's? In our case we
cannot change the client program; all we want to do is re-write the
server application and host it with HIS.

Thanks again,

Scott.
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Host Integration Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB