Blog Archives

Create Web service using wsgen in command line


Generally bottom up approach, where the service implementation is done first and wsdl will be generated next, is not a suggested way of implementing a web service. In some cases where the service implementation class is already exists in the

Tagged with: , , ,
Posted in JAVA

Differences between wsimport and wsgen


wsimport: The wsimport tool reads a WSDL and generates all the required artifacts for web service development, deployment, and invocation. The wsimport tool supports the top-down approach to developing JAX-WS Web services, where you are starting from a wsdl. The

Tagged with: , , , , , , ,
Posted in JAVA, Web Services

Create web service in Bottom Up approach using command line


Create Service Interface MyJaxWSSEI.java package in.malliktalksjava.ws; import in.malliktalksjava.ws.pojo.*; import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebResult; import javax.jws.WebService; import javax.jws.WebParam.Mode; import javax.jws.soap.SOAPBinding; import javax.jws.soap.SOAPBinding.Style; import javax.jws.soap.SOAPBinding.Use; import javax.xml.ws.RequestWrapper; import javax.xml.ws.ResponseWrapper; @WebService(name = “MyJaxWSHello”, targetNamespace = “http://malliktalksjava.in”, wsdlLocation = “http://malliktalksjava.in/MyJaxWS?wsdl”) @SOAPBinding(style=Style.RPC, use=Use.LITERAL) public interface

Tagged with: , , ,
Posted in JAVA, Web Services

Difference between ClassNotFoundException and NoClassDefFoundError


1. java.lang.ClassNotFoundException :  This exception indicates that the class was not found on the classpath. This indicates that we were trying to load the class definition, and the class did not exist on the classpath. 2. java.lang.NoClassDefFoundError :  This exception

Tagged with: , ,
Posted in JAVA

Difference between HttpSession’s getSession(), getSession(true) and getSession(false) methods


getSession() : Returns the current session associated with this request, or if the request does not have a session, creates one. getSession(true) : Returns the current HttpSession associated with this request, if there is no current session, returns a new

Tagged with: , , , ,
Posted in JAVA, Servlet, Servlets

How to read a URL using JAVA


package in.malliktalksjava; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.URL; import java.net.URLConnection; /** * @author malliktalksjava * */ public class URLConnectionReader { public static void main(String[] args) throws Exception { URL oracle = new URL(“http://malliktalksjava.in/”); URLConnection yc = oracle.openConnection(); BufferedReader in =

Tagged with: , , , , , , , ,
Posted in JAVA

Example Program: Search Word in Folder files and print output


To Search a word in in list of files available in Folder, you need to find the list of files first and then scan each and every for required word. Below is the sample program to find the a given

Tagged with: , , , , , , , , , , , ,
Posted in JAVA

Example Java Program to Search Files in a Folder


Below Java Program lists the file names and directory names available in given folder. To do this implementation , we can get the files list in a folder using File class available in Java API. Iterate the files one by one

Tagged with: , , , , , , , , , , ,
Posted in JAVA

Merge Sort Example in Java


package in.malliktalksjava; /** * @author malliktalksjava * * Sorts the given array using merge sort algorithm */ public class MergeSortExample { private int[] array; private int[] tempMergArr; private int length; /** * @param args * * main method. * Pass

Tagged with: , , , , , , , ,
Posted in JAVA

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 676 other followers

Calendar
August 2017
M T W T F S S
« Dec    
 123456
78910111213
14151617181920
21222324252627
28293031  
Mallikarjun Gunda

This is Mallikarjun Gunda, I am working as a software professional. Blogging is my Passion. This blog contains the posts on Java related technologies and programming languages. I am happy to share my knowledge through the blogs.

Blog Stats
  • 224,455 hits
IndiBlogger
malliktalksjava.wordpress.c...
70/100
All tags
AngularJS Apache Cassandra Arrays in Java Cassandra Cassandra Database Cassandra examples client stubs creating a java web service creating a web service using java difference between interface and abstract class Differences between SOAP and RESTfull webservices Display div as Overlay using JQuery download the spring basic application File directory Generating webservice client stubs Hibernate hibernate exceptions How to display over using JQuery how to generated web service client stubs in STS How to implement Spring basic application how to write singleton design pattern in java interface in java Java Java Arrays Java Example Programs Java examples Java interview questions java programs java project Java sample Programs Java Script JavaScript JavaServer Faces Java Sorting alogorithms Java Tutorials javatutorials Java Web services JDBC open shift openshift Overlay implementation using JQuery Overlay in JQuery POI API POI Examples public class public static void main Redhat OpenShift representational state transfer Restfull webservices sample programs in java Service-oriented architecture Singleton design pattern in java SOAP SOAP Webservices software Spring Framework Spring Interview Questions Spring MVC Spring MVC Example program Spring MVC sample Program Spring Sample Programs Spring Tutorials Struts technology Top Java Interview questions w3c dom Web service web service client Web Service Description Language webservices Web services writing singleton design pattern in Java WSDL Xml xml parsers