byte[] as an input for a rest web service

having problems with the following. i can't seems to pass in the byte[] created from a file into a web service. when i execute my client code, the server log throwing nullpointer for the pdfFile byte[]. please assists here. Server side: @RequestMap...
more »

2017-10-04 07:10 (1) Answers

Parallel HTTP requests in Angular 4

I am building a simple weather app that uses a REST service to display current weather data in any city entered by the user. The dashboard page should display the current weather in ~5 cities specified by the user. So my question is - given an arra...
more »

2017-09-15 23:09 (2) Answers

Rest Server won't consume POST Request

my problem is quite basic and i am stumped as to where i am doing it wrong. I want to sent a JSON from a Javascript client (website) to a Java REST Service. I read quite a few examples and thought i implemented it correctly but it seems i am missing...
more »

2017-09-04 10:09 (0) Answers

Why make a new Promise?

The tutorial I follow has this function (where Hero is a class and HEROES an array): @Injectable() export class HeroService { getHeroes(): Promise<Hero[]> { return Promise.resolve(HEROES); } } Now it wants to simulate a slow connecti...
more »

2017-08-29 11:08 (3) Answers

Array of parameters for GET request

Example: We have below operation: GET /employees I have to have functionality to allow filtering using multiple names as parameter. I represent it something like below: GET /employees?empNames=xxx,yyy,zzz But, now I don't have a parameter call...
more »

2017-07-26 18:07 (0) Answers

JHipster app with no database

[J]Hipsters! The 5/16 section on JHipster steps is mandatorily forcing me to choose a type of database, although I'm running another mock-service project (a SpringBoot app running using gradle) to access the database because of security reasons. So...
more »

2017-06-18 15:06 (1) Answers

Typescript generic service

I'm new to typescript and angular2/4 and I'm building a single app that have two basic entities which is Car and Driver and all I do is to list them with an API call. The problem I'm facing is that I have code redundancy for each CarService and Driv...
more »

2017-05-23 10:05 (2) Answers

Consuming Secure rest services in Spring

I have to consume one secured rest service where i initially pass credentials to service and it will return token,for subsequent requests i have to pass that generated token.How to implement these functionality in springs? ...
more »

2017-04-28 07:04 (1) Answers

Java Web service security

I am working on implementing Java web service security .I am using Soap handlers .I need help with authenticating the username and password that received on provider side from the soap header. What does the provider side handler do. Please do let me...
more »

2017-03-20 17:03 (0) Answers

monitor session change event in c

I try to build a service that monitor user sessions activity. currently focusing on logon and lock of user. i am using example my code : #include <windows.h> #include <tchar.h&...
more »

2017-03-15 09:03 (1) Answers

Symfony2 send email from service

I created the next class: //src/AppBundle/Services/RegisterMail.php namespace AppBundle\Services; class RegisterMail{ protected $mailer; public function __construct($mailer) { $this->mailer = $mailer; } public functi...
more »

2017-03-14 17:03 (2) Answers