Questions tagged [web-services]

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

Filter by
Sorted by
Tagged with
5 votes
1 answer
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 ...
RUser4512's user avatar
  • 1,033
6 votes
1 answer
157 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 ...
prot's user avatar
  • 161
1 vote
1 answer
275 views

Web Service Handler

My webservice class: ...
Mina Fawzy's user avatar
2 votes
0 answers
510 views

JAX-WS client to accept server certificates

I am building a JAX-WS client with a GUI that connects to a server by accepting self-signed server certificates (when it uses HTTPS). The accepting of the certificates is not automatic, it is similar ...
agenthost's user avatar
  • 121
3 votes
1 answer
4k 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....
Daniel Newtown's user avatar
14 votes
1 answer
21k 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 ...
RooMan's user avatar
  • 275
3 votes
2 answers
48 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 ...
Himanshu Yadav's user avatar
4 votes
2 answers
430 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 ...
Superbest's user avatar
  • 413
2 votes
1 answer
617 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. ...
tribet's user avatar
  • 481
2 votes
1 answer
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 ...
NMO's user avatar
  • 205
5 votes
1 answer
777 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 ...
Tobias Hermann's user avatar
3 votes
0 answers
763 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 ...
sivi's user avatar
  • 181
3 votes
1 answer
153 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 ...
Rhys Hamilton's user avatar
54 votes
2 answers
87k views

Single instance of reusable HttpClient

I've got this method and I realize that an instance of HttpClass is going to be created for each call to it. While working seemingly OK, I'm considering moving it ...
Konrad Viltersten's user avatar
4 votes
2 answers
966 views

Create User profile with separate social media data

I am creating user profile logic for a blogging platform. I have the UserProfile model and then two separate models, ...
aaronmallen's user avatar
3 votes
2 answers
3k views

Implementing WCF method that supports either string or object as a method parameter

I have the following contract in a WCF-based web service: public List<string> GetAllPossibleQueryEngineHostNames(Instance instance); Obviously, I can call ...
Mike Christensen's user avatar
1 vote
1 answer
577 views

Async function with slow web reference(web service) slowing down webpage

Is there a way to make a threading/async post with a web reference not slow down the whole website just because the web reference takes a long time to return a response? I have a send email function ...
HenrikP's user avatar
  • 111
3 votes
1 answer
342 views

Model Implementation That Calls RESTful API

I am working on a ground-up rebuild for an app that has a relatively simple purpose. Users can view/favorite entities that are backed by a RESTful API. I own both the client code as well as the API. ...
natenash203's user avatar
1 vote
1 answer
429 views

WebService async WebMethod

How do I simplify this method? Is handling an exception in this method a good idea? ...
artesdi's user avatar
  • 31
2 votes
2 answers
7k views

Async operations in WebMethod

How can I improve this code, without to return async Task? ...
artesdi's user avatar
  • 31
2 votes
1 answer
9k views

Web service - getting data from SQL and adding to Object

I have created a class called CommandMessages ...
user3284707's user avatar
6 votes
2 answers
4k views

Web service getting value using LINQ from queue table in SQL database

As a test of my C# skills, I have been asked to create a simple web service which will take a message from a queue table in a SQL database and send it to a web application when a button is pressed on ...
user3284707's user avatar
3 votes
1 answer
990 views

Small, embedded full-stack web server

I did this project last year, under some interesting constraints: it's a thin webserver which lives in a Raspberry Pi, which is networked to an embedded system in an industrial sign which is running a ...
LiavK's user avatar
  • 598
38 votes
5 answers
2k views

First Time HTML5/CSS Site

I am working on my first HTML5/CSS web site and, like all of my first-time projects, they end up cumbersome, crude, and hard to work with when changes need to be made later in the life cycle. I am ...
Neggly's user avatar
  • 535
4 votes
1 answer
285 views

Graceful JavaScript fallback for external web service failure

I use the src.sencha.io service to resize images on the fly according to device width, saving lots of bandwidth on mobiles etc. Sometimes the service fails randomly with a 503 error, so a fallback is ...
Josh Harrison's user avatar
8 votes
1 answer
4k views

Web service proxy that switches endpoint URLs in the event of a TimeoutException

I am creating a service (FaultTolerantCommunication) that wraps a call to a (web) service. Its responsibility is to switch the endpoint URL in the event of a ...
Sam Leach's user avatar
  • 295
3 votes
1 answer
3k views

Call to external web service

The architecture is showing a call to an external Web Service which is called by me. Then I will expose the data using WCF to be callable from another WCF client. But I really don't like how it's done....
Revious's user avatar
  • 503
0 votes
1 answer
3k views

Upload document to mongodb

Simple post and download web app in Bottle: server.py ...
Jeff's user avatar
  • 459
3 votes
4 answers
11k views

Android AsyncTask, HTTP Request and Parsing

I am working on Android applications for last 2 years and about 80% applications I have developed involve web-services consumption followed by some sort of XML or JSON parsing. Initially, when I had ...
Khawar Raza's user avatar
1 vote
1 answer
13k views

Best practice to upload files on server using Rest Service

I am using building REST services for file upload on the server. Here is some code of that ...
Sachin's user avatar
  • 119
6 votes
2 answers
484 views

Synchronization with remote web service

I am writing a method to synchronize the local Core Data entities with a remote web service (in this case, Parse.com). To update changed or created objects, I fetch all where the ...
Sebastian Wramba's user avatar
1 vote
1 answer
1k views

Review of my PHP Wrapper around Third Party Soap API

I have written a wrapper for Soap based 3rd party web service. https://gist.github.com/veganista/bd940750d9e240e63b89 I'm pretty happy with it so far (I think, anyway). It's only a small sub-set of ...
veganista's user avatar
  • 121
2 votes
1 answer
1k views

Avoiding Duplicate Boilerplate Code in WCF Service

I'm responsible for maintaining a web service project in c#. I have one service class with a bunch of methods that look a lot like this: ...
Brian's user avatar
  • 433
1 vote
1 answer
8k views

PHP "web service" and jQuery ajax

I've been writing classic ASP.NET web services for a while now, and this is my first time writing a PHP based web service. I'm rather new to PHP as well. In ASP.NET, you directly call the web method ...
Abijeet Patro's user avatar
3 votes
1 answer
715 views

Synchronization-Thread with Server every 5 secs

I have a server-client environment, where the client connects and synchronizes data with the server every 5 second. For synchronizing I use a background thread on the client which works fine, but on ...
user30345's user avatar
4 votes
3 answers
456 views

Is this a good controller?

...
user2136883's user avatar
1 vote
3 answers
9k views

Calling restful web services efficiently

I need to use this code to fetch data from web service and show them in a site properly but after I request for the webservice I am unable to load them fast. Site is loading very slow. ...
user2346978's user avatar
18 votes
2 answers
87k views

Consuming an ASP.NET Web API call in an MVC controller

In a new project I am creating for my work, I am creating a fairly large ASP.NET web API. The API will be in a separate Visual Studio solution that also contains all of my business logic, database ...
ledgeJumper's user avatar
2 votes
2 answers
6k views

Payment application database

I would really like some advice from any DB gurus who have a few minutes free. After doing some reading and playing with sqlfiddle over the weekend I have constructed this PostgreSQL schema and it is ...
John Handcock's user avatar
6 votes
1 answer
17k views

Web API and Stored Procedures

I am building a web service that gets data via Stored Procedures from a db and provides the result as JSON. The solution is built as a MVC 4 Web API project. I have to retrieve the data via Stored ...
Richard Junestrand's user avatar
4 votes
2 answers
2k views

Authentication for a Flask API

I've written a couple of functions to check if a consumer of the API should be authenticated to use it or not. Have I done anything blatantly wrong here? Config ...
Chris's user avatar
  • 185
4 votes
1 answer
23k views

ASP.NET Web API HTTP GET with optional parameters

Writing my first ASP.NET Web API web service. Still learing the power of Linq as well. I feel like there is a more ideomatic way of doing this: ...
bejumi's user avatar
  • 43
2 votes
1 answer
1k views

Using XML from web service with switch

Very simple requirements here: connect to web service check if account number exists if it exists update it if it does not exist create the account I have accomplished this with the code below I am ...
mtnwk's user avatar
  • 93
3 votes
1 answer
2k views

Is this too long for a web request?

This is from a C# library I'm writing that checks for updates through a PHP script. ...
Kian's user avatar
  • 133
2 votes
1 answer
526 views

Webservice methods using EclipseLink and database entities

I am wondering if this is a good and correct way to write the implementation of two web service methods (get/set methods). The setPerson method can be called from ...
Rox's user avatar
  • 121
2 votes
1 answer
307 views

Web service to add a phone number with SMS validation

I'm new to Clojure. How can I make this more idiomatic Clojure code? Among other things, there are three (do) blocks and I don't think using (def) as many times as I do is a recommended idea. ...
Kevin Burke's user avatar

1
2