SOAP- Simple Object Access Protocol

What is SOAP?

  • SOAP stands for Simple Object Access Protocol
  • SOAP is a communication protocol
  • SOAP is for communication between applications
  • SOAP is a format for sending messages
  • SOAP communicates via Internet
  • SOAP is platform independent
  • SOAP is language independent
  • SOAP is based on XML
  • SOAP is simple and extensible
  • SOAP allows you to get around firewalls
  • SOAP is a W3C recommendation
  • Stateless
  • One-way message exchange paradigm
  • Applications can create more complex interaction patterns (e.g., request/response, request/multiple responses, etc.) by combining such one-way exchanges with features provided by an underlying protocol and/or application-specific information
  • Silent on the semantics of any application-specific data it convey

SOAP provides a way to communicate between applications running on different operating systems, with different technologies and programming languages A SOAP request:

POST /InStock HTTP/1.1 Host: www.abidshafiq.com Content-Type: application/soap+xml; charset=utf-8 Content-Length: nnn <?xml version=”1.0″?> <soap:Envelope xmlns:soap=”http://www.w3.org/2001/12/soap-envelope” soap:encodingStyle=”http://www.w3.org/2001/12/soap-encoding”> <soap:Body xmlns:m=”http://www.example.org/stock”> <m:GetDesignPrice> <m:StockName>PSD</m:StockName> </m:GetDesignPrice > </soap:Body> </soap:Envelope>

The SOAP response:

HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: nnn <?xml version=”1.0″?> <soap:Envelope xmlns:soap=”http://www.w3.org/2001/12/soap-envelope” soap:encodingStyle=”http://www.w3.org/2001/12/soap-encoding”> <soap:Body xmlns:m=”http://www.example.org/stock”> <m:GetDesignPriceResponse> <m:Price>20.0</m:Price> </m:GetDesignPriceResponse> </soap:Body> </soap:Envelope>

Java XML API comparison

Feature StAX SAX DOM TrAX
API Type Pull, streaming Push, streaming In memory tree XSLT Rule
Ease of Use High Medium High Medium
XPath Capability Not supported Not supported Supported Supported
CPU and Memory Efficiency Good Good Varies Varies
Forward Only Supported Supported Not supported Not supported
Read XML Supported Supported Supported Supported
Write XML Supported Not supported Supported Supported
Create, Read, Update, Delete Not supported Not supported Supported Not supported


I want you…!

stars are shinning in the black
hearts are beating in the mind
life is running on the way
i am missing you all the way.

come to see me i can see you
come to hug me i can hug you
life or dead whats you want
i can give if you not.



think you were mine
when i created myself
think you no where
when i run.

flowers growing all the way
clouds are moving all the way
i stopped all the way
you are not coming to me
.

feel me ,feel me I am that one;
know me know me i am that one.
who loves you -who cares you
all the way.

I am that one .

XML Schema Design Pattern Introduction

Here we shall define the four most used design patterns regarding XML schema, which are Russian Doll, Salami Slice, Venetian Blind, and Garden of Eden. These patterns can be distinguished by two easy conventions,

  • Ease of use for instance developers
  • Ease of reuse for schema developers

XML Schema

An XML schema depicts the structure of an XML document.

XML structures schema define a class of documents by using schema components to constrain and provide meaning to the documents, usage and relationship among their parts, like, data types, elements and attributes in addition with values.  It provides the schema for specification for further information of document. Thus formally can be said that,

“XML Schema: Structures can be used to define, describe and catalogue XML vocabularies for classes of XML documents.”

Work, Family, Health, Friends and Spirit

Imagin life as game in which you are juggling some five balls in the air. You name them – Work, Family, Health, Friends and Spiri and you are keeping all of these in the Air.

You will soon understand that work is a rubber ball. If you drop it, it will bounce back.


But the other four balls – Family, Health, Friends, and spirit – are made of glass. If you drop one of these; they will be irrevocably scuffed, marked, nicked, damaged or even shattered. They will never be the same. You must understand that and strive for it.

WORK EFFICIENTLY DURING OFFICE HOURS AND LEAVE ON TIME. GIVE THE REQUIRED TIME TO YOUR FAMILY, FRIENDS AND HAVE PROPER REST.

XML Namespace

Namespace

To avoid the conflict in xml schema namespace is the solution.

It provides the way to define a unique identifier in a schema context. In an XML schema, you can create elements and types, which are named distinctively within the namespace of the schema. An element is the namespace’s definition scope, which can override a namespace declaration defined in a parent element. Given that a namespace defines a context in which identifiers must be unique, schemas can safely integrate definitions from other namespaces—even those with the same names.

Importance of Adventure

The danger of an adventure is worth a thousand days of ease and comfort.

Part 1- Web Services Introduction

What are Web Services?

A simpler definition: “a Web service is a software application, accessible on the Web (or an enterprise’s intranet) through a URL, that is accessed by clients using XML-based protocols, such as Simple Object Access Protocol (SOAP) sent over accepted Internet protocols, such as HTTP. Clients access a Web service application through its interfaces and bindings, which are defined using XML artifacts, such as a Web Services Definition Language (WSDL) file.”

Lazy Loading

Lazy loading is a commonly used design pattern in programming to defer initialization of an object until the point at which it is needed. It can contribute to efficiency in the program’s operation if properly and appropriately used. The opposite of lazy loading is Eager Loading.
In web it can be used in very effective way in photo galleries to speed up the interaction.