C# WCF: Get Requesters URL

I have a C# WebService called via ajax (javascript). Is it possible to retrieve the requesting URL? Example: test/index.html calls the WebService via "GET". Can I retrieve this calling URL (test/index.html) on the server-side? Sorry I am new to th...
more »

2017-02-20 15:02 (1) Answers

Post restful method java error

Can anyone tell me why this error? Server Log: StandardWrapperValve[ws_site.ApplicationConfig]: Servlet.service() for servlet ws_site.ApplicationConfig threw exception java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line ...
more »

2017-02-20 14:02 (3) Answers

org.springframework.web.client.RestClientException

I get the following exception when I try to get User from my Web Service. org.springframework.web.client.RestClientException: Could not extract response: no suitable HttpMessageConverter found for response type [class com.shopping.model.User] and co...
more »

2017-02-19 23:02 (1) Answers

Rest WebService for performing business operation

As I've read, Rest is used for create/update/delete/get of Resource using PUT/POST/DELETE/GET method. Now Let's say, I've to expose a service which take 'price' and 'date' as request and it calculates 'service tax', 'sb cess', 'krishikalyalcess' on ...
more »

2017-02-19 03:02 (2) Answers

Consume REST Web Service from relative uri

Is it possible to consume a RESTful web service from a relative uri, instead of an absolute? When I run the following code, I get an exception java.lang.IllegalArgumentException: URI is not absolute. RestTemplate rt = new RestTemplate(); User x = r...
more »

2017-02-17 21:02 (1) Answers

Rate limiting signup API

We are are small start up and we are using SailsJS(which sits on top of NodeJS) on our backend. Ours is a API driven architecture. I want to implement rate limiting for most of the API's. I want to start with a small use case for Signup. Signup is a ...
more »

2017-02-17 20:02 (1) Answers

REST: GET calls

I am reading a book on REST. It recommends for GET requests, the method name should be in HTTP method header and any parameters required to retrieve the data should be in the URI. Example: www.flickr.com/search=penguins Now, in many cases, a number...
more »

2017-02-16 11:02 (2) Answers

https rest webservice call using HttpClient

I am using Apache HttpClient 4.5.3 version and trying to make a REST call to a https url and seeing the below error. What am I missing log4j:WARN No appenders could be found for logger (com.qssinc.automation.common.utils.TestResultLogger). log4j:WAR...
more »

2017-02-14 23:02 (0) Answers

Implement generic abstract jaxrs service

I'm struggling on implementing a generic abstract jaxrs service without duplicating several jaxrs annotations. So, for example, here is my service and entity structure: AbstractEntity.java import javax.xml.bind.annotation.XmlElement; public abstr...
more »

2017-02-14 19:02 (0) Answers

SOAP Conversion for GraphQL

Can GraphQL communicate with a SOAP service directly as a data source, or does a SOAP-to-REST conversion layer need to be built? If so, what technology (language, framework, OS, etc.) could/should be used to translate SOAP messages for the GraphQL la...
more »

2017-02-12 22:02 (1) Answers

Facebook services architecture?

Trying to understand the below high level Facebook architecture in context of very simple feature where a Facebook user upload photo or posting the status on his time line Per mine understanding here will be flow Cluster > Specific Webserver &...
more »

2017-02-12 15:02 (0) Answers

converting non Rest to Rest api

I am writing a Rails server that provide REST api interface. After many days I started it, a new requirement came up: there is the need to support a legacy android app client that make calls in a non REST way, so totally incompatible with the REST S...
more »

2017-02-10 16:02 (1) Answers

how to call js/jquery webservice

I have a web service http://itmamhosting-001-site16.itempurl.com/lsc/GenerateCertificate.asmx/GenerateCertificate?Name=saif It has a Url inside it : How to call it using jQuery and take the picture url from it and save it inside a variable I t...
more »

2017-02-09 08:02 (0) Answers

Filter remote results with pagination

I have a REST API which supports pagination and filtering, like GET /jobs?page=1&count=10&language=php&country=!UK Host: mywebservice.com where 1 is the number of the page and count is the number of results per page. The problem is, I...
more »

2017-02-08 14:02 (1) Answers

Web API vs. RESTful services

I have been asked about the difference between Web API and RESTful services and that is also an interesting question to me. From my point of view, the only possible difference between RESTful service and Web API can be considered as that RESTful serv...
more »

2017-02-05 11:02 (2) Answers

Call WS Rest Java with AngularJS

I've a problem with call WS Rest Java. I call the WS but the parameters isn't passed. My java code: @POST @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_FORM_URLENCODED) public Response setUser(@FormParam("name") String name...
more »

2017-02-02 20:02 (1) Answers

Spring REST and Future tasks

I have a REST service endpoint returning a List<Offer> as json. This service is calling different backend for each Offer. I'm aware it is possible to create an Async Rest service. However, I would like the client to use any Offer as soon as it...
more »

2017-01-30 09:01 (1) Answers

Limit Jackson REST API's calls

I'm building a REST Api using Jackson. As many standard APIs do, this is an interface between a front-end and various resources (databases and processing engines on different environments). GUI -> REST API -> Databases, HDFS, Hive etc. What is a w...
more »

2017-01-29 20:01 (1) Answers

Restful Webservice in codeigniter with API key

I am doing my project in codeigniter 3+ and I have a table to store api key which I generate from dashboard. Then user places the html code from his dashboard on my site (example.com) <div name="api name" data="Api key" sitekey="saltkey"><...
more »

2017-01-29 13:01 (0) Answers

Offline web application CRM using Laravel

Guys I have Offline Laravel CRM that will manage part in a company. This project will be only on one PC in the company and it shouldn't be online or on any other PC. Problem I don't want to make the employee that uses this CRM to open XAMPP or...
more »

2017-01-29 10:01 (1) Answers