0

Here is the problem, we need to print some document from a mainframe terminal, but we can only call web services from mainframe. We have a .exe applications the we want the Web Service to call it and pass the respective parameters. When we executed the .exe it works perfectly but when we call it from within the web service nothing happens.

This is a sample code to call the exe:

System.Diagnostics.ProcessStartInfo startInfo;
startInfo = new System.Diagnostics.ProcessStartInfo(@"C:\Inetpub\wwwroot\PrintBarCode.exe");
startInfo.UseShellExecute = false;
startInfo.CreateNoWindow = false;
startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;

using (System.Diagnostics.Process exeProcess = System.Diagnostics.Process.Start(startInfo))
{
    exeProcess.WaitForExit();
}
keyboardP
  • 68,824
  • 13
  • 156
  • 205
JoseR
  • 76
  • 1
  • 4

1 Answers1

0

Wild/educated guess, chances are you are running into permission issues.

Keep in mind that the Web Service probably runs on different credentials.

Adriano Carneiro
  • 57,693
  • 12
  • 90
  • 123