Browsed by
Month: December 2017

Difference between SOAP and REST Web services

Difference between SOAP and REST Web services

Difference between SOAP and REST Web services: SOAP Web Service:   Simple Object Access Protocol XML Based. Follows JAX-WS (JAX Web services) specifications. Two types of SOAP’s are RPC Style and Document Style. WSDL file should be shared from service side to generate the client executable code SOAP protocol helps to transfer the data between client and server. Input data should also be passed through XML only.   REST Web Service:   REpresentational State Transfer XML/JSON(JavaScript Object Notation)/Text Based and JSON…

Read More Read More

525 total views, no views today

How to import maven spring boot project in Eclipse / STS ?

How to import maven spring boot project in Eclipse / STS ?

How to import maven spring boot project in Eclipse / STS ? Here I am using spring tool suite to reduce the additional configuration required for spring projects with Eclipse. I highly recommend you to download and use spring tool suite if you are going to develop any projects in spring framework. You can download spring tool suite from here I hope you have running spring tool suite / eclipse. Let’s start with importing spring boot maven project and see…

Read More Read More

588 total views, no views today

Restful Web services with Spring boot Simple Example

Restful Web services with Spring boot Simple Example

Restful Web services with Spring boot Simple Example This post is aimed to give understanding about web service with spring (through spring boot) for beginners.   Steps to Create a simple restful web service: 1. Create a normal class and add @RestController annotation. @RestController public class GreetingController{ }   2. Create a method and add @RequestMapping(“/greeting”) annotation. Here /greeting refers the url endpoint to be used to hit and get the response from this method. @RestController public class GreetingController {…

Read More Read More

535 total views, 1 views today

Maven build from local jar Steps

Maven build from local jar Steps

We need to create or do maven build sometimes using our local jar.  Today we are going to see the simple steps create the maven build with our local jar instead of the jar from maven repository/custom repositories.   Here I mentioned the 4 steps for maven build using our local jars. I tested this easy way and it works awesome. Hope it helps you as well! Feel free to write if you have some other ways for the same…

Read More Read More

651 total views, no views today

Selection Sort Implementation in Java Example

Selection Sort Implementation in Java Example

Selection Sort Implementation in Java Example:   Psudeocode for selection sort: Take an array with N elements (say new long[]{3,3009, 76,172,271,2}) Outer for loop to iterate all the elements in the array. (index starts from 0) Create a currentMinimum variable with index value(initially 0) Create a nested for loop to iterate from innerIndex(index+1) (because till index it is already sorted, initially it is 0, means not sorted) 2.2.1 if array[currentMinimum] > array[innerIndex] then assign currentMinimum = innerIndex; 2.3. Outside of…

Read More Read More

561 total views, 1 views today

Understanding angular 4/5/6 flow

Understanding angular 4/5/6 flow

Understanding angular 4/5 flow: In highlevel this is the flow, Main.ts > AppModule > App.component, it serves the content available in the Template file. I request you to run first angular cli project from this link, How to install Angular-CLI in Windows 7 ? Running First Angular-CLI Project in 2 Minutes then read below to understand how angular / angular flow works in detail.   Now let me explain how angular works actually, index.html file looks like this, index.html file…

Read More Read More

753 total views, 1 views today

Angular 4/5/6 Basics Common Quiz

Angular 4/5/6 Basics Common Quiz

You will get 15 questions here in angular basics quiz including multiple choice, multiple response, true/false etc. click Next below to start the quiz!  All the Best!! 649 total views, no views today

649 total views, no views today