Web services are software systems designed to support interoperable machine-to-machine interaction over a network.

learn more… | top users | synonyms

20
votes
4answers
8k views

REST - Tradeoffs between content negotiation via Accept header versus extensions

I'm working through designing a RESTful API. We know we want to return JSON and XML for any given resource. I had been thinking we would do something like this: GET /api/something?param1=value1 ...
2
votes
1answer
536 views

How can I keep Web services requests in a DAO layer without tying the code to the DOM?

I'm working on a single page application on the node-webkit desktop app platform, which means 99.9% of all of the logic is written in JavaScript. Since this is a reboot of a project we're working on, ...
13
votes
3answers
2k views

Why is it so bad to read data from a database “owned” by a different microservice

I have recently read this excellent article on the microservice architecture: http://www.infoq.com/articles/microservices-intro It states that when you load a web page on Amazon, then 100+ ...
3
votes
2answers
185 views

Web Services and code lists

Our team heavily discuss the issues how to handle code list in a web service definition. The design goal is to describe a provider API to query a system using various values. Some of them are catalogs ...
1
vote
0answers
53 views

How do I set up a micro-services architecture that can take advantage of a common, centralized security service?

I've obviously heard a lot about the Micro-Services Architecture and think it makes a lot of sense (especially with the success stories of Netflix). I'd like to implement a small Grails application ...
-2
votes
0answers
26 views

Can Camel be used for building up html pages? [closed]

Is it possible and furthermore should it be done? If I have 10 web services that all generate different parts of a web page. For example header, footer and body elements. Should I use Camel or some ...
3
votes
1answer
63 views

Should I hide fields in REST resource representations based on the user's security role?

What is the best practice for exposing different fields for a resource based on user's role/ACL privileges in the system? Let's say I have an endpoint, groups/{:group_id}. My business rules state ...
2
votes
2answers
72 views

Service Oriented Architecture - Component Responsibility

Working on an ecommerce project whereby a PHP application (back-end & non-customer facing) is currently responsible for processing an order from checkout stage through to generating profit/loss ...
0
votes
0answers
15 views

single app and multiple distributed service versions

The problem that I have is with versioning of a single mobile application (created with Cordova) and the WCF web services that it consumes. Situation: The latest version of the mobile app is always ...
0
votes
1answer
106 views

How do different technologies connect to form a web stack? [closed]

I am a little confused, is it possible to implement a front end using common languages like html, css and javascript and then do server side processing using a language of your choice, say python or ...
0
votes
0answers
43 views

Creating a user-customizable web api

Technologies: Javascript for $http call, ASP.NET Web API, MSSQL for data retrieval Web API will return array of widget objects with following properties: WidgetId, WidgetAttribute1 Bool, ...
0
votes
0answers
73 views

How to micro-ify the middle tier in a Microservice Oriented Architecture?

Just read Fowler on Microservices and definitely recommend it. A big thing that is missing from this paper/approach is how to decompose the client-tier into "micro apps". By that, here's what I mean: ...
13
votes
7answers
693 views

Why is a small fixed vocabulary seen as an advantage to RESTful services?

So, a RESTful service has a fixed set of verbs in its vocabulary. A RESTful web service takes these from the HTTP methods. There are some supposed advantages to defining a fixed vocabulary, but I ...
3
votes
1answer
117 views

How to efficiently implement this background processing chain?

I am working on an audio software that uses The EchoNest web service to identify and retrieve metadata about audio songs and I would like to have some advice on implementing a background processing ...
0
votes
4answers
119 views

Using email as a web service [closed]

I am looking for some arguments for or against a given solution. A public facing webserver hosts an aspx form and, based on user input, places the content of the form in XML within an email body. ...
0
votes
1answer
77 views

What are the reasons to execute a WebService from SQL?

I was looking at some examples on how to call a Web Service from SQL Server. And all of them show very unreadable code, that I imagine would be a nightmare to maintain. So, the main question is why ...
8
votes
1answer
242 views

how to implement idempotent webservice calls

I'm developing a wcf based solution for a webservice layer that "occasionally-connected" mobile devices will be using. The service will not be using queuing (at this stage) due to the additional ...
0
votes
0answers
57 views

When to use a message queue as a web service database?

Does it make sense to implement a message queue system such as RabbitMQ or Kafka for the purpose of storing data in a queue? For example, this could be done in order to handle things such as ...
0
votes
3answers
897 views

iOS chat application design, sending/relaying the message over to the end user

I have a design question. Let us say you were tasked with building a chat application, specifically for iOS (iOS Chat Application). For simplicity let us say you can only chat with one person at a ...
1
vote
2answers
127 views

How should I connect to my php framework to use methods written in the framework, in a framework agnostic environment?

My company runs 2 websites, a public facing website for clients, and an employee intranet. The intranet is used as a backend for employees to edit and maintain various parts of the public website. ...
3
votes
2answers
91 views

Data Access Layer with Asynchronous services like MQ

I am tasked with creating a development, design and architecture guide for a large multi-year project. I have to dictate best design practices for a number of architectural perspectives. See the ...
1
vote
1answer
175 views

A Web Service to collect data from local servers every hour

I'm trying to find a way to collect data from different servers around the world. Here are the details: There is only one single PowerShell script on servers that encrypts data (simple csv file) and ...
4
votes
1answer
47 views

How to design URIs to initate batch jobs in a RESTful service

If I want to run a job at the end of the month to calculate the commission for all the sales consultants based on the current transaction data, eg commission rate for the person, sales done in the ...
-1
votes
2answers
121 views

What was used to consume api's before webservices? [closed]

Most of the companies that offer public api these days do it through a web service. What was used before web services were popular? For example, if a company wanted to release a c# public api would it ...
0
votes
1answer
117 views

Best practise to versioning Web Service WCF

I've a web service SOAP developed with WCF, there is a best practise to versioning it? when I change the contract I don't want to update all the client's referiments but I want simply publish a new ...
1
vote
4answers
246 views

How to ensure multiple clients don't poll the server at the same time?

I am making an android app which will talk to a web service to get data. The web service has a rate limit of 100 calls per minute. Is there a way, recommended method to ensure that the app across ...
13
votes
4answers
3k views

Best practices for execution of untrusted code

I have a project where I need to allow users to run arbitrary, untrusted python code (a bit like this) against my server. I'm fairly new to python and I'd like to avoid making any mistakes that ...
0
votes
1answer
54 views

How to host a web service with dependencies on many APIs/SDKs which expose methods in different languages

A project I'm working on currently depends on several SDKs and APIs that perform identical tasks, but for different external products. For example, in an Internet of Things world we have a common ...
13
votes
5answers
3k views

Internal and external API architecture

The company I work for maintains a successful SaaS product that grew "organically" over the years. We are planning to expand the line with a suite of new products that will share data with the ...
0
votes
0answers
23 views

Reliable way to generate a token in a SOAP webservice

Legacy SOAP service here at work use a token authentication. The flow is: As first step I call the startSession method passing username (say myUser) and password (say myPWD) as parameter. At this ...
1
vote
1answer
74 views

Web-services REST security clarification

I'm newbie of web services programming and I have some problem to understand how to work authentication/security for REST WS pattern. I had read about OAuth but I haven't understand how it work in ...
0
votes
1answer
51 views

Speed up dynamic content delivery [duplicate]

Imagine a website operating from the US, providing some web services to customers around the world. Sometimes is takes up to 200ms just to establish a connection between Australia and US. It's ...
1
vote
1answer
338 views

Public API Facade with Micro Services

Consider a micro service infrastructure in which each service is responsible for one set of activities, and exposes a RESTful interface to its functionality. For example, assume a chat application. ...
0
votes
2answers
82 views

Open Source Service Discovery

I'm trying to wrap my head around this article on OSS service discovery and I'm having a tough time seeing the forest through the trees. In that article, the author poses the main problem for service ...
3
votes
7answers
242 views

Are mutliple database calls really significant with a network call for a web API?

At one of my employers, we worked on a REST (but it also applies to SOAP) API. The client, which is the application UI, would make calls over the web (LAN in typical production deployments) to the ...
1
vote
2answers
164 views

Is RESTFUL API as back-end service one of the best (or suitable) choice for Mobile App? [closed]

I have a background on .NET development, recently I was asked to code back-end service for a mobile app. I had experiences on MVC, and now I'm trying to understand more on Restful Web API. My ...
1
vote
2answers
65 views

Client / Server dependencies with Continuous Integration

I'm starting to use continuous integration for one of my projects and had some questions about structure and architecture. It's basically a multi-device webservice that is split into one server ...
5
votes
3answers
321 views

How to handle business rules with a REST API?

I have a REST API to manage a booking system I'm searching how to manage this situation : A customer can book a time slot : A TimeSlot resource is created and linked to a Person resource. In order to ...
2
votes
2answers
153 views

One codebase - lots of hosted services (similar to a basecamp style service) - planning structure

We have built a service (PHP Based) for a client, and are now looking to offer it to other clients as a hosted service. For this example, think of it like a hosted forum service, where a client signs ...
0
votes
1answer
93 views

Single database, multiple system dependency

Consider an environment where we have a single, core database, with many separate systems using this one database. This leads to all of these systems have a common dependency, which ultimately ...
0
votes
1answer
214 views

Implementing a modern web application with Web API on top of old services

My company has many WCF services which may or may not be replaced in the near future. The old web application is written in WebForms and communicates straight with these services via SOAP and returns ...
0
votes
2answers
152 views

Which pattern is suitable to send multiple type of responses through REST web service?

I have bunch of REST style web services which support XML and JSON type responses. Now I have to modify existing web services such that they provide Protobuf type of responses. Developer who has ...
1
vote
1answer
102 views

Should my internal MVC/MVVM application use Web Services for Persistence?

Just talking about internal applications or intranet web apps... At some companies I've seen their business-logic piece (Model in MVC/VM in MVVM) on one (or both) sides of a Web Service. And on the ...
0
votes
1answer
217 views

WCF vs Web API, Deeper details? [closed]

Before I continue, I just want to mention I have heavily researched and searched on this topic, but I need the opinion of people who have worked/and or have practical knowledge with regards to this ...
0
votes
1answer
85 views

X509 certificate question on WCF

My condition: A WCF service which is self-hosted and it's on a Win8 Machine. Client is a WPF Program on another machine. Then I follow the article on Codeproject about how to set X509 certificate ...
1
vote
1answer
148 views

Should I separate a web api from the webserver?

Lets say I'm building a site similar to this or Quora (or some arbitrary blog-like site). I need a real-time component that will be using web-sockets/long-polling to notify the user of new posts, ...
0
votes
1answer
89 views

Problem : Certificate for multi Clients of WCF

If My WCF service have big number of clients through the Internet,then whether should all of them share the same Client Certificate(X509)? And if their certificates should be unique , what should I ...
1
vote
1answer
815 views

synchronization web service methodologies or papers [closed]

I am building a web service (PHP+JSON) to sync with my iphone app. The main goals are: Backup Provide a web view for printing / sorting, manipulating. allow a group sync up and down. I am aware of ...
0
votes
0answers
445 views

How do I access a web service from Windows 8.1 mobile app?

Over the last few months, I've been making a Windows Phone 8.1 Runtime application. I have little experience with this (although a decent amount of other programming experience), but I've managed to ...
2
votes
1answer
68 views

Web Service REST clarification

I'm new to web-service programming, and I'm unsure of a few things. I know that REST web-services can be used to interact with the system like this: to retrieve a user: GET /user?id=1 to retrieve ...