Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [web-services]

A "web service" is a software system designed to support interoperable machine-to-machine interaction over the World Wide Web.

2
votes
0answers
8 views

Simple REST Base Web Server with Unit Tests

I am building out a simple web server in Go. My goal is to expand on this framework in a different application I am building. Here is my github repo https://github.com/jmacnc/gowebserver Is what I ...
2
votes
1answer
35 views

Gin framework project with an endpoint to return a list of users based on their score

My relevant work experience is with Java (mostly web development with Dropwizard/Spring) so I can not avoid using the same practices as I do in a Java project. The project is there but I am going to ...
4
votes
0answers
33 views

Decorate a python function to work as a Google Cloud Function

I wrote this for a class project, the backend for this dog voting website. I noticed duplicate code among multiple functions I was writing to be deployed as a cloud function: they all were wrapped in ...
3
votes
1answer
108 views

Java Messenger data transmission

This is a very simple concern, could somebody take a look at a few lines of my code? I'm writing a simple Java multi-user messenger, it is structured in a desktop client with a Swing GUI, a java ...
6
votes
2answers
661 views

Network Interface Object

I wrote a Network... thing (not really telnet); and it's pretty simple. No options, just straight I/O. It seems programs get so bloated easily. ...
3
votes
1answer
67 views

Web application response message API

The following excerpt is part of a web application microservice framework. The goal of the provided module is to define a base class Message that may be configured ...
4
votes
1answer
572 views

Find currency exchange rates

Description: Design a service to fetch exchange rate from a remote resource and then calculate the exchange rate for each currency pair. The remote resource contains the exchange rates of ...
2
votes
0answers
110 views

Determine the country by an IP

EDIT: I have updated the code, if you have comments about the previous version of the code, please do post them anyway. The task is to determine the country by an IP. Provided programme queries two ...
2
votes
1answer
304 views

Web Service that gets data from multiple tables in a database using EF Core Database-First approach

I have never created a web service before. I followed most of this Pluralsight tutorial to give me an idea of how to create one using ASP.NET MVC along with .NET Core 2.0 and Entity Framework Core. ...
4
votes
1answer
232 views

User registration - Controller, service and repository layers in Spring framework

I'm writting a registration feature currently and I I'm confused how to divide logic between layers. Can you review this code and tell if it's good way to do? In try-catch block I publish event to ...
1
vote
1answer
3k views

Parsing SOAP messages from a web service

I'm consuming an ASMX service with SOAP messages. Since Xamarin doesn't support SOAP 1.2, I'm writing the Web requests manually. I'm sending a user/password to retrieve the user ID. A successful ...
0
votes
1answer
3k views

Map DTOs and Models within the Service Layer due to a missing Business Layer

The following is the story of a UserCredentialsDto that arrived at one of my endpoints and how it finds its way through all the layers namely REST Layer Service ...
1
vote
3answers
2k views

Simple web service call with retries

This code is actually pretty basic. Basically, I'm doing a large number of web calls. I currently do up to 3 Web Service calls simultaneously, one of which is below. There were 3 errors I saw in ...
0
votes
1answer
95 views

Pool of two objects for a web service

I am creating a web service that uses a component I've licensed that is restricted to two concurrent instances at any one time. Creating a new instance of the component takes a long time (seconds) so ...
1
vote
0answers
109 views

Java HTTP request

I have this working code, but I wonder how I can make it better. ...
1
vote
1answer
102 views

Refresh webpage on change in folder

I want to refresh my web page every time a file is uploaded to the folder. I have a web service written in flask having the following handler ...
1
vote
0answers
862 views

Asset management system

I'm relatively new to developing and I'm mostly self taught so a lot of what I know simply comes from googling & figuring things out from there! That being said I've put together an ASP MVC ...
3
votes
1answer
148 views

Python CGI front-end for web service to perform machine translation

I am trying to optimize this python script that is used to process web requests for machine translation. The actual translation executable that is called is quite fast. Also, the perl scripts that are ...
4
votes
1answer
548 views

Android “ServiceListener” class for listening web services

I'm new in Android, Java and the whole object-oriented programming, I'm trying to develop an app which needs to listen on many web services (PHP scripts written by me returning a standardized JSON ...
2
votes
1answer
5k views

Implementation of a singleton HttpClient with generic methods

I need advice for this implementation that I made for a service access portable class library referenced to Xamarin.Android and Xamarin.Ios projects. For now, it works fine, but I have doubts about ...
2
votes
0answers
3k views

Simple API testing framework for testing of SOAP xml requests

I have a need to try to automate the testing of a large Web Service with an XML API interface. The framework takes the form of a Mavenised Java project. The usual maxims apply: must be highly ...
1
vote
0answers
36 views

Service Connector abstraction for Ruby

My Rails apps need to connect to several external services to perform some functions. Now, I realize that some of the services I need might also be reused outside Rails (like in Capistrano ...
3
votes
1answer
337 views

Decoding and encoding JSON for a PHP service

I am writing a PHP service which will listen for JSON requests (made using jQuery) and will return the JSON responses. The whole template for such services (there will be 5) I have shortened into ...
4
votes
1answer
65 views

Securely convert and return a user selected file

I designed a Python3 webservice which gets a file name, looks for this file in a local folder, converts it using an external software, then sends the converted file to the user. For this example, the ...
1
vote
1answer
277 views

WCF data service class

I have this WCF data service class and I believe it is doing a lot: ...
3
votes
1answer
69 views

Brightness Web Server

This is the first real program I've written in Go so have at it! I wrote it because I use a tiling window manager that doesn't have any brightness control functionality (at least not that I know of). ...
1
vote
0answers
316 views

Run a potentially long running application from within a Python webserver and return different results depending on whether the application finishes

I want an API on a Flask/Gunicorn webserver to make a call to a separate, potentially long-running java application. If the java application finishes before the Gunicorn timeout, Flask should return ...
2
votes
3answers
124 views

Automating New User Creation With C# Web Service

I created a web service which can be called from a form to add new users to the system. The final service will add users to Active Directory and Exchange in the required format (please note that ...
0
votes
1answer
974 views

Accessing SharePoint's Managed Metadata TermSets Locally and Remotely

I have written a small program which has 2 main classes : ServerSideMMS: This can access the SharePoint Managed Metadata Services, but only from the server which ...
3
votes
0answers
1k views

Serving images from a Raspberry Pi camera over HTTP

I have a Pi with a camera module that I control with Python. I created a web server with web.py that allows me to make HTTP requests to the PI to retrieve an image. There are two optional parameters ...
3
votes
2answers
272 views

Middleware for a client

I'm developing a middleware for my client and it's found that there are some delay when executing the process. We are currently investigating what's the exact causes of the issue, from architecture ...
4
votes
1answer
126 views

Script to periodically Identify and act on public IP address

This script checks what the current public IP address is. The plan is for this to run every 5 minutes or so, and then change some host file configuration depending on whether we the IP is identified ...
2
votes
0answers
52 views

Signing timestamped API queries

The following code should prove to offer sufficient security for public API so my main concern is about design flaws in process. It is meant to describe the process and eventually get included in ...
8
votes
1answer
4k views

Simple Multi-Threaded Web Server

Need a way to test a web crawler. Threw together this web server that will replay previously saved pages from a real web server. Headers ...
5
votes
1answer
4k views

Uploading data to Google Drive

I have created a project which uploads data from my local storage to my Google Drive account using the Google Drive API. You can read about how to run it on its Github repository. The main script <...
0
votes
2answers
183 views

Command line google searching

I have a bash script that is meant to start a google search from the command line. I am also looking to implement a way of getting source code for the search page possibly through a subscript. This is ...
1
vote
0answers
767 views

Mobile app backend using Gin and Gorm ORM

I'm developing backend for my mobile app by using gin-gonic and gorm ORM (mysql). But I'm not sure api and db handle huge amount requests if clients increased. for example I'm using my db struct as ...
4
votes
1answer
1k views

Simple Python chat

I am working on a simple console chat in Python. I started from this Winforms application, removed all the forms (so that the chat could run on Windows and Linux) and did some refactoring (the "click ...
1
vote
0answers
70 views

Geocoder Webservice client

I have been writing/fixing Java code, but just getting into object design/architecture. I am writing a webservice client in Java to integrate a commercial Address Validation Geocoding Webservice into ...
5
votes
1answer
151 views

Proxy web service which handles three different input structures

I'm a newbie and I'm new to C# (thus statics and copy-paste) and I'm painfully aware that this code smells. I'm trying to implement a web service that handles a similar pass-through logic with three ...
0
votes
1answer
244 views

Web Service Handler

My webservice class: ...
3
votes
1answer
3k views

Converting code for javax.xml.soap.* to webServiceTemplate

I am able to send requests to the web service using javax.xml.soap.*. I would like to convert the code to use webServiceTemplate....
13
votes
1answer
20k views

Data transfer objects vs Entities in JAVA REST server application

I am quite new in web application back-end development and I have an architectural question. I have defined Hibernate entities in my application and I want to send ...
3
votes
2answers
41 views

REST service to list new, continuing, and terminated subscribers during some period

I have a use case which says: Your REST service will consume a JSON object that contains a list of emails for subscribers at the start of the subscription period, and a list of subscribers at ...
3
votes
2answers
311 views

FreeDNS update script

I tried to write a script which takes a list of URLs, checks if their FreeDNS record points to the current IP, and updates the record if not. Intended use is that the script will be run periodically ...
2
votes
1answer
501 views

Web service handler class

I've implemented a class to perform a couple of tasks through a web service. I'll be really keen if you can take a look at, give me your professional opinion. ...
2
votes
1answer
7k views

Authentication system - AngularJS & Ionic Framework

I am building a small mobile app using ionic framework and angularJS. It will consume a Restful Web Service that requires authentication (User token). This means I need to keep my users token by ...
5
votes
1answer
628 views

Small web service using scotty

I'm writing a small tool that allows to manually protocol dial-in-actions. That means a user can say he dials in to a site or he dials out of a site. (What this means is not important for the sake of ...
3
votes
0answers
759 views

Web service for Android clients to store images

I wrote this code for Android server interaction. The way I built the client was an onSharePreference of strings includes photo encoded to a base64 ...
3
votes
1answer
148 views

Web Service implementation on the client

I will be creating a web service as part of a group project for university, which will be developed using Java within the Eclipse IDE. Having no prior experience using web services, I managed to ...