Posts

Java 8 New Features

The Big Changes Lambda      Functional Program with lambda expressions. New Date/Time Api      Simply manage in dates and time Stream Api      Improved collection manage and parallel processing Nashorn JavaScript engine      Program in JavaScript, using Java classes and objects Concurrency enhancement      Managing and accumulating value in multiple thread Smaller Changes Joining String values      Tow new approaches to concatenating literal strings Aggregating Numbers      Number classes ( Integer, etc ) have new methods Working with files      New convenience method, BASE64 management

HTTP request vs web service

The Hypertext Transfer Protocol (HTTP) used to communications between clients and servers.HTTP works as a request-response protocol between a client and server.A web browser may be the client, and an application on a computer that hosts a web site may be the server.There are happen HTTP communication.A normal web page returns HTML, PDF, or image data that's intended to be displayed to the user in a browser. Web Service-A web service returns data that's intended to be used by another program.A client (browser etc.) submits an HTTP request to the server; then the server returns a response to the client.  The requst and response hapen in web service.Web Service returns data that's structured to be easy for computers to extract the values. Common formats are XML and JSON. The web service might also use a structured format for requests. There are two commonly used methods for a request-response between a client and server are: GET and POST. GET - Requests data from a specifi

WSIL part 01

Introduction to WSDL WSDL stands for Web Services Description Language. WSDL is a language for describing web services and how to access them.WSDL is written in XML. The WSDL Document's main elements Element Description <types> A container for data type definitions used by the web service <message> A typed definition of the data being communicated <portType> A set of operations supported by one or more endpoints <binding> A protocol and data format specification for a particular port type structure of a WSDL document <definitions> <types> definition of types........ </types> <message> definition of a message.... </message> <portType> <operation> definition of a operation....... </operation> </portType> <binding> definition of a binding.... </binding> <service> definition of a serv

Setup slf4j to maven project

The Simple Logging Facade for Java (SLF4J) serves as a simple facade or abstraction for various logging frameworks   Add dependency to your Maven POM you need “slf4j-api.jar” and your preferred binding, like log4j “slf4j-log4j12.jar“. Just declares the dependency in your pom.xml. <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> <version>${slf4jVersion}</version> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.16</version> <scope>runtime</scope> </dependency>   log4.properties the properties code put in java/resources # Direct log messages to a log file log4j.appender.file=org.apache.log4j.RollingFileAppender log4j.appender.file.File=C:

Server Tomcat v6.0 Server at localhost failed to start

I got this solution Open the "Server" tab in Eclipse Double click on the "Tomcat6" entry to see the configuration. Then click on the "Open launch configuration" link in the "General information" block. In the dialog, select the "Classpath" tab. Click the "Add external jar" button. Select the file "/usr/share/tomcat6/bin/tomcat-juli.jar" Close the dialog. Start tomcat 6 from Eclipse. then everything was good.

How to Install Asterisk 11 on Ubuntu 14.04 LTS

I am using Asterisk 11.0.1 and will be compiling from source on Ubuntu 14.04.then want to server OS is up to date.and I also use root login in Ubuntu #apt-get update #apt-get upgrade #reboot Next you will want to resolve basic dependencies. about learn here . #apt-get install build-essential wget libssl-dev libncurses5-dev libnewt-dev libxml2-dev linux-headers-$(uname -r) libsqlite3-dev uuid-dev Download the source tarballs. These commands will get the current version of DAHDI, libpri and Asterisk. #cd /usr/src/ wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4-current.tar.gz wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11-current.tar.gz Extract the files from the tarballs #tar zxvf dahdi-linux-complete* #tar zxvf libpri* #tar zxvf asterisk* Install DAHDI #cd /usr/src/dahdi-linux-complete* make && make install &am

VoiceXML Learn

VoiceXML concepts Dialogs VoiceXML application is always in one conversational state or dialog at a given time. Each dialog is followed by another dialog, and if no dialog is specified next,then the execution of the VoiceXML application is terminated.There are two types of dialogs, forms and menus Forms collect user inputs in the form of values, just like an HTML form. Menus present the user with a list of options to select from. Sessions user begins to interac with a VoiceXML document. Applications An application is a collection of VoiceXML documents. Grammars A grammar specifies a list of permissible vocabulary for the user to select from in order to interact with the VoiceXML application. Events An event is thrown by the VoiceXML platform for a number of reasons, such as when a user does not respond to an input, doesn't respond correctly, requests help, etc. Links A link specifies a transition that is common to all dialogs in the scope of the link. A