Web service that shows message box - web-services

I need to create simple web service application. I need to show message box on the pc that runs that service. Is it possible to ask web service to create message box?

No, thats Not possible. But you can create a client application, which consumes that service. Check the condition and display the message box.

Related

Tracking multiple webservices in Loadrunner

I am new to loadrunner and have read some tutorials. My application is invoked via a SOAP web service call from soap UI and I get a synchronous response immediately. Then my application starts processing request and makes many web service calls internally and some business logic processing as well. Based on the result of the web service calls, a table in my application is populated in GUI with the web services and their results. But everything happens internally. I have to keep refreshing the page to get the latest update in the table till all the services are completed.
How do I track such web services which are invoked internally from my application? In tutorials, I could see recording from browser. But this is different. The browser itself doesn't send any requests.
Use proxy recording and set your application to use the LoadRunner recording proxy for web. Don't forget to add the SOAP header afterward

Mini Filter driver communication with windows service

I am creating a mini-filter driver. In that i communicate with user mode application to get the some of the data form user. i communicate with user mode using "communication port". i tried to communicate with user mode application it worked fine.
One the suggestion i got form others is to use windows service to fetch the data since it will always be running and we want user mode application to run always.
My question is
1) Can i create "communication port" in windows service?
2) If i create windows service, how to get specific user information. i mean, when i send the request to service how service come to know from which user session data needs to be fetched?
3) which one is better, i mean user mode or windows service is better solution.
1) Can i create "communication port" in windows service?
Yes you can create it in service.
2) If i create windows service, how to get specific user information. i mean, when i send the request to service how service come to know from which user session data needs to be fetched?
Service does runs under system account and not under any logged in user. So to show popup or dialog to current logged in user, you can look at WTSGetActiveConsoleSessionId() or similar api to get console session.
3) which one is better, i mean user mode or windows service is better solution.
Depends upon your design. As you mentioned service is always running to if your driver depends upon such requirement then do with service. But it will take more efforts to actually interact with user.
But if your driver can work without any service/app connection as such then go with application.

User Interactive Service in Windows 7

We have developed a network based C++ application that should run as a service for Windows XP, 7 32-bit system.
The application is console based.
User should be able to see the logs in console once the app is up and running.
To make application run as a service , we used XYNTService
The application is working as a service and it works fine under XP.
But I am not able to see the console under Windows 7, Since the service is running under the local SERVICE account, probably we can not see the GUI or access it in any way, because it is running in another winlogon session.
So can some one please suggest how can we make the service interactive so that user can see logs on the console while the app is running as a service?
Else
What if I make it a tray based application, is there a way to redirect logs a window?
Actually you can subscribe to logon/logoff events and then use WTSEnumerateSessions with CreateProcessAsUser to create GUI each time user logs into system, however it's not a good choice.
Making a tray app that automatically runs when user logs into system is better idea, you can use any of IPC mechanisms (named pipes, shared memory, sockets) to sent logs from service to tray app.

mobile web service server

I have a device running on windowse ce 6.0 I would like the customer to be able go to the device ip and see simlpe reports or change basic settings.
is there is an option in the device to have a simpe asp web site? or only a web service to download an xml file with whats going on in the device?
I dont want to put this information in a server, I want the client to go direct to his device.
There is a commercial product called Padarn that is a lightweight ASP.NET Web Server that could do it.
For full disclosure, I'm the one who wrote and is selling Padarn.
I have done a web server for WM that does special things on the device if the device's web site is invoked with args. The code can make the device beep or do report some information of the device.
I can post the code etc, if you like.
~josef

Does SendNotifyMessage API work across user sessions?

Say, I have a Windows service application and also windowed client applications running in each logged on user session. If I call RegisterWindowMessage in each client app and try to trap that message there. And then also call RegisterWindowMessage with the same message name in the service app and then use it in a call to SendNotifyMessage again from the service to notify each client app of a single-fire event, will that work?
PS. I program using C++/MFC and native WinAPIs.
If your service application is running under the system account it cannot send messages to the user account's application.
Your can try the following approach:
Go through all the sessions (WTSEnumerateSessions) to get all
WindowStation,
Open these stations (OpenWindowStation),
Per station
Associate your process with the station (SetProcessWindowStation),
Go through all station desktops (Enumdesktops),
Go through all windows (EnumdesktopWindows) until your found one of your
application's window
You probably will have issues with UAC though.