service

Reg: Remote Service

Can any one provide sample Remote service example. I want it like two different application. One application should contain service. Another application should use that service. Thanks in adv.... ...

Howto - Running Redmine on mongrel as a service on windows

I use Redmine on Mongrel as a project manager and I use a batch file (start-redmine.bat) to start the redmine in mongrel. There are 2 issues with my setup: 1. I have a running IIS on the server that occupies the HTTP port (80) 2. The start-redmine.bat must be periodically checked to see if it's stopped after a restart that is caused by w...

An explanation of memory usage on Windows server 2003

Hi, We've been working on a bit of puzzle at work. We have an application service installed on two machines, both running Windows server 2003. These services do exactly the same thing. However once loaded, one of the services uses 200mb less than the other service. We're at a bit of a loss to what might be causing this discrepancy. I...

Trying to start a service on boot on Android

I've been trying to start a service when a device boots up on android, but I cannot get it to work. I've looked a number of links online but none of the code is working. Am I forgetting something? This is my code. Manifest <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> <receiver android:name=".StartSer...

How can I prevent my Android app/service from being "killed" from a task manager?

It is very important that my service stay running until someone with a password stops the service from my UI screen. My app runs great but it is designed to be turned on/off by parents (with a password) on their kids phones. I have managed to make everything work but the problem I'm having is that if the kid uses a task manager to kill m...

Android Service - Ping URL

How can I use Android Service to do a ping callback? I need to open a webpage on a button click, but in the background, go ping another url for stats collection. Code snippets will be greatly helpful Thanks Chris ...

json webservice security

I have a problem regarding json web service security. I tried to developed a sample web application using json webservice,but the problem is the url was exposed on the client side.So from there,anybody can make a program and call the service for a thousand times. Please take note, that the web service will be using for a registration pag...

starting a process from a .NET windows service

Hello, I am trying to start a console application from a .NET Windows Service. The service is running on a Windows 2008 server. I use Process.Start to run the console application and it runs( I can see it in the task mgr), but I never get the process id back and the call to Process.Start just hangs. If I run the same service from my W...

Unit testing installation of services

Our installer program is going to be installing a number of system services, under both Windows and UNIX, using JavaServiceWrapper. There will be a class responsible for creating JavaServiceWrapper config files, installing the services, etc. Can I have some suggestions on how to unit-test this class? ...

How do I query the available service connection points on a Windows server, as relates to SPN and Kerberos

I need to list the service connection points on various windows servers. Ex. When I set up Kerberos for Sql Serve Analysis Services, the documentation says to use: Setspn.exe -S MSOLAPSvc.3/Fully_Qualified_domainName OLAP_Service_Startup_Account Apparently, however, Sql 2008 R2 may have incremented the MSOLAPSvc.3 to MSOLAPSvc.4, wh...

Android - When to use Service

This question is related to my previous question: http://stackoverflow.com/questions/2786720/android-service-ping-url So I have an Android app that on the click of a button, opens up a web page. Now, in the background I want to call another http url for gathering stats. My question is does this have to be a service? I know a service i...

capturing another activity's screen in android

is it possible to have a service (A) which will launch an activity (B) and then periodically capture B's screen? also, is it possible to send onTouch events from A to B? basically, i'd like to make a bot which would use an application so i don't have to. i guess it's not possible but had to ask. ...

Service Broker message_body error when casting binary data to xml in C#

I am using Message Broker with Sql server 2008, and designing an External Activator service to consume messages from my target queue. My Problem: Cant cast the returned message body from the SqlDataReader object: "WAITFOR (RECEIVE TOP(1) conversation_handle, message_type_name, message_body FROM [{1}]), TIMEOUT {2}" operation, I cant c...

Unit testing, mocking - simple case: Service - Repository

Consider a following chunk of service: public class ProductService : IProductService { private IProductRepository _productRepository; // Some initlization stuff public Product GetProduct(int id) { try { return _productRepository.GetProduct(id); } catch (Exception e) { // log, wrap then throw ...

delphi windows service problem

hi, i have a windows service written in delphi ...

Printing prn file in window service.

I am unable to print prn file on network printer from .Net window Service. I use File.Copy method but it does not work. I use cmd.exe through Process.Start method but it does not work. But If I copy the same code in windows form application then it works fine. Can anybody help me. ...

Thread used for ServiceConnection callback (Android)

Hi I'm developing an activity that binds to a local service (in onCreate of the activity): bindService(new Intent(this, CommandService.class), svcConn, BIND_AUTO_CREATE); I would like to be able to call methods through the IBinder in my lifecycle methods, but can not be sure that onServiceConnected have been called prior to these...

Sharepoint Custom Workflow - Web Services

I've a custom workflow which query data off web services. It seems that when the web services returns a hyphen (-), I could not be able to store the data into list, and returned workflow error. The raw data looks like this: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xs...

Problem consuming a dataset via a .NET web service from Flex-ActionScript

Hi, I am returning a .NET dataset to Flex Actionscript via a web service. Actionscript snippet as follows: var websvc:WebService = new WebService(); websvc.useProxy=false; websvc.wsdl = "http://localhost:13229/test/mysvc.asmx?WSDL"; websvc.loadWSDL(); var operation:Operation = new Operation(null, "GetData"); operation.arguments.command...

My Windows Service cannot write to the Application Event Log

I have 2 Windows services installed. They both have the same configuration for enterprise logging. 1 Windows Service successfully logs to the Application Event Log while the other one does not. The one that does successfully post to the log I see errors being generated. For the service that does not log successfully we see Service St...