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

learn more… | top users | synonyms

-2
votes
0answers
27 views

WebService in Java - why code does not execute? [on hold]

Here is my sample code. It does barcodes scanning. Function sendJson should call webService. Code runs but in Apache log I see NOTHING. For some reason web service is not called. What I'm doing wrong? ...
4
votes
3answers
57 views

Web Service and Message Queue

We're looking at creating a web services/REST API layer that will be consumed by web and mobile clients. To make the solution more robust I was considering putting the commands from PUT, POST, and ...
0
votes
2answers
45 views

Web developer sending port in web service from server to client

I'm working on a project where I have two websites (client and a server). I've opened web service and I'm trying to "send" a picture from my server to the client [WebMethod] public string ...
0
votes
1answer
38 views

Calling RESTful service from browser and handling 4xx class responses

I have a resource called Logins, and I invoke a GET via AJAX from the browser. The current behavior is to return a 404 when the specific login cannot be found. I'm using this to check whether a ...
1
vote
1answer
63 views

What is a simple, correct and secure way of executing code stored in database?, that is also sandboxed

Webhooks can be a very powerful thing when you try to automate or integrate software, however, handling their deployment in a controlled environment can suck in terms of security and deployment alone. ...
2
votes
1answer
86 views

Is it bad to use POST only on an API?

I'm about to develop a new API for our website. Part of the design I've considered to use the POST and GET methods but after reading some security stuff I realise that GET is a bit less secure(i.e. ...
1
vote
5answers
93 views

How much data from a web service should I expose in a library?

I'm working on a personal project, a library that can access the weather forecasts and other weather related data from it. However, a lot of the returned data is sometimes quite redundant or simply ...
0
votes
1answer
42 views

Domain names vs URL path for web services

A team at the office is developing web micro-services intended to support sales sites and mobile apps with total combined orders count of less than 100K (not sure how much less but greater than 10K) ...
0
votes
1answer
36 views

What is the best way to expose services to mobile devices? [closed]

We are working on providing services to mobile devices(Android, iOS and Windows). These services mostly return data and nothing OS or any programming language specific. We are currently planning on ...
0
votes
1answer
37 views

Authenticating users across multiple web services

User details (name, address, etc) are stored across multiple sites that are vendor specific. For example, vendor A holds information concerning room bookings while vendor B holds information specific ...
-1
votes
2answers
59 views

Should back-end (services) and front-end be different projects? [closed]

As the title asks, is it a good idea to have separated projects (and repositories) for the back-end and the front-end of the application or website? It seems like a good idea, but then again I don't ...
1
vote
0answers
52 views

How to protect a public tracking API?

Let's say company X has websites A, B, and C. It would like to track how people are visiting them in ways that Google's Analytics and other services can't. So we company X provides a web API to track ...
4
votes
2answers
204 views

Exception versus return code in DAO pattern

After reading a lot about the abusive use of exceptions in Java and how you should let an exception bubble up through the different layers of an application, I've come to a point where I don't know ...
1
vote
1answer
68 views

RESTful basic http atuhentication credentials

I am currently working on web application which has front-end, and back-end. Back-end has RESTful architecture, or something that looks like RESTful to me (this is my first attempt to make something ...
0
votes
2answers
170 views

Web API alternatives to save a file to server's file system

We have a SQL Server 2012 Enterprise edition and an ASP.NET Web API 2.2 web service. The web API is the public interface for the database. We need to end a production order doing: Changing a value ...
-1
votes
1answer
59 views

How to handle authentication to web service from mobile?

I'm making a mobile application, and I use JSON Web Token Authentication (JWT Auth), but I have three questions about: Should I use refresh-tokens or non-expiring access tokens? In case I use ...
1
vote
2answers
134 views

RESTful Backend - How coupled should my back end and front end be?

I'm creating a web application with a front end client written in angular as well as a back end that I'm writing in Django (there are reasons I picked the frameworks but they are irrelevant to my ...
1
vote
1answer
46 views

What is really a resource?

I'm starting to study about web api's and REST and I'm having a hard time to understand what is really a resource. Basically the book I'm reading says that a resource is a conceptual mapping to one or ...
0
votes
1answer
28 views

Image uploads - preoptimize with CDN or host on same machine?

I'm working on a personal blog that will be used for reviewing various goods/services and as a dev journal. I'm writing this in Angularjs and Nodejs as a learning experience, but I plan on using it ...
4
votes
3answers
120 views

Pattern for checking online service availability

I'm not sure that this is entirely on-topic, but I'll try to make it so. I have an online service (API) and an Android application that uses it for all actions in the app. At the current moment, ...
2
votes
1answer
170 views

Design Pattern to parse array of objects

What is considered a good practice to parse an array of objects returned by an API? I am creating a RESTfull web service and a client which is meant to work with this service. One of my REST ...
0
votes
1answer
21 views

Securing service calls

I have a ServiceCallContext object that must be passed in as the first parameter of any service call. I would like to put a User object on the context object but I know I can't force the caller to ...
2
votes
1answer
79 views

SOA principles, encapsulation and autonomy

We are developing multiple web services in C# using WCF, but we´re new doing it. So, for what we have read and learnt, this is our approach: We have a class library that we called CommonLibrary ...
2
votes
1answer
60 views

Integration between services in a SOA

Assume we have a Bounded Context for Inventory (InventoryBC) and another one for Shipments (ShipmentsBC). These 2 BCs need to communicate together. They are hosted on 2 different services on different ...
0
votes
2answers
217 views

Saving to file before storing into a database in a REST service

A mobile back-end I am building should receive a larger amount of data (some sensor recordings) from an Android phone. The phone does not have much use of it so it was most efficient to store the data ...
1
vote
1answer
224 views

.NET WCF: Persistent connection or Open/Close as needed?

I have a .NET WCF web service currently running in production right now. I would say 95% of the time it works flawlessly and as intended. However; there are times when I am throwing an exception that ...
4
votes
2answers
98 views

Is it a good idea to have a database row that represents an unknown value within a system [closed]

We have two systems, System A imports a list of sports events from system B, it only wants to import the events we will be providing live data for, the filter used to hide events that we are not ...
1
vote
0answers
122 views

Separation of web server and stateless REST API

Currently, I have a single Node server that provides both (a) stateless API routes returning JSON, and (b) session-based web routes. My API routes and web routes have started sharing a lot of code, ...
-1
votes
1answer
50 views

Send Emails Via APIs or Code?

I am Using SendGrid to Send Emails to my Users. There are two ways to send emails via SendGrid. 1 - Via APIs 2 - Via Program/Code I want to know which one is More Secure and efficient way. I am ...
0
votes
2answers
684 views

Clients connect to WCF or SQL Server

I was wondering what is the prefered way of accessing data from a server in a client application. The data will be stored on the server in an SQL database and I have previously used the following 2 ...
0
votes
1answer
70 views

Database vs. server-sided scripting language [duplicate]

To keep my question short and to the point, consider this: $relation = $mysql->query("SELECT relation($loggeduser, $requesteduser) AS a")->fetch_assoc()['a']; if ($relation != BLOCKED) { ...
1
vote
0answers
43 views

Multiple API Calls on Web Server

I am trying to build a Tumblr Site that makes API calls to Social Network sites and return data and render on the Tumblr Site. And the thing is Tumblr doesn't allow PHP on their HTML Editor. So my ...
20
votes
3answers
3k 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
423 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 ...
3
votes
1answer
135 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 ...
3
votes
2answers
105 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 ...
1
vote
0answers
38 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
119 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
88 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
151 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: ...
0
votes
4answers
132 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
238 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 ...
0
votes
0answers
95 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 ...
8
votes
1answer
335 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 ...
3
votes
2answers
178 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 ...
5
votes
1answer
81 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
160 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 ...
3
votes
1answer
136 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
1answer
485 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
291 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 ...