Questions tagged [web-services]
A "web service" is a software system designed to support interoperable machine-to-machine interaction over the World Wide Web.
96
questions
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 ...
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 ...
1
vote
1
answer
275
views
Web Service Handler
My webservice class:
...
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 ...
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....
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 ...
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 ...
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 ...
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.
...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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 ...
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 ...
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. ...
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?
...
2
votes
2
answers
7k
views
Async operations in WebMethod
How can I improve this code, without to return async Task?
...
2
votes
1
answer
9k
views
Web service - getting data from SQL and adding to Object
I have created a class called CommandMessages
...
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 ...
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 ...
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 ...
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 ...
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 ...
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....
0
votes
1
answer
3k
views
Upload document to mongodb
Simple post and download web app in Bottle:
server.py
...
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 ...
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
...
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 ...
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 ...
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:
...
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 ...
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 ...
4
votes
3
answers
456
views
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.
...
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 ...
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 ...
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 ...
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
...
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:
...
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 ...
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.
...
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 ...
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.
...