Define WSDL,SOAP and REST.

1. SOAP stands for Simple Object Access Protocol and REST stands for Representation State Transfer.

 2.  SOAP is a protocal and Rest is an architectural style.
 3. SOAP permits XML data format only but REST permits different data format such as Plain text,
     HTML, XML, JSON etc
4.  SOAP defines standards to be strictly followed but rests doesnot define to much standards like soap.
5.  SOAP uses WSDL (web service definition language) for describing the functionality offered by a web service
     and REST uses WADL (Web Application Description Language) for describing the functionality offered by a web service.
6. SOAP requests send using HTTP POST method because SOAP request is formally big and can not not be send in
    query string, REST requests can send using both HTTP GET and POST and due to which GET request can be cached here.
7. SOAP requires more bandwidth and resource than REST so avoid to use SOAP where bandwidth is very limited.
8. SOAP can’t use REST because it is a protocol but REST can use SOAP web services because it is a concept and can use any protocol like      HTTP, SOAP
9. SOAP is less preferred than REST.
Advertisements

Define WSDL,SOAP and REST.

A WSDL is an XML document that describes a web service.

It actually stands for Web Services Description Language.WSDL tells about the functions that you can implement or exposed to the client. For example: add, delete, subtract and so on
SOAP is an XML-based protocol that lets you exchange info over a particular protocol (can be HTTP or SMTP, for example) between applications. It stands for Simple Object Access Protocol and uses XML for its messaging format to relay the information.
REST is an architectural style of networked systems and stands for Representational State Transfer.
It’s not a standard itself, but does use standards such as HTTP, URL, XML, etc

It is special chacter(s) which have special meaning in Regular Expression.

For Example:
*, ., /, \, ? and ^.

Sr Meta character Desctiption
1 [ ] Match any character within [phc]
Means find “p” OR “h” OR “c”
2 Range
a-z means a to z(a,b,c, … z)

0-0 means 0 to 9 (0,1,2,3,4,5,6,7,8,9)

A-Z means A to Z(A,B,C,D ….. Z)

3 ^ Caret It means start with a character

For example: ^ab (start with “a”)

Inside the bracket if have opposite meaning.

For example: [^a](must not start with “a”)

4 $ End with character

For Example

Abc$ means end with “c”

5 . The . (period) means any character(s) in this position,
For example, ph. will find php, php-tutorial and php-tutorial-php but not aphp because it has no following character
6 ? Matches the preceding character 0 or 1 times only.

For example:

colou?r will find both color (0 times) and colour (1 time).

7 * Matches the preceding character 0 or more times.
For example:

tre* will find tree (2 times) and tread (1 time) and trough (0 times).

8 + Matches the previous character 1 or more times.
For example:

tre+ will find tree (2 times) and tread (1 time) but NOT trough (0 times).

9 {n} Preceding character, or character range, n times exactly.
For example:

find a local phone number we could use [0-9]{3}-[0-9]{4} which would find any number of the form 723-4567 OR 132-3234 OR 214-3433.

10 () To group a character.

For Example:
(php), will find the “php” only.

11 | Vertical bar used for OR

(a|c) find either “a” OR “c”

12 \d any character in the range 0 – 9
13 \D Any character not in between 0-9
14 \s Whitespace or tab
15 \S Not whitespace or tab
16 \w Alphanumeric characters (a-z, 0-9, A-Z)
17 \W Not alphanumeric character (a-z, 0-9, A-Z)