service

Android remote service doesn't call service methods

Hello, I'm developing a GPS tracking software on android. I need IPC to control the service from different activities. So I decide to develop a remote service with AIDL. This wasn't a big problem but now it's always running into the methods of the interface and not into those of my service class. Maybe someone could help me? Here my AI...

Multiple SessionFactories in Windows Service with NHibernate

Hi all, I have a Webapp which connects to 2 DBs (one core, the other is a logging DB). I must now create a Windows service which will use the same business logic/Data access DLLs. However when I try to reference 2 session factories in the Service App and call the factory.GetCurrentSession() method, I get the error message "No session ...

android use local service to refresh map UI

I don't need a strict code related answer I just need somebody to tell me what I am missing. My application has to retrieve from a web service (xmlrpc) the positions of some users I know and update their position on a MapView. So I decided to use a Service and an Activity extending MapActivity to show results. I thought about two solutio...

Is it possible to run a hidden console application from a Windows service?

I've written a server in Delphi 2010 that needs to launch a console application every now and again to back up a database. The console application can send log information to the console window, but it is not required. This works fine when running as an application, but when run as a service I get an access violation when launching the ...

Add Reference to a WCF Service Executable

I have 3 projects in my solution. 1 - client, 2 - server, 3 - WCF service library. Server executable exposes the service provided in the library. I need to add a reference to it, rather than to the library directly. When I open "Add Service Reference" and click "Discover", it only lists the library data, and doesn't list the executable s...

Sync between local service with a thread and an activity

Hello all, I'm trying to think of a way on how to sync in between a local service and the main activity. The local service has, A thread with a socket connection that could receive data at any time. A list/array with data. At any time the socket could receive data and add it to the list. The activity needs to display this data. So...

Service and a BroadCastReceiver

Hi, I have seen several examples on how to implement a BroadCastReceiver, but how should I implement a Service who has to react on some pending Intent (for example incoming phone call)... Actually I was wondering about the same "prbolem" but in an Activity.. You obviously have a class which extends a Service 9or an Activity) so it cannot...

WNetAddConnection2 from a Windows Service

I'm trying to connect to a remote password protected shared folder from a Windows service, which runs as LocalSystem account. It seems that the LocalSystem account is unable to directly access password-protected network shares using WNetAddConnection2() or similar calls. Can anyone confirm this? I've read that impersonating an administra...

WCF Rest service authentication

Hi, I am trying to write my first WCF Rest service following http://msdn.microsoft.com/en-us/library/ee391967%28v=MSDN.10%29.aspx Sometimes when I go to websites they ask a user to enter a username and password... I just wanted to know when Im testing my service with Http Get options in a browser, Is there a way so that the browser a...

tapi causing problems on server 2008 64-bit

Hey guys, i'm migrating my server app to a windows server 2008 64-bit. I'm using eventlogs to monitor exceptions and to see where things might go wrong. When i'm initialising a class, it call this : tapiManager = new TapiManager("TapiCallMonitor.net"); This is present in the Atapi wrapper from JulMar, to monitor calls. When i put tha...

Passing SOAP XML Captured in AfterReceiveRequest method to WCF Service method

Hi I am using WCF Service.I have captured the SOAP Request XML message in AfterRecieveRequest method of Inspector File when an service request occurs.How can i send this Request XML to main service method.Please let me know. ...

How to run a Python script in the background even after I logout SSH?

I have Python script bgservice.py and I want it to run all the time, because it is part of the web service I build. How can I make it run continuously even after I logout SSH? ...

How can an Android Service know that its not bound to any Activities

I have an Android Service that I would like to keep running even after the last Activity has been popped off the stack, or the User has chosen to do something else. Essentially the Service is listening for changes on a remote server, and I would like to generate a Notification if and only if an Activity from the app isn't running(or vis...

WCFServiceException: Required attribute 'binding' not found.

Hi, My WCF Service when hosted is throwing an error: WCF Service PayThisException: Required attribute 'binding' not found. (C:\Temp\WCFVirtualDirPath\web.config line 278) Please help me with some solution. Cheers, Ravi Santlani ...

I can't change a value, for a web service using an axiom client!

Hi.I just started learning about web serices. I succesfuly installed Tomcat, and deployed axis2 on it. I followed the tutorial from here http://ws.apache.org/axis2/1_1_1/quickstartguide.html . I made the StockQuoteService web service, moved the .aar file in the WEB-INF/services folder and tested it - it worked all fine. Then I made a ...

Should services include logged in user as a parameter?

Hi, When using the Service design pattern, do you usually place the logged in user, or user scope, as a parameter to the methods of the service interface, or do you call AutheticationService.getLoggedInUser() in the service implementation. What advantages/disadvantages do you find for each option? ...

assembling an object graph without an ORM -- in the service layer or data layer?

At my current gig, our persistence layer uses IBatis going against SQL Server stored procedures (puke). IMHO, this approach has many disadvantages over the use of a "true" ORM such NHibernate or EF, but the one I'm trying to address here revolves around all the boilerplate code needed to map data from a result set into an object graph. ...

A weird phenomenon of SensorService

I'm trying to develop a service on android2.1 which can detect the movement of device in anytime. However, my service can't receive the X, Y, Z data in onSensorChanged method, and WindowOrientationListener in framework is received the data normally. I put some log in the codes and found that the FileDescriptor (handle->data[offset++]...

RIA DomainService Hosting

i have an application, in which i have an EntityModel. i have a DomainService which talks to this EntityModel. i am using simple LinqToEntitiesDomainService for this application, not .svc extension files. On Silverlight (client), i am able to get/put the data through this service. Now my question is: I want to see the wsdl of hosted RIA...

New to JEE; architecture suggestions for a service/daemon?

I am brand new to the JEE world. As an exercise to try and familiarize myself with JEE, I'm trying to create a tiered web-app, but I'm getting a little stuck on what the best way is to spin up a service in the background that does work. Parameters of the service: It must open and hold a socket connection and receive information from t...