Menu

batch system

2015-09-29
2016-03-07
  • GIMMY SUSAN

    GIMMY SUSAN - 2015-09-29

    Hello
    I'm creating a batch manager via a call to a web service.

    I see that in 'nc_powershell_master' there is the 'of_run' whose das hidden and wait parameters.

    I tried to create an example, but the hidden parameter does not work for me.

    program client server:

    string tk = 0
    long ll_rc, li_ret
    SoapConnection Conn
    proxy_nc_progenamws_view wsproxy

    wsproxy = CREATE proxy_nc_progenamws_view

    Conn = created SoapConnection
    ll_rc = Conn.CreateInstance (wsproxy, "proxy_nc_progenamws_view")

    Conn.SetSoapLogFile ('C: \ temp \ proxy.log')

    try
    li_ret = wsproxy.of_batch ('calc', tk, false, false)
    catch (SoapException s)
    messagebox ("Error", "Can not Invoke Web Service")
    finally
    destroy conn
    destroy wsproxy
    end try

    mb ('End')

    web services

    integer li_rc
    string ls_command

    THIS.of_write_log ("Start of batch:" + p_token + "!") // Log PDF Start!
    choose case p_batchtype
    case 'calc'
    ls_command = 'calc.exe'
    li_rc = THIS.of_run (ls_command, p_hidden, p_wait) // Run PB App Hidden & Wait
    case 'notepad'
    ls_command = 'notepad.exe'
    li_rc = THIS.of_run (ls_command, p_hidden, p_wait) // Run PB App Hidden & Wait
    end choose

    THIS.of_write_log ("End Batch" + p_token + "- RC:" + String (li_rc)) // Log the result

    Return li_rc

    question

    whether i put the hidden parameter to true or to false I do not see the calculator.
    if I see the active control processes i see la calc,exe pricess, but i do not seen it on the screen.

    why ?

    i'm using:
    PB12.1
    windows 7 professional in vmware client

    ty
    G.

     

    Last edit: GIMMY SUSAN 2015-09-29
    • Chris Pollach

      Chris Pollach - 2015-09-29

      Hi Gimmy;

      You will never see any visual application when run from inside a Web
      Service. Like an MS-Windows Service ... there is no interaction with the
      O/S Console. That is why you never see anything visual (as I would
      expect).

      HTH

      Regards ... Chris
      CEO & President: STD Inc.
      Website: http://www.softdie.ca
      Blog: http://chrispollach.blogspot.ca
      PBDJ: http://chrispollach.sys-con.com
      SourceForge: http://sourceforge.net/projects/stdfndclass

      On 2015-09-29 09:44, GIMMY SUSAN wrote:

      Hello
      I'm creating a batch manager via a call to a web service.

      I see that in 'nc_powershell_master' there is the 'of_run' whose das
      hidden and wait parameters.

      I tried to create an example, but the hidden parameter does not work
      for me.

      PROGRAM CLIENT SERVER:

      string tk = 0
      long ll_rc, li_ret
      SoapConnection Conn
      proxy_nc_progenamws_view wsproxy

      wsproxy = CREATE proxy_nc_progenamws_view

      Conn = created SoapConnection
      ll_rc = Conn.CreateInstance (wsproxy, "proxy_nc_progenamws_view")

      Conn.SetSoapLogFile ('C: temp proxy.log')

      try
      li_ret = wsproxy.of_batch ('calc', tk, false, false)
      catch (SoapException s)
      messagebox ("Error", "Can not Invoke Web Service")
      finally
      destroy conn
      destroy wsproxy
      end try

      mb ('End')

      WEB SERVICES

      integer li_rc
      string ls_command

      THIS.of_write_log ("Start of batch:" + p_token + "!") // Log PDF
      Start!
      choose case p_batchtype
      case 'calc'
      ls_command = 'calc.exe'
      li_rc = THIS.of_run (ls_command, p_hidden, p_wait) // Run PB App
      Hidden & Wait
      case 'notepad'
      ls_command = 'notepad.exe'
      li_rc = THIS.of_run (ls_command, p_hidden, p_wait) // Run PB App
      Hidden & Wait
      end choose

      THIS.of_write_log ("End Batch" + p_token + "- RC:" + String (li_rc))
      // Log the result

      Return li_rc

      QUESTION

      whether i put the hidden parameter to true or to false I do not see
      the calculator.
      if I see the active control processes i see la calc,exe pricess, but
      i do not seen it on the screen.

      why ?

      ty
      G.


      batch system [1]

      Sent from sourceforge.net because cpollach@travel-net.com is
      subscribed to https://sourceforge.net/p/stdfndclass/discussion/wsf/
      [2]

      To unsubscribe from further messages, a project admin can change
      settings at
      https://sourceforge.net/p/stdfndclass/admin/discussion/forums. [3] Or,
      if this is a mailing list, you can unsubscribe from the mailing list.

      [1]
      https://sourceforge.net/p/stdfndclass/discussion/wsf/thread/d5065f62/?limit=25#2b61
      [2] https://sourceforge.net/p/stdfndclass/discussion/wsf/
      [3] https://sourceforge.net/p/stdfndclass/admin/discussion/forums.

       
    • GIMMY SUSAN

      GIMMY SUSAN - 2015-09-30

      ... and what about your hidden parameter ?

       
  • GIMMY SUSAN

    GIMMY SUSAN - 2015-09-30

    ops.

    ty

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.