service

Multiple clients to singleton WF Services

Do Windows Workflow Services allow multiple clients to one service? Basically what I am trying to do is this: construct a WF service that allows clients to "subscribe to the service" and then when certain events trigger a handler, it broadcasts data to each client. So basically something is going to process in the background and then whe...

Providing a background service for other apps

I'm new to Android development and I couldn't find this in the Dev Guide. I would like to create a background service so that any other app could connect to it and get some data from it. I saw android.app.Service, but it seems that it only allows other apps to ping the service, it doesn't allow them to register for some specific events....

Why the service does not work?

The AlertDialog can show normally, but why the music service does not start? package com.commonware.android.AnalogClock; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.media.*; public class AlarmAlert extends...

How to debug a windows service with Delphi?

Is there a way to debug completely a windows service with Delphi? ...

Multiple NT service owned by the same program in Delphi

I'm looking for Delphi sample code to develope a Win32 Windows service which can be installed many times (with different Name). The idea is to have 1 exe and 1 registry key with 1 subkey for every service to be installed. I use the exe to install/run many service, every service take his parameter from his registry subkey. Does anyone ha...

Get list of surrounding buildings based on coordinates from open database on Web

I would like to get a list of well-known buildings(museums, castles etc..) within X meters radius of the current coordinate. I would like to query them in PHP. Do you know any such database that can be queried? ...

Use a Datamodule in a Service Application

I wrote my Win32 App to test and debug. I've created a datamodule with all functionality needed to run the TCP sockets and IBDatabase components. After successfully testing the Datamodule in the Win32 application environment I am trying to hook the Datamodule into a Service Application template that I created, I can get nowhere in getti...

Ruby background service

I have a TCPclient written on Ruby. I want to use it in background. Currently it has a loop: loop do end So i can run a client, and it works forever. Is there a way to run in as a service, and write a pid to file, then i'll able to kill that process by pid? ...

iPhone UIImage upload to web service

Hi all, I worked on this for several hours today and I'm pretty close to a solution but clearly need some help from someone who's pulled this off. I'm trying to post an image to a web service from the iPhone. I'll post the code first then explain everything I've tried: NSData *imageData = UIImageJPEGRepresentation(barCodePic, .9); NSS...

Android: Shut down / loss of bluetooth connection or file receive -> Do something

Hi guys, I want to write an App that monitors my paired bluetooth connection in the following way: If a file comes from a paired source it should be stored. If no file was passed and the bluetooth connection breaks down, my app shall store a dummy file. Storing a file works great, my main issue is how to run this whole thing without h...

How to reschedule Alarm Manager on Preference Change

Hi, I have an Android Service. When a phone boots up, a broadcast receiver receives a notification and it schedules the service to run repeatedly at a gap of X minutes. Henceforth After every X minutes another broadcast receiver gets those notifications and kicks the service off, which does it's job and quits. So far so good. Now I wan...

Can I create a public service that uses the subscribers AdWords API?

I would like to create a simple online service, that needs AdWords API access to do some keyword search. The subscribers of my service would have to provide their AdWords API developer key and token and so on .. to use all the features of my service. This way our server would connect to the AdWords API server, would collect all the nec...

ASP.NET Web Service returning XML result and nodevalue is always null

I have an ASP.NET web service which returns an XMLDocument. The web service is called from a Firefox extension using XMLHttpRequest. var serviceRequest = new XMLHttpRequest(); serviecRequest.setRequestHeader("Content-Type", "text/xml; charset=utf-8"); I consume the result using responseXML. So far so good. But when I iterate throu...

web service event

I want to develop a web service that handle another web service's event. (C#.Net 3.5 framework) I will develop a web service and the correspond service's event catch this service, and it will send some data to me. Is it possible? Thanks. ...

Android Context.bindService always returns false and ServiceConnection object is never triggered

I have followed the Local Service example provided by Google, but my Context::bindService(...) always returns false and there is ServiceConnection::onServiceConnected is also never called. I understand that Context::bindService() returns immediately, but my ServiceConnection object is never triggered. I don't know if these apply My a...

ServiceRoute + WebServiceHostFactory kills WSDL generation? How to create extensionless WCF service with ?wsdl.

I'm trying to use extenionless / .svc-less WCF services. Can anyone else confirm or deny the issue I'm experiencing? I use routing in code, and do this in Application_Start of global.asax.cs: RouteTable.Routes.Add(new ServiceRoute("Data", new WebServiceHostFactory(), typeof(DataDips))); I have tested in both IIS 6 and IIS 7.5 and I ...

mono-service command line arguments

So basically, I've created a windows service that I'm not porting to linux and mono. Everything is working great except I can't figure out how to send command line arguments to a windows service that I'm starting with mono-service(2). I'm hoping I can pick up command line arguments in OnStart(string[] args) of my service, but no luck so...

Servicehost throwing an error, even though added to configuration with netsh

Hey guys, Servicehost.Open() is throwing this error : HTTP could not register URL http://+:8001/. Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for details). So I used netsh to add the url. But event though it is added, i'm still getting the error. This is the command i us...

Android Service Multiple Thread Design

Hello, A new question about android and services. Currently I'm developing a App that should send images to a server. It should also be possible to send more images parallel. I made a service that creates for every image a new image. The activity can bind to that service and gather information about the progress. I want to show the cu...

my web service works locally but, not when it is deployed

When I deploy my web service, I get the following error: There is no build provider registered for the extension '.svc'. You can register one in the section in machine.config or web.config. Make sure is has a BuildProviderAppliesToAttribute attribute which includes the value 'Web' or 'All'. I found one thread (http://forums.asp.net/t/...