Thursday, December 10, 2015

SOAP Web Service Introduction or FAQ


1)What is Web service?

A simple definition for a web service is 

Web Service is an application or business logic that makes itself available over the internet and is accessible using standard Internet protocols


W3C definition for a web service is


A software system designed to support interoperable machine-to-machine interaction over a network



2)Why you need to learn web services?


 Interoperability


 It is not tied to any one operating system or programming language.A java based application on Windows can communicate with a .Net based one on Linux.Web services are browsers and operating system independent service, which means it can run on any browser without the need of making any changes. Web Services take Web-applications to the Next Level


Exposing the Existing Function on the network


Web services allows you to expose the functionality of your existing code over the network. Once it is exposed on the network, other application can use the functionality of your program

 Loosely Coupled:


 Each service exists independently of the other services that make up the application. Individual pieces of the application to be modified without impacting unrelated areas.

 

3)Different Favors of Web Services


There are two major categories of web services


  1. SOAP (Simple Object Access Protocol) Web Service(JAX-WS)
  2. REST (Representation State Transfer) Web  Service(JAXRS)

In simple words SOAP web services uses XML as a mechanism for exchanging of information (one way) between the two programs (end points) over any transport layer protocol. SOAP is not relying on any particular programming language or operating system as far as they understand XML and SOAP message


In REST, every resource is addressed or accessed by Unique URI (Uniform Resource Identifier) and data and functionality forms a resource

Instead of using XML for request/response, it relies on simple unique URI and that’s why it is also considered as lightweight alternative to SOAP. As it is rely on URI as a resource identifier, the standard CRUD operations of HTTP (GET, PUT, DELETE, POST, HEAD) can be performed on that URI/resource.

SOAP provides the response in XML format only while REST doesn’t have to use XML only. Though XML and HTML formats are often used for REST response, REST can also response in JSON, CSV and RSS formats


4)What are the few example for free and 

commercial implementations available for Web

 Services?

  •      Axis 2 (Axis 1 is now obsolete)
  •      JAX-WS Reference Implementation
  •      JAX-RS Reference Implementation (Jersey ,RESTeasy.)
  •      Apache CXF (formerly called XFire)
  •      JBossWS
  •      SpringWS

5)SOAP Web Services - Architecture

Role Based Architecture

There are three major roles within the web service architecture:
  • Service Provider
  • Service Requestor
  • Service Registry
Service Provider
This is the provider of the web service. The service provider implements the service and makes it available on the Internet.
Service Requestor
This is any consumer of the web service. The requestor utilizes an existing web service by opening a network connection and sending an XML request.
Service Registory
This is a logically centralized directory of services.The registry provides a central place where  developers can publish new services or find existing ones.

Protocol Stack-Architecture

Second option for viewing the web service architecture is to examine the emerging web service protocol stack
  • Service Transport-This layer is responsible for transporting messages between applications. Currently, this layer includesHyper Text Transport Protocol (HTTP),Simple Mail Transfer Protocol (SMTP),File Transfer Protocol (FTP) etc.
  • XML Messaging-This layer is responsible for encoding messages in a common XML format so that messages can be understood at either end. Currently, this layer includes XML-RPC and SOAP.
  • Service Description-This layer is responsible for describing the public interface to a specific web service. 
  • Service Discovery-This layer is responsible for centralizing services into a common registry and providing easy publish/find functionality. Currently, service discovery is handled via Universal Description, Discovery, and Integration (UDDI).

6)Some jargons used in SOAP Web services

WSDL (Web Services Description Language)
Also maintained by the W3C, WSDL is an XML-based format for describing Web services.The WSDL document that describes a Web service acts as a contract between Web service client and server. By adhering to this contact the service provider and consumer are able to exchange data in a standard way, regardless of the underlying platforms and applications on which they are operating.Through the WSDL, a Web services client learns where a service can be accessed, what operations the service performs, the communication protocols the service supports, and the correct format for sending messages to the service.
Primary purpose to describe
The methods(service available)

The Parameter and data type
The network protocols
The location of the web service and how to access it

A WSDL file is an XML document that describes a Web service using six main elements:
Types – defines the data types (as defined in an XML Schema) used by theservice for sending messages between the client and server.
Message – describes the names and format of the messages supported by service for sending messages between the client and server.
Port type – groups and describes the operations performed by the service through the defined interface.

Service – It is a collection of ports
Port – specifies an address for a binding, i.e., defines a communication port.
Binding – defines the communication protocols supported by the operations 
provided by the service.
Simple Object Access Protocol(SOAP):
SOAP is an XML-based protocol from the W3C for exchanging data over HTTP.
SOAP is mechanism (protocol) for transferring information (messages) between applications which may be widely distributed.
Web services use SOAP to send messages between a service and its client(s). Because HTTP is supported by all Web servers and browsers, SOAP messages can be sent between applications regardless of their platform or programming language. This quality gives Web services their characteristic interoperability.
SOAP messages are XML documents that contain some or all of the following elements:
  •     SOAP envelope: It is a root element and wraps the entire soap document
  •      SOAP header: This optional element sometime contains application-specific information for the web service exposed like UsernameToken for security purpose.The header contains additional information to be passed for the web service exposedlike UsernameToken for security purpose
  •     SOAP body: This is mandatory element of the SOAP envelope and contains the request information/message for the recipient/client-includes the message payload.
  •     SOAP fault: This is used to report errors and child element of SOAP body, if present. Mostly we can see fault on the response message as either web service returns well-constructed response message or soap-fault
UDDI(Universal Description, Discovery and Integration )
  •    UDDI is a standard of the Organization for the  Advancement of Structured Information Standards (OASIS)
  •     Universal Description, Discovery and Integration (UDDI) is a directory service. Web services can register with a UDDI and make themselves available through it for discovery.
  •    The UDDI allows clients to search this registry, find the intended service, and retrieve its details
  •    The Home Page of the UDDI is http://uddi.xml.org/uddi-org



SOAP Web Service Design

There are two approaches in implementing a web service and they are bottom-up and top-down.
Contract last or Bottom Up Approach
Bottom up approach is where we first define the logic of a web service and then using that we will build the interface. Service code is written first and then the WSDL is created using the service code.
Contract first or Top Down Approach
Top down is the reverse of bottom up approach first .Here you first define web service contract. The complete service definition, message format, transport protocol, security and everything is described in WSDL. Then service is written after the WSDL. Using that wsdl the skeleton code is generated automatically and after that the service code is filled up.
A walkthrough examples using SOAP Web Service using JAX-WS 



1) Open Eclipse IDE

2) Create java project named "
JAX-WSExample "

3) Create new package named " com.xyz.webservice.jaxws.example "


4) Create JAXWS Service Endpoint Interface. HelloWorld.java


5) Create JAXWS Service Endpoint implementation class.
HelloWorldImpl.java 


6) Create Endpoint publisher.
HelloWorldWSPublisher.java


6) Generated WSDL Verification



Tuesday, February 8, 2011

Mark Antony speaks to the Roman crowd after Brutus tried to justify the killing of Julius Caesar



Friends, Romans, countrymen, lend me your ears;


I come to bury Caesar, not to praise him.

The evil that men do lives after them;

The good is oft interred with their bones;

So let it be with Caesar.


The noble Brutus hath told you Caesar was ambitious:

If it were so, it was a grievous fault,

And grievously hath Caesar answer'd it.

Here, under leave of Brutus and the rest—

For Brutus is an honorable man;

So are they all, all honorable men—

Come I to speak in Caesar's funeral.


He was my friend, faithful and just to me:

But Brutus says he was ambitious;

And Brutus is an honorable man.


He hath brought many captives home to Rome

Whose ransoms did the general coffers fill:

Did this in Caesar seem ambitious?


When that the poor have cried, Caesar hath wept:

Ambition should be made of sterner stuff:

Yet Brutus says he was ambitious;

And Brutus is an honorable man.


You all did see that on the Lupercal

I thrice presented him a kingly crown,

Which he did thrice refuse: was this ambition?


Yet Brutus says he was ambitious;

And, sure, he is an honorable man.


I speak not to disprove what Brutus spoke,

But here I am to speak what I do know.

You all did love him once, not without cause:

What cause withholds you then, to mourn for him?


O judgment! thou art fled to brutish beasts,

And men have lost their reason. Bear with me;

My heart is in the coffin there with Caesar,

And I must pause till it come back to me.


But yesterday the word of Caesar might

Have stood against the world; now lies he there.

And none so poor to do him reverence.

O masters, if I were disposed to stir


Your hearts and minds to mutiny and rage,

I should do Brutus wrong, and Cassius wrong,

Who, you all know, are honorable men:

I will not do them wrong; I rather choose

To wrong the dead, to wrong myself and you,

Than I will wrong such honorable men.

But here's a parchment with the seal of Caesar;

I found it in his closet, 'tis his will:


Let but the commons hear this testament—

Which, pardon me, I do not mean to read—

And they would go and kiss dead Caesar's wounds

And dip their napkins in his sacred blood,

Yea, beg a hair of him for memory,

And, dying, mention it within their wills,

Bequeathing it as a rich legacy


Unto their issue.

Have patience, gentle friends, I must not read it;

It is not meet you know how Caesar loved you.

You are not wood, you are not stones, but men;

And, being men, bearing the will of Caesar,

It will inflame you, it will make you mad:

'Tis good you know not that you are his heirs;


For, if you should, O, what would come of it!

Will you be patient? Will you stay awhile?

I have overshot myself to tell you of it:

I fear I wrong the honorable men

Whose daggers have stabbed Caesar; I do fear it.


You will compel me, then, to read the will?

Then make a ring about the corpse of Caesar,

And let me show you him that made the will.

Shall I descend? And will you give me leave.


If you have tears, prepare to shed them now.

You all do know this mantle: I remember

The first time ever Caesar put it on;

'Twas on a summer's evening, in his tent,


That day he overcame the Nervii:

Look, in this place ran Cassius' dagger through:

See what a rent the envious Casca made:

Through this the well-beloved Brutus stabbed;

And as he plucked his cursed steel away,


Mark how the blood of Caesar followed it,

As rushing out of doors, to be resolved

If Brutus so unkindly knocked, or no;

For Brutus, as you know, was Caesar's angel:

Judge, O you gods, how dearly Caesar loved him!

This was the most unkindest cut of all;


For when the noble Caesar saw him stab,

Ingratitude, more strong than traitors' arms,

Quite vanquished him: then burst his mighty heart;


And, in his mantle muffling up his face,

Even at the base of Pompey's statua,

Which all the while ran blood, great Caesar fell.


O, what a fall was there, my countrymen!

Then I, and you, and all of us fell down,

Whilst bloody treason flourished over us.


O, now you weep; and, I perceive, you feel

The dint of pity: these are gracious drops.


Kind souls, what, weep you when you but behold

Our Caesar's vesture wounded? Look you here,

Here is himself, marred, as you see, with traitors.


Good friends, sweet friends, let me not stir you up

To such a sudden flood of mutiny.


They that have done this deed are honorable:

What private griefs they have, alas, I know not,

That made them do it: they are wise and honorable,

And will, no doubt, with reasons answer you.


I come not, friends, to steal away your hearts:

I am no orator, as Brutus is;


But, as you know me all, a plain blunt man,

That love my friend; and that they know full well

That gave me public leave to speak of him:

For I have neither wit, nor words, nor worth,

Action, nor utterance, nor the power of speech,

To stir men's blood: I only speak right on;

I tell you that which you yourselves do know;


Show you sweet Caesar's wounds, poor, poor dumb mouths,

And bid them speak for me: but were I Brutus,

And Brutus Antony, there were an Antony

Would ruffle up your spirits and put a tongue

In every wound of Caesar that should move

The stones of Rome to rise and mutiny.


Yet hear me, countrymen; yet hear me speak.

Why, friends, you go to do you know not what:

Wherein hath Caesar thus deserved your loves?

Alas, you know not: I must tell you then:


Moreover, he hath left you all his walks,

His private arbors and new-planted orchards,

On this side Tiber; he hath left them you,

And to your heirs for ever, common pleasures,

To walk abroad, and recreate yourselves.


Here was a Caesar! When comes such another?

Now let it work. Mischief, thou art afoot,

Take thou what course thou wilt!

Monday, June 7, 2010

Dr. APJ Abdul Kalaam's speech in Hyderabad

"I have three visions for India. In 3000 years of our history, people from all over the world have come and invaded us, captured our lands, conquered our minds. From Alexander onwards, The Greeks, the Turks, the Moguls, the Portuguese, the British, the French, the Dutch, all of them came and looted us, took over what was ours. Yet we have not done this to any other nation. We have not conquered anyone. We have not grabbed their land, their culture, their history and Tried to enforce our way of life on them. Why? Because we respect the freedom of others.
That is why my first vision is that of FREEDOM. I believe that India got its first vision of this in 1857, when we started the war of Independence. It is this freedom that we must protect and nurture and build on. If we are not free, no one will respect us.
My second vision for India's DEVELOPMENT, For fifty years we have been A developing nation. It is time we see ourselves as a developed nation. We are among top 5 nations of the world in terms of GDP. We have 10 percent growth rate in most areas. Our poverty levels are falling. Our achievements are being globally recognized today. Yet we lack the self-confidence to see ourselves as a developed nation, self-reliant and self-assured. Isn't this incorrect?
I have a THIRD vision. India must stand up to the world. Because I believe that, unless India stands up to the world, no one will respect us. Only strength respects strength. We must be strong not only as a military power but also as an economic power. Both must go hand-in-hand. My good fortune was to have worked with three great minds. Dr. Vikram Sarabhai of the Dept. of space, Professor Satish Dhawan, who succeeded him and Dr.Brahm Prakash, father of nuclear material. I was lucky to have worked with all three of them closely and consider this the great opportunity of my life.I see four milestones in my career:
Twenty years I spent in ISRO. I was given the opportunity to be the project director for India's first satellite launch vehicle, SLV3. The one that launched Rohini. These years played a very important role in my life of Scientist. After my ISRO years, I joined DRDO and got a chance to be the part of India's guided missile program. It was my second bliss when Agni met its mission requirements in 1994.
The Dept. of Atomic Energy and DRDO had this tremendous partnership in the recent nuclear tests, on May 11 and 13. This was the third bliss. The joy of participating with my team in these nuclear tests and proving to the world that India can make it, that we are no longer a developing nation but one of them. It made me feel very proud as an Indian. The fact that we have now developed for Agni a re-entry structure, for which we have developed this new material. A Very light material called carbon-carbon.
One day an orthopedic surgeon from Nizam Institute of Medical Sciences visited my laboratory. He lifted the material and found it so light that he took me to his hospital and showed me his patients. There were these little girls and boys with heavy metallic calipers weighing over three Kg. each, dragging their feet around.
He said to me: Please remove the pain of my patients. In three weeks, we made these Floor reaction Orthosis 300-gram calipers and took them to the orthopedic center. The children didn't believe their eyes. From dragging around a three kg. load on their legs, they could now move around! Their parents had tears in their eyes. That was my fourth bliss!
Why is the media here so negative? Why are we in India so embarrassed to recognize our own strengths, our achievements? We are such a great nation. We have so many amazing success stories but we refuse to acknowledge them. Why?
We are the first in milk production.
We are number one in Remote sensing satellites.
We are the second largest producer of wheat.
We are the second largest producer of rice.
Look at Dr. Sudarshan, he has transferred the tribal village into a self-sustaining, self driving unit.
There are millions of such achievements but our media is only obsessed in the bad news and failures and disasters.
I was in Tel Aviv once and I was reading the Israeli newspaper. It was the day after a lot of attacks and bombardments and deaths had taken place. The Hamas had struck. But the front page of the newspaper had the picture of a Jewish gentleman who in five years had transformed his desert land into an orchid and a granary.
It was this inspiring picture that everyone woke up to. The gory details of killings, bombardments, deaths, were inside in the newspaper, buried among other news. In India we only read about death, sickness, terrorism, crime. Why are we so NEGATIVE?
Another question: Why are we, as a nation so obsessed with foreign things? We want foreign TVs, we want foreign shirts. We want foreign technology. Why this obsession with everything imported. Do we not realize that self-respect comes with self-reliance? I was in Hyderabad giving this lecture, when a 14 year old girl asked me for my autograph. I asked her what her goal in life is. She replied: I want to live in a developed India. For her, you and I will have to build this developed India. You must proclaim. India is not an under-developed nation; it is a highly developed nation.
Do you have 10 minutes? Allow me to come back with a vengeance. Got 10 minutes for your country? If yes, then read; otherwise, choice is yours.
YOU say that our government is inefficient.
YOU say that our laws are too old.
YOU say that the municipality does not pick up the garbage.
YOU say that the phones don't work, the railways are a joke, the airline is the worst in the world, mails never reach their destination.
YOU say that our country has been fed to the dogs and is the absolute pits.
YOU say, say and say.
What do YOU do about it? Take a person on his way to Singapore. Give him a name - YOURS.
Give him a face - YOURS. YOU walk out of the airport and you are at your International best.
In Singapore you don't throw cigarette butts on the roads or eat in the stores. YOU are as proud of their Underground Links as they are. You pay $5(approx. Rs.60) to drive through Orchard Road (equivalent of Mahim Causeway or Pedder Road) between 5 PM and 8 PM. YOU come back to the parking lot to punch your parking ticket if you have over stayed in a restaurant or a shopping mall irrespective of your status identity. In Singapore you don't say anything, DO YOU? YOU wouldn't dare to eat in public during Ramadan, in Dubai. YOU would not dare to go out without your head covered in Jeddah. YOU would not dare to buy an employee of the telephone exchange in London at 10 pounds (Rs.650) a month to, "see to it that my STD and ISD calls are billed to someone else."
YOU would not dare to speed beyond 55 mph (88 km/h) in Washington and then tell the traffic cop, "Jaanta hai sala main kaun hoon (Do you know who I am?). I am so and so's son. Take your two bucks and get lost." YOU wouldn't chuck an empty coconut shell anywhere other than the garbage pail on the beaches in Australia and New Zealand. Why don't YOU spit Paan on the streets of Tokyo? Why don't YOU use examination jockeys or buy fake certificates in Boston? We are still talking of the same YOU. YOU who can respect and conform to a foreign system in other countries but cannot in your own. You who will throw papers and cigarettes on the road the moment you touch Indian ground. If you can be an involved and appreciative citizen in an alien country, why cannot you be the same here in India?
Once in an interview, the famous Ex-municipal commissioner of Bombay, Mr. Tinaikar, had a point to make. "Rich people's dogs are walked on the streets to leave their affluent droppings all over the place," he said." And then the same people turn around to criticize and blame the authorities for inefficiency and dirty pavements. What do they expect the officers to do? Go down with broom every time their dog feels the pressure in his bowels? In America every dog owner has to clean up after his pet has done the job. Same in Japan. Will the Indian citizen do that here?" He's right. We go to the polls to choose a government and after that forfeit all responsibility. We sit back wanting to be pampered and expect the government to do everything for us whilst our contribution is totally negative. We expect the government to clean up but we are not going to stop chucking garbage all over the place nor are we going to stop to pick up a stray piece of paper and throw it in the bin. We expect the railways to provide clean bathrooms but we are not going to learn the proper use of bathrooms.
We want Indian Airlines and Air India to provide the best of food and toiletries but we are not going to stop pilfering at the least opportunity. This applies even to the staff who is known not to pass on the service to the public. When it comes to burning social issues like those related to women, dowry, girl child and others, we make loud drawing room protestations and continue to do the reverse at home. Our excuse? 'It's the whole system which has to change, how will it matter if I alone forego my sons' rights to a dowry.'
So who's going to change the system? What does a system consist of? Very conveniently for us it consists of our neighbors, other households, other cities, other communities and the government. But definitely not me and YOU. When it comes to us actually making a positive contribution to the system we lock ourselves along with our families into a safe cocoon and look into the distance at countries far away and wait for a Mr. Clean to come along & work miracles for us with a majestic sweep of his hand or we leave the country and run away. Like lazy cowards hounded by our fears we run to America to bask in their glory and praise their system. When New York becomes insecure we run to England. When England experiences unemployment, we take the next flight out to the Gulf. When the Gulf is war struck, we demand to be rescued and brought home by the Indian government.
Everybody is out to abuse and rape the country. Nobody thinks of feeding the system. Our conscience is mortgaged to money.

Dear Indians,
The article is highly thought inductive, calls for a great deal of introspection and pricks one's conscience too....
I am echoing J. F. Kennedy's words to his fellow Americans to relate to Indians.....

"ASK WHAT WE CAN DO FOR INDIA AND DO WHAT HAS TO BE DONE TO MAKE INDIA WHAT AMERICA AND OTHER WESTERN COUNTRIES ARE TODAY"
Lets do what India needs from us.

Thank you
Abdul Kalaam

The Browse for Folder Dialog Box using hta and vbscript

How to send values from hta file to a batch file using Vbscript? 

In this example 
  • We validated Database name (only alphanumeric, underscore and dollar allowed) and password (not space and tab allowed) using regular expression..
  • We used Folder Dialog box to select the required folder.
  • Send  values from Hta file to Batch file 
  • Remove double quotes of the value obtained from Hta file.
Step 1 : Create a hta file named Installer .hta file.

< html >
< head >

Note: Setting the attributes of a Hta application
< hta:application
border="thick"
MAXIMIZEBUTTON="no"
borderstyle="normal"
caption="true"
contextmenu="false"
icon="Icon_html.JPG"
showintaskbar="true"
singleinstance="true"
sysmenu="true"
version="1.0"
WINDOWSTATE="normal" >

< script language="vbscript" >
Dim Master
Dim Master1

Note: Resize and move the window to center of the screen
Sub Window_onLoad
CenterWindow 790, 520
End Sub
Sub CenterWindow( widthX, heightY )
self.MoveTo (screen.Width - widthX)/2,(screen.Height - heightY)/2
self.ResizeTo widthX, heightY
End Sub

 Note: Folder Dialog Browser
Sub ChooseSaveFolder
strStartDir = ""
userselections.txtFile.value = PickFolder(strStartDir)
End Sub
Sub ChooseSaveFolder1
strStartDir = ""
userselections.txtFile1.value = PickFolder(strStartDir)
End Sub
Function PickFolder(strStartDir)
Dim SA, F
Set SA = CreateObject("Shell.Application")
Set F = SA.BrowseForFolder(0, "Choose a folder", 0, strStartDir)
If (Not F Is Nothing) Then
PickFolder = F.Items.Item.path
End If
Set F = Nothing
Set SA = Nothing
End Function

Sub CheckMaster

Note : Database name and Password Validation
Dim regEx 
Dim DBName
DBNAme=Trim(userselections.txtFile2.value)
if Not DBNAme="" then
Set regEx = New RegExp 
regEx.IgnoreCase = False
regEx.Pattern ="^[a-zA-Z0-9_$]+$"
if Not regEx.Test(DBName) then
msgbox " Please enter valid Database Name "
Exit Sub
End If
End If
Dim regEx1 
Dim DBPwd
DBPwd=Trim(userselections.txtFile3.value)
if Not DBPwd="" then
Set regEx1 = New RegExp 
regEx1.IgnoreCase = False
regEx1.Pattern = "^[ ^\s ]+$"
if Not regEx1.Test(DBPwd) then
msgbox " Please enter valid Database Password "
Exit Sub
End If
End If

If userselections.txtFile.value ="" OR userselections.txtFile1.value ="" OR userselections.txtFile2.value ="" OR userselections.txtFile3.value ="" Then 
msgbox "Please Enter the Installer Plugin details!!!"
Else

 Note : Sending data to Batch file "Installer.bat"
Dim arrLogin
arrLogin = Array(userselections.txtFile.value,userselections.txtFile1.value,userselections.txtFile2.value,userselections.txtFile3.value)Set WShell = CreateObject("Wscript.Shell")
Wshell.run "Installer.bat """ & arrLogin(0) & """ """& arrLogin(1) &""" """& arrLogin(2) &""" """& arrLogin(3) &""""
Set WShell = Nothing
window.close
End If
End Sub
< /script >
< /head >
< body background="PlugIn.JPG" >
< form name="userselections" >
< br > < br > < br > < br > < br > < br > < br >
< table BORDER=10 BORDERCOLORLIGHT=Lightblue BORDERCOLORDARK=BLUE align=center >< tr >
< td >
WAMP Server Installation Directory
< /td >
< td >
< input type = "text" name = "txtFile" size="40"/ >   
< input type = "button" value = "Browse..." onClick="ChooseSaveFolder" style="height:25px; width:100px; color:blue"/ >
< /td >
< /tr >
< tr >
< td >
Test case Management Tool Installation Directory
< /td >
< td >
< input type = "text" name = "txtFile1" size="40"/ > 
< input type = "button" value = "Browse..." onClick="ChooseSaveFolder1" style="height:25px; width:100px; color:blue"/ >
< /td >
< /tr >
< tr >
< td >
Test case Management Tool Database Name
< /td >
< td >
< input type = "text" name = "txtFile2" size="40"/ >< /td >
< /td >
< /tr >
< tr >
< td >
Test case Management Tool Database Password
< /td >
< td >
< input type = "password" name = "txtFile3" size="40"/ >
< /td >
< /tr >
< tr align=center >
< td colspan=2 >
< input type="button" value="Submit" name="run_button" onClick="CheckMaster" style="height:25px; width:150px; color:blue"/ >
< /td >
< /tr >
< /table >
< /form >
< /body >
< /html > 

Step 2 : Create a bat file named Installer. bat

This file obtains values from hta file with double quotes. Here we are removing that double quotes with the help of for loop 

@ECHO off
ECHO.
set wp_dir= %1
Note :Remove double quotes
for /f "useback tokens=*" %%a in ('%wp_dir%') do set wp_dir=%%~a
SET tl_dir= %2
for /f "useback tokens=*" %%a in ('%tl_dir%') do set tl_dir=%%~a
SET tl_dbname= %3
for /f "useback tokens=*" %%a in ('%tl_dbname%') do set tl_dbname=%%~a
SET tl_db_passwd= %4
for /f "useback tokens=*" %%a in ('%tl_db_passwd%') do set tl_db_passwd=%%~a

ECHO WAMP Server Installation Directory: %wp_dir%
ECHO Test case management tool Installation Directory: %tl_dir%
ECHO Test case management tool Database name: %tl_dbname%
PAUSE