Saturday, April 23, 2016

SOAP(Simple Object Access Protocol)

I have bring a New Topic to discuss in this Article that is SOAP. Here SOAP stands for Simple Object Access Protocol.In this post we discuss about what is SOAP?Use of SOAP.
Where do we apply this topic in real time software projects.


SOAP version 1.2 provides a simple and light weight mechanism for exchanging structured and typed information between peers in a decentralized,distributed environment using XML.

It is and XML based protocol that consists of four parts:


  •  The SOAP envelope construct defines an overall framework for expressing what is in a message,who should deal with it,and whether it is optional or mandatory.
  • The SOAP encoding rules defines a serialization mechanism that can be used to exchange instances of application-defined datatypes.
  • The SOAP RPC representation defines a convention that can be used to represent remote procedure calls and responses.
  • The SOAP binding defines a convention for exchanging SOAP envelopes between peers using an underlying protocol for transport.
SAMPLE SOAP MESSAGE EMBEDDED IN AN HTTP REQUEST:

post/stockquote/HTTP/1.1
Host:www.stockqoteserver.com
content-Type:text/XML;charset="Utf-8
SOAPAction:http://example.org/2016/04/quotes

<env:Envelope xmlns:env-http://www.w3.org/2016/04/soap-envelope>
<env:body>
<m:GetLastTradePrice env:encodingstyle=http://www.w3.org/2016/04/soap-encodingxmlns:m=http://example.org/2016/04/quotes>
<symbol>DIS</symbol>
</m:GetLastTradePrice>
</env:body>
</env:Envlope>

SAMPLE SOAP MESSAGE EMBEDDED IN AN HTTP  RESPONSE:

HTTP/1.1 200 ok
Content-Type: Text/xml;charset="utf-8 content-length"nnnn

<env:Envelope xmlns:env-http://www.w3.org/2016/04/soap-envelope>

<env:body>
<m:GetLastTradePriceResponse env:encodingstyle=http://www.w3.org/2016/04/soap-encoding "xmlns:m=http://example.org/2016/04/quotes">
<Price>44.5</price>
</m:GetLastTradePriceResponse>
</env:body>
</env:Envlope>

SOAP MESSAGE:



SOAP Supports two different communication Styles:

a)SOAP-RPC
b)SOAP-HTTP

a)SOAP-RPC:

SOAP request using RPC based communication

<SOAP ENV:Envelope xmlns:SOAP-
                           ENV="http://schema.xmlsoap.org/soap/enveloper
                         xmlns:xsl="http://www.w3c.org/2016/xmlschema-instance"
                         xmlns:xsd="http://www.w3c.org/2016/XMLSchema"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Header>
</SOAP-ENV:Header>
<m:GetBookPrice
    xmlns:m="http://www.OrderBook.com/jw.book.pricelist">
<bookname xsl:type="xsd:string">MyWsBook</bookname>
</m:GetBookPrice>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

SOAP Response message using RPC based communication

<SOAP-ENV:Envelope xmlns:SOAP
                           ENV="http://schema.xmlsoap.org/soap/enveloper/"
                              xmlns:xsi="http://www.w3c.org/2016/XMLSchema-instance"
                              xmlns:xsd="http://www.w3c.org/2016/XMLSchema"
                          SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/".
<SOAP-ENV:Header>
<SOAP-ENV:Header>
<SOAP-ENV:Body>
<m:GetBookPriceResponse
           Xmlns:m="http://www.OrderBook.com/jws.book.priceList">
 <Price>230.oo</Pirce>
<m:GetBookPriceResponse>
<SOAP-ENV:Body>
</SOAP-ENV:Envelope>


SOAP-HTTP

SOAP request using HTTP Based Communication:

POST/GetBookPrice HTTP/1.1
User-Agent:mozilla/5.0
Host:localhost:8080
Content-type:text/xml;charset="utf-8"
Content-length;546
SOAPAction:"/GetBookPrice

<SOAP-ENV;Envelope
Xmlns:SOAP-ENC="http://Schemas.xmlsoap.org/soap.org/soap/encoding/"
Xmlns:SOAP-ENV="http://Schemas.xmlsoap.org/soap.org/soap/envelope/"
  xmlns:xsl="http://www.w3c.org/2016/xmlschema-instance
xmlns:xsd="http://www.w3c.org/2016/xmlschema"
SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-env:Body>
</m:GetBookPriceXmlns:m=http://www.OrderBook.com/jws.book.priceList">
<bookname xsi:type="xsd:string">MyWsBook</bookname>
</m:GetBookPrice>
</SOAP-ENV:BODY>
</SOAP-ENV:Envelope>

SOAP Response using HTTP Based Communication:

HTTP/1.1 200 OK
Connection: Close
Content-length:534
Content-type:text/xml;charset="utf-8"
Date: sun,24 2016 10:34:38 GMT
Server:tomcat 6.0
<SOAP-ENV: Envelope
Xmlns:SOAP-ENV="http://Schemas.xmlsoap.org/soap.org/soap/enveloper/"
Xmlns:SOAP-ENC="http://Schemas.xmlsoap.org/soap.org/soap/encoding/">
 xmlns:xsl="http://www.w3c.org/2016/xmlschema-instance"
xmlns="http://www.w3c.org/2016/xmlschema"
SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/">

</SOAP-ENV:BODY>
<m:GetBookPriceResponse
xmlns:http://www.OrderBook.com/jws.book.priceList>
<Result>500.00</Result>
</m:GetBookPriceResponse>
</SOAP-ENV:BODY>
</SOAP-ENV:Envelope>




Tuesday, April 5, 2016

Interview Questions For Freshers

In this article we will learn some of the frequently asked HR interview Questions for freshers. These Questions very helpful for freshers and final year students.So before attend the interview just brush up the following Questions.

1)Tell us something about yourself?

Ans:  This is the first questions, you can expect during any interview you face. This is usually is a question to start the communication and set the ball rolling for the interview. You can provide some information about your work experience,technologies you have worked upon,education qualifications.If you are a fresher then you can provide some more information about your family also.

2)Can you work under pressure?

Ans: Most of the time , the job of software development is that  of working under pressure. Sometimes,it will be the pressure of delivering on time while it can be that of a bug that has sprung all of a sudden in your code. So, expect pressure in everything you do. It is important to maintain your performance and develop to deliver under pressure. 

3)What do you do to improve your knowledge?


Ans:  The field of IT is very revolutionary. It is extremely important to keep yourself abreast with the new technological developments and this needs you to take some time out of your work schedule so that you can keep sharpening your saw. Simply say answer,you can tell the recruiter about the forums which you keep visiting,blogs which you keep reading.

4)Where do you see yourself 5 years from Now?


Ans: I see Myself as a recognized position in your esteemed organization where by with all my enhanced learning skills, i shall be able to make up a valuable and meaningful contribution to your organization.

5)Did you have any failures in your life?

Ans: I failed to score a  good percentage  in my intermediate. I worked hard for it but scored less than what i Expected.

6)What have you learn from your failure?

Ans:  From my failures i have learn to analyze myself and find out my shortcomings. I have undertaken seriously to improve myself on those relevant areas. "Accepting  a failure is a man's great trait.

7)Suppose i tell you i don't like your face then why i should i select you?

Ans: Even if you do not like my face, you definitely you agree that  i have other qualities that appealed you,for which you are interviewing me. There's saying

" A man's face is not indicative of his abilities".
" A book is not judged by its cover but it is judged by its content".

8)Why do you consider yourself a suitable candidate for this position?

Ans:  The answer is to this question lies in the preparation you did before the interview. It is extremely important that you research the requirements of the position well and match them with your skills.

9)What do you know about us?

Ans:  Research the company and its business a bit before appearing for the interview. Also, find out a bit about the technologies they work upon. You don't need to know everything inside out but having fair idea about the company makes you appear interested in the position,to be taken seriously. For example: I see that you company does lot of projects based on Open source platforms like JAVA, joomla which is  quite interesting as i have similar kind of experience.

10)Describe your work ethic?

Ans: Emphasize befits to the organization. Things like, determination to get the job done and work hard but enjoy your work are good.

11)Why do you want at our Company?

Ans: I am a fresher, i want to start my career in reputed company like your company and i will prove myself by the help of your company. I have visit your company website and seen the best servicing and products providing in Asia.

12) What is your favorite color? Why?

Ans: This question used to ask to test your communication skills and how to able explore on topic.My favorite color is BLUE, I am confident in my choice of color blue.Because blue is calm and smooth color.Blue color represents nurturing a person that others look for spiritual or mental healing. A natural color from the blue of the sky. Blue is often sign of intelligence. Darker blue symbolize authority and higher  power. Hence the blue power suit of the corporate world and blue uniforms of the police officers.

13)who is your role model?

Ans: You can tell your role model as your choice...but my role model is my dad because i did not see up to now who worked so hard and still having time for his family.He always assist me like a friend, he used to share his experience and mistakes he did in his life so that we will not repeat them.Even though he had many problem he keeps his face smiley and never showed his odd behavior to our family. He put his whole life in working and never made us to look down.So, my dad is the world best father.

14)What are your hobby?

Ans: My hobbies are solving puzzles specially sudoku,computer gaming,surfing the internet,drawing and i read books in my sparing time.

15)Do you have any questions for us?

Ans:  This is usually last question you can expect during an interview. It is extremely important to have some intelligent questions to ask the interviewer otherwise you may just sound dull and un-interested. Research the company  a bit and discuss if they have been in news recently. You can also discuss about the growth prospects for you within the company.



Read also:  HR Interview questions and answers for experienced candidates

High Paying Jobs after Learning Python

Everyone knows Python is one of the most demand Programming Language. It is a computer programming language to build web applications and sc...