service

Android service client code

Greetings I am creating a service client and the following lines give me error. I was wondering how to fix these... // I have put in the service client stuff below... private CheckZone mBoundService; private ServiceConnection mConnection = new ServiceConnection() { public void onServi...

Set up wcf service for http and https and also add username/password to its access

I am kinda new to WCF and the setting up of service and have 2 questions. My first question I have a service that will be accessed via https on a web server. However locally on my local IIS7, it will be accessed via http as https is not available. How can I set up a service to be accessed by both? My second question is regarding how I c...

How to create Windows Service using JRuby?

I know we can create windows service using win32-service gem which is available in Ruby. How we can create a windows service in JRuby, is there any java-specific way which can be re-used ?? ...

Why use a android service?

Im wondering what is the point of using a android service to do background work when you need to do a lot of things just to access any public methods or get a large chunk of data from a service such as a larger List object. why not just use a simple POJO that does stuff in the background for you in a seperate thread if you like and gain...

java application as a Windows Service using C#

I would like to wrap a java application as a Windows Service using C#. I can do it easily using the Process class and calling Process.Start("java.exe", "args"), but doing this way I have 2 process, my service wrapper and the java process. I'm looking to fully wrap the java application, including the java process. Does anybody here has d...

SOA: Joining data across multiple services

Hello, Imagine we have 2 services: Product and Order. Based on my understanding of SOA, I know that each service can have its own data store (a separate database, or a group of tables in the same database). But no Service is allowed to touch the data store of another Service directly. Now, imagine we have stored the product and order...

Service development framework solutions for Windows Phone 7

I've been trying to get Thrift to work with WP7, but has put it on hold preliminary. I'm now looking for other solutions to this and would like to get some feedback on which solution to choose, if any. Any suggestions is much appreciated, so don't hesitate :) ...

Windows service stops because of unknown reason

Hi, I have a WCF application which is hosted as a windows service in windows server 2008. But for some unknown reason the service stops sometimes. I checked the eventviewer, i see that an error has occured but its not saying why? It is only saying 'service terminated unexpectedly. It has done this 1 time(s).' Please help. ...

Web Service: Service Unavailable error

Hi, I have this web service to import data but I cant import data because i got an error "Service Unavailable" This is my request: POST /webservice/User.asmx HTTP/1.1 Host: www.sample.com.au Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://www.sample.com.au/UpdateUserBatch" <?xml version="1.0" encoding=...

Creating web service app for enterprise Java vs C++?

So we want to develop a service app (web Service with post/get API). What is language to go for secure, fast, enterprise app for about 2000 employers to use with about 20~40 services for interacting with DB server (which in my case will be Oracle) Dev time a year Dev team of 3. All capable of righting C++ code as well as Java (so they w...

Difference between Window Service, WCF Service application and ASP.NET web service application?

Hi, I don't know this is a right forum for my question or not? I am new in Web Services. Today i just open VS2008 and found 3 type of SERVICE project 1. Window Service 2. WCF Service application 3. ASP.NET web service application Please help me to find out the difference between these three project? When should we decide which typ...

ASP.NET Webservice calling WCF service

Dear Balaji, I have almost the same problem as you have described in http://stackoverflow.com/questions/1503242/calling-webservice-from-wcf-service. I have a asp.net webservice that calls a WCF service. On my development machine this is working fine. But if i deploy my ASP.net Webservice it is not working. Both the ASP Webservice en W...

The server committed a protocol violation. Section=ResponseStatusLine" For PHP webservice

HI I am calling a web service in my C# Code. The webservice is bulit in PHP. I am calling its loadunload method. The webservice returns me the "The server committed a protocol violation. Section=ResponseStatusLine" error if I call the service with in 5 to 10 second delay. Here is the code I am using to call the service. private MyServ...

Designing Messages for Service Layer

hello! i am about to develop a small application that should consist of a server and a rich client. so far i will follow the following design guidelines: never expose domain objects to the client encapsulating service messages to response and request objects identify service routines based on use-cases, so that they are always atomic ...

C# code to create AutoMapper DDL values (text,value) from *any* Domain Model Object, providing the two field names in the parameters

What would the C# code be to create a (service) method to return an object (ViewModel for DDL) using AutoMapper and provide the two field names as parameters? DDL is for a Drop Down List: public class DDLitems { public string text {get;set;} public string value {get;set} } My horrible pseudo C# code idea: (yea no idea how to ...

Confirm service credentials changed

I am using the following code to change the credentials of a windows service. Before I display the message that credentials were successfully changed, I want to confirm the new credentials have been applied. How can I do that? using (ManagementObject service = new ManagementObject(new ManagementPath(objPath))) { ...

Deploying An Application that Uses microsoft.crm.sdk web service.

I have used web services in the past and nothing special was required for deployment. As long as the application compiled and you could get to it through Visual Studio all was well. I am integrating a custom application with Microsoft Dynamics CRM and am receiving an error when I deploy the application as follows: Could not load file or ...

Should my service layer work for any user, or restrict itself to the currently authenticated user?

This is a fundamental design question about the service layer in my application, which forms the core application functionality. Pretty much every remote call reaches a service sooner or later. Now I am wondering if every service method should have a User argument, for which the operation should be performed or if the service should a...

How to make Android Activities aware of some background communication over Bluetooth?

I am developing an application which exchanges some data over Bluetooth (RFCOMM channel). The app will consist of few Activities that all need to be aware of exchanged data (e.g. receive it, parse it, update Activity's screen and send a response or even fire another activity based on received data). So my question is: what Android featu...

Stopping and starting a Service based on application state

I have a Service which tracks the location of the user. Currently, the Service boots when the application starts and stops when the application terminates. Unfortunately, if users keep the application in the background, the Service never stops and drains battery. I would like the Service to stop when my application is not in the foreg...