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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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).
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.
The "of_run()" method is the same between the Integrated and the Web
Service frameworks to allow identical code to execute. The Integrated
framework which is designed to be used on the client (visual)
application side of the fence - the Hide parameter makes sense as you
see a visual manifestation of the EXE you are running (if required).
However, in the Web Service case - this never makes any sense as you
will never see the called .EXE. I suppose logically in the WS framework
I could always over-ride that parameter to FALSE.
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
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:
... and what about your hidden parameter ?
Hi Gimmy;
The "of_run()" method is the same between the Integrated and the Web
Service frameworks to allow identical code to execute. The Integrated
framework which is designed to be used on the client (visual)
application side of the fence - the Hide parameter makes sense as you
see a visual manifestation of the EXE you are running (if required).
However, in the Web Service case - this never makes any sense as you
will never see the called .EXE. I suppose logically in the WS framework
I could always over-ride that parameter to FALSE.
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-30 05:06, GIMMY SUSAN wrote:
ops.
ty
Hi chris.
i'm looking into your code.
In particolar i'm looking in nc_powershell_master.of_run_api.
i'm not able to understand where find the structure:
STARTUPINFO
PROCESS_INFORMATION
if i try to copy al the code in another project ( not a stdfnclass ) it give me error.
ty for answer
Hi Gimmy;
Those are LOCAL structures. In the NVUO painter, select
"View=>Structure List" from the NVUO Painter's menu and you should see
them. ;-)
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 2016-03-07 05:20, GIMMY SUSAN wrote: