Google
 

Wednesday, August 29, 2007

Viruses: frequently asked questions (Basic)



Here are answers to some common questions about viruses, worms, and
Trojan horses.



What is a virus?
A virus is a program that replicates itself. It spreads by making
copies of itself on a computer or by inserting computer code into
program or operating system files. Viruses don't always damage files or
computers, but they usually affect a computer's performance and
stability. For a virus to infect a computer or to spread, you usually
have to do something, such as open an infected e-mail attachment.

Are all viruses
harmful?
Yes, to varying degrees. Virus damage can range from slowing computer
performance to a loss of information and programs. In the worst case,
viruses delete or modify information and programs on your computer.
Some e-mail viruses send confidential information in messages when
spreading. Even when a virus is not directly damaging information, the
process of replication can slow your computer and Internet connection.

What is a worm?
A worm is computer code that spreads without user interaction. Most
worms begin as e-mail attachments that infect a computer when they're
opened. The worm scans the infected computer for files, such as address
books, or temporary webpages, that contain e-mail addresses. The worm
uses the addresses to send infected e-mail, and often mimics (or
spoofs) the "From" addresses in subsequent e-mail messages so that
those infected messages appear to be from someone you know. Worms then
spread automatically through e-mail, networks, or operating system
vulnerabilities, often overwhelming those systems before the cause is
known. Worms aren't always destructive to computers, but they usually
cause computer and network performance and stability problems.

What is a Trojan horse?
A Trojan horse is a malicious software program that hides inside other
programs. It enters a computer hidden inside a legitimate program, such
as a screen saver. It then puts code into the operating system, which
enables a hacker to access the infected computer. Trojan horses do not
usually spread by themselves; they are spread by viruses, worms, or
downloaded software.

What is a blended threat?
A blended threat is a combination of some or all of the malicious
programs discussed in the sections above. Blended threats often begin
when someone interacts with a virus (such as opening an unsafe e-mail
attachment). The virus automatically propagates using worm behavior,
and then installs a Trojan horse on the infected computer.

How do I prevent viruses?
Install an antivirus program. To be most effective, an antivirus
program should always be turned on, should scan incoming e-mail, and
should scan file access.

How do I know if my computer has a virus?
There is no single indicator of a virus infection, but some of the
more common effects include poor computer performance, pop-up ads
displaying (even when you have turned on a pop-up blocker or
disconnected from the Internet).

How do I check for and remove viruses?
To check for viruses and remove them from your computer, you need to
run antivirus software.

How to help prevent computer viruses

Nothing can guarantee the security of your computer 100 percent.

You can continue to improve your computer's security and decrease the
possibility of infection by using a firewall, keeping your system
up-to-date, maintaining a current antivirus software subscription, and
following a few best practices.

Tip: Because no security method is guaranteed, it's important to back
up critical files on a regular basis before you encounter a virus or
other problems.

Steps to help avoid viruses:
1.
Use an Internet firewall (Note: Windows XP with SP2 has a firewall
already built-in and turned on by default).

2.
Visit Microsoft Update and turn on Automatic Updates.

3.
Subscribe to industry standard antivirus software, such as Windows
Live OneCare and keep it current.

4.
Never open an e-mail attachment from someone you don't know.

5.
Avoid opening an e-mail attachment from someone you know, unless you
know exactly what the attachment is. The sender may be unaware that it
contains a virus.



What about spyware?
Although spyware programs are different from viruses, some can behave
like viruses and pose similar and other risks. Visit our spyware page
to learn more and to install Windows Defender at no charge.


Worm__elbasuer__WormA self-replicating program, similar to a virus. A
worm can make it possible for a malicious user to take over your
computer or can send out enough copies of itself to cause your computer
or a web or network server to stop responding. Virus__elbasuer__VirusA
program that attempts to spread from computer to computer and either
cause damage (by erasing or corrupting data) or annoy users (by
printing messages or altering what is displayed on the screen).

How can I tell if my computer has a virus?

If you can answer "yes" to any of the following questions, your
computer might have a virus.

Is your computer running very slowly? A common symptom of a virus is
much slower than normal computer performance. However, there can be
other reasons for slow performance, including a hard disk that needs
defragmenting, a computer that needs more memory (RAM), or the
existence of spyware or adware. For more information about spyware, see
How to tell if your computer is infected with spyware.

Are you getting unexpected messages, or are programs starting
automatically? Some viruses can cause damage to Windows or some of your
programs. The results of this damage might include messages appearing
unexpectedly, programs starting or closing automatically, or Windows
shutting down suddenly.

Is your modem or hard disk working overtime? An e-mail virus works by
sending many copies of itself by e-mail. One indicator of this is
that the activity light on your broadband or external modem is
constantly lit; another is the sound of your computer's hard disk
continually working. These are not always symptoms of a computer virus,
but when combined with other problems, can indicate a virus infection.

To check for viruses, scan your computer with an antivirus program. New
viruses appear every day, so keeping your antivirus program updated is
important. For more information about computer security, go to the
Security at Home page on the Microsoft website.

Signs of viruses: Are you infected?

After you open and run an infected program or attachment on your
computer, you might not realize that you've introduced a virus until
you notice something isn't quite right.

Here are a few primary indicators that your computer might be infected:

· Your computer runs more slowly than normal

· Your computer stops responding or locks up often

· Your computer crashes and restarts every few minutes

· Your computer restarts on its own and then fails to run normally

· Applications on your computer don't work correctly

· Disks or disk drives are inaccessible

· You can't print correctly

· You see unusual error messages

· You see distorted menus and dialog boxes


These are common signs of infection-but they might also indicate
hardware or software problems that have nothing to do with a virus.
Unless you run the Microsoft Malicious Software Removal Tool and
install industry-standard, up-to-date antivirus software on your
computer, there is no way to be certain if your computer is infected
with a virus or not. If you don't have current antivirus software
installed or if you're interested in installing a different brand, you
can try Windows Live OneCare free for 90 days or visit our Security
software downloads page for software from other companies.

Tip: Beware of messages warning you that you sent e-mail that contained
a virus. This can indicate that the virus has listed your e-mail
address as the sender of tainted e-mail. This does not necessarily mean
you have a virus. Some viruses have the ability to forge e-mail
addresses.


Articles taken from
Microsoft.com
 

Monday, August 27, 2007

Some cool tips you can use to improve your communication skills

Some cool tips you can use to improve your communication skills


1 . Awareness of your own interaction with other people is the first step in improving your communication skills.


Learn to identify which types of situations make you uncomfortable and then modify your behavior to achieve positive results is a critical step in improving your communication skills.


You can learn to become aware of behaviors in other people that prompt you to respond in negative ways and modify your own behavior to turn the situation into a positive experience.



2 . You must accept responsibility for your own behavior and do not fear apologizing for errors in judgment or insensitive actions.


Asking others for honest feedback about the way you interact with others can be very helpful. Accept the negative feedback along with the positive and make changes accordingly.


3 . Your non-verbal communication is equally as important as the things that you say. Positive body language is extremely important in your interactions with other people.


If your words and your actions do not match, you will have a difficult time succeeding in social situations.


4 . In order to learn how to improve your communication skills, you must become a great listener. You must fight the urge to respond immediately and really listen to what the other person is trying to communicate.


Offering suggestions or criticism before you are certain of the other person's intent can only lead to frustration for both parties.


5 . Improving your communication skills is a process and cannot be accomplished overnight . Trying to improve or change too many things at once will be counter-productive.


You will become discouraged and overwhelmed if you attempt to change your entire personality all at once. Choose one or two traits at a time and work on those over a period of time. Learn to take advantage of your personal strengths and make a positive i

SEO Series Batch 7 - Top 5 Google Ranking Factors



SEO Series continues and the linky love is getting bigger every time. Today I will show you the most important search engine factors that Google's algorithm known as "Googlebot" values the most. . SEOMoz released a document about the Google's algorithm and how it works and here are top 5 positive and top 5 negative factors from that document.

Top 5 Positive Factors:

1. Keyword Use In Title Tag - In my opinion the most important factor for getting great search engine rankings! Explained here: Google Top 10 - Post Title Optimization        
2. Global Link Popularity Of The Site
3. Anchor Text Of Incoming Links
4. Link Popularity Within The Site
5. Age Of The Site

Top 5 Negative Factors:
1. Server Is Often Inaccessible To Googlebot
2. Content Which Is Very Similar Or Duplicate to Existing Content On The Web
3. External Links To Low Quality Sites
4. Participation In Link Schemes or Actively Selling Links
5. Duplicate Meta Tags On More Pages


Use this factors as your "bible" for SEO optimization!
What ever you do regarding SEO, think of this post and read it again and again.

100 keyboard shortcuts to pace up your work

100 keyboard shortcuts to pace up your work

 

 

CTRL+C (Copy)
CTRL+X (Cut)
CTRL+V (Paste)
CTRL+Z (Undo)
DELETE (Delete)
SHIFT+DELETE (Delete the selected item permanently without placing the item in the Recycle Bin)
CTRL while dragging an item (Copy the selected item)
CTRL+SHIFT while dragging an item (Create a shortcut to the selected item)
F2 key (Rename the selected item)
CTRL+RIGHT ARROW (Move the insertion point to the beginning of the next word)
CTRL+LEFT ARROW (Move the insertion point to the beginning of the previous word)
CTRL+ ;DOWN ARROW (Move the insertion point to the beginning of the next paragraph)
CTRL+UP ARROW (Move the insertion point to the beginning of the previous paragraph)
CTRL+SHIFT with any of the arrow keys (Highlight a block of text)
SHIFT with any of the arrow keys (Select more than one item in a window or on the desktop, or select text in a document)
CTRL+A (Select all)
F3 key (Search for a file or a folder)
ALT+ENTER (View the properties for the selected item)
ALT+F4 (Close the active item, or quit the active program)
ALT+ENTER (Display the properties of the selected object)
ALT+SPACEBAR (Open the shortcut menu for the active window)
CTRL+F4 (Close the active document in programs that enable you to have multiple documents open simultaneously)
ALT+TAB (Switch between the open items)
ALT+ESC (Cycle through items in the order that they had been opened)
F6 key (Cycle through the screen elements in a window or on the desktop)
F4 key (Display the Address bar list in My Computer or Windows Explorer)
SHIFT+F10 (Display the shortcut menu for the selected item)
ALT+SPACEBAR (Display the System menu for the active window)
CTRL+ESC (Display the Start menu)
ALT+Underlined letter in a menu name (Display the corresponding menu)
Underlined letter in a command name on an open menu (Perform the corresponding command)
F10 key (Activate the menu bar in the active program)
RIGHT ARROW (Open the next menu to the right, or open a submenu)
LEFT ARROW (Open the next menu to the left, or close a submenu)
F5 key (Update the active window)
BACKSPACE (View the folder one level up in My Computer or Windows Explorer)
ESC (Cancel the current task)
SHIFT when you insert a CD-ROM into the CD-ROM drive (Prevent the CD-ROM from automatically playing)

 

 

Dialog Box Keyboard Shortcuts

 

CTRL+TAB (Move forward through the tabs)
CTRL+SHIFT+TAB (Move backward through the tabs)
TAB (Move forward through the options)
SHIFT+TAB (Move backward through the options)
ALT+Underlined letter (Perform the corresponding command or select the corresponding option)
ENTER (Perform the command for the active option or button)
SPACEBAR (Select or clear the check box if the active option is a check box)
Arrow keys (Select a button if the active option is a group of option buttons)
F1 key (Display Help)
F4 key (Disp lay the items in the active list)
BACKSPACE (Open a folder one level up if a folder is selected in the Save As or Open dialog box)

 

 

Microsoft Natural Keyboard Shortcuts

 

Windows Logo (Display or hide the Start menu)
Windows Logo+BREAK (Display the System Properties dialog box)
Windows Logo+D (Display the desktop)
Windows Logo+M (Minimize all of the windows)
Windows Logo+SHIFT+M (Restore the minimized windows)
Windows Logo+E (Open My Computer)
Windows Logo+F (Search for a file or a folder)
CTRL+Windows Logo+F (Search for computers)
Windows Logo+F1 (Display Windows Help)
Windows Logo+ L (Lock the keyboard)
Windows Logo+R (Open the Run dialog box)
Wi ndows Logo+U (Open Utility Manager)

 


Accessibility Keyboard Shortcuts

 

Right SHIFT for eight seconds (Switch FilterKeys either on or off)
Left ALT+left SHIFT+PRINT SCREEN (Switch High Contrast either on or off)
Left ALT+left SHIFT+NUM LOCK (Switch the MouseKeys either on or off)
SHIFT five times (Switch the StickyKeys either on or off)
NUM LOCK for five seconds (Switch the ToggleKeys either on or off)
Windows Logo +U (Open Utility Manager)

 

 

Windows Explorer Keyboard Shortcuts

 

END (Display the bottom of the active window)
HOME (Display the top of the active window)
NUM LOCK+Asterisk sign (*) (Display all of the subfolders that are under the selected folder)
NUM LOCK+Plus sign (+) (Display the contents of the selected folder)
NUM LOCK+Minus sign (-) (Collapse the selected folder)
LEFT ARROW (Collapse the current selection if it is expanded, or select the parent folder)
RIGHT ARROW (Display the current selection if it is collapsed, or select the first subfolder)

 


Shortcut Keys for Character Map

 

After you double-click a character on the grid of characters, you can move through the grid by using the keyboard shortcuts:
RIGHT ARROW (Move to the right or to the beginning of the next line)
LEFT ARROW (Move to the left or to the end of the previous line)
UP ARROW (Move up one row)
DOWN ARROW (Move down one row)
PAGE UP (Move up one screen at a time)
PAGE DOWN (Move down one screen at a time)
HOME (Move to the beginning of the line)
END (Move to the end of the line)
CTRL+HOME (Move to the first character)
CTRL+END (M ove to the last character)
SPACEBAR (Switch between Enlarged and Normal mode when a character is selected)

 

 

Microsoft Management Console (MMC) Main Window Keyboard Shortcuts

 

CTRL+O (Open a saved console)
CTRL+N (Open a new console)
CTRL+S (Save the open console)
CTRL+M (Add or remove a console item)
CTRL+W (Open a new window)
F5 key (Update the content of all console windows)
ALT+SPACEBAR (Display the MMC window menu)
ALT+F4 (Close the console)
ALT+A (Display the Action menu)
ALT+V (Display the View menu)
ALT+F (Display the File menu)
ALT+O (Display the Favorites menu)
MMC Console Window Keyboard Shortcuts
CTRL+P (Print the current page or active pane)
ALT+Minus sign (-) (Display the window menu for the active console window)
SHIFT+F10 (Display the Action shortcut menu for the selected item)
F1 key (Open the Help topic, if any, for the selected item)
F5 key (Update the content of all console windows)
CTRL+F10 (Maximize the active console window)
CTRL+F5 (Restore the active console window)
ALT+ENTER (Display the Properties dialog box, if any, for the selected item)
F2 key (Rename the selected item)
CTRL+F4 (Close the active console window. When a console has only one console window, this shortcut closes the console)

 


Remote Desktop Connection Navigation

 

CTRL+ALT+END (Open the m*cro$oft Windows NT Security dialog box)
ALT+PAGE UP (Switch between programs from left to right)
ALT+PAGE DOWN (Switch between programs from right to left)
ALT+INSERT (Cycle through the programs in most recently used order)
ALT+HOME (Display the Start menu)
CTRL+ALT+BREAK (Switch the client computer between a window and a full screen)
ALT+DELETE (Display the Windows menu)
CTRL+ALT+Minus sign (-) (Place a snapshot of the active window in the client on the Terminal server c lipboard and provide the same functionality as pressing PRINT SCREEN on a local computer.)
CTRL+ALT+Plus sign (+) (Place a snapshot of the entire client window area on the Terminal server clipboard and provide the same functionality as pressing ALT+PRINT SCREEN on a local computer.)

 

 

Microsoft Internet Explorer Navigation

 

CTRL+B (Open the Organize Favorites dialog box)
CTRL+E (Open the Search bar)
CTRL+F (Start the Find utility)
CTRL+H (Open the History bar)
CTRL+I (Open the Favorites bar)
CTRL+L (Open the Open dialog box)
CTRL+N (Start another instance of the browser with the same Web address)
CTRL+O (Open the Open dialog box, the same as CTRL+L)
CTRL+P (Open the Print dialog box)
CTRL+R (Update the current Web page)
CTRL+W (Close the current window)

Friday, August 24, 2007

Apache2 Installation on Windows

Apache2 Installation on Windows

Thursday, August 23, 2007

August 16, 2007








A Quick Implementation Guide for Web Services using Axis






























Table of Contents



1.Introduction 3

2.What are Web Services? 3

3.The Web Services Architecture 4

4.The Basic Web Services Stack 4

5.Introduction to Axis 6

6.Software Requirements 6

7.A Quick implementation of Web Services using Axis 6

8.Conclusion 14

9.References 14


  1. Introduction


This document provides basic overview on Web Services and explains how quick web services can be implemented using Apache Axis.

  1. What are Web Services?

Web services are distributed applications that expose an XML Interface defined in XML

  • Loosely Coupled

  • Platform and implementation neutral

  • Coarse Grained

  • Ability to be synchronous and asynchronous

  • Supports Remote Procedure Calls (RPCs)

  • Support for Document Exchange


    • XML Based

      • By using XML as data representation layer for all web services protocols and technologies that are created, these technologies are interoperable at a core level



    • Loosely Coupled

      • The concept of an interface to be thoroughly applied.

      • The web services offered or the implementation may change but the interfaces must strive to remain the same.


    • Coarse Grained

      • Businesses must strive that the interfaces they expose are coarse grained.

      • Web services offer a natural way to define coarse grained services that access the right amount of business logic.


    • Ability to be synchronous and asynchronous

      • To say the least both semantics are absolutely vital.


    • Supports Remote Procedure Calls(RPCs)

      • Web services allow clients to invoke procedures, functions, and methods on remote objects using XML-based RPC.

      • Remote procedures expose input and output parameters that web services must support.

      • It is also vital to translate XML based calls to native platform calls.(EJBs , RMI, .NET)


    • Support for Document Exchange

      • One of the key advantages of XML is its generic way of representing not only data but also complex documents.

  1. The Web Services Architecture

There can be tremendous benefits to web services. We have heard of interoperability between platforms, ability to invoke a web service over a ubiquitous network technology, and so on.


So what is it?? Let’s take a look at a conceptual model.


  • Web Services are self-contained, modular applications that can be described, published, located, and invoked over a network, generally, the World Wide Web.


  • The Web Services architecture describes three roles: Service provider, Service requester and Service broker; and three basic operations: publish, find and bind. A network component can play any or all of these roles.



  • A Web Services architecture implementation should allow for incremental security and quality of service models facilitated by configuring a set of environmental prerequisites (for example, authentication mechanism, billing, and so on) to control and manages the interactions.


  • Web Services can be dynamically composed into applications stemming from capabilities-based look-up at runtime, instead of the traditional static binding. The dynamic nature of the collaborations allow the implementations to be platform- and programming language-neutral, and communications mechanism-independent, while creating innovative products, processes, and value chains.

  1. The Basic Web Services Stack

Now let’s understand Web Services Stack. Basic Web Services Stack contains:

    • Simple Object Access Protocol (SOAP).

    • Web Services Definition Language (WSDL).

    • Universal Description, Discovery, and Integration (UDDI).



  • SOAP

    • Provides a standard packaging structure for transporting XML documents over a variety of standard Internet Technologies.

    • Also defines encoding and binding standards for encoding non-XML RPC invocation in XML for transport.

    • Heterogeneous platforms become interoperable

    • The Basic SOAP Structure



  • WSDL

Another XML grammar that describes the interface of the Web Service. You may want to compare it only in concept to the “Remote Interface” of Java RMI or the “Interface Definition Language File (IDL)” for RPC. More specifically it standardizes how a web service represents the input and output parameters of an invocation externally. I.e. The function structure, the nature of invocation (in, in/out, etc), and the service protocol binding. And since it is XML grammar, don’t need to say it is interoperable to anyone who understands the grammar.


WSDL in the Eco System


  • UDDI

    • UDDI provides a world wide registry of web services for advertisements, discovery, and integration purposes.

    • UDDI could be dynamic or static and a Business Analysts and technologists could use UDDI to search for available web services.

    • The UDDI Business Registry provides a place for a company to programmatically describe their services and business processes and their preferred methods for conducting business.

  1. Introduction to Axis


The Apache extensible Interaction System (Axis) is basically a SOAP engine. It represents a framework for constructing SOAP processors such as clients, servers, or gateways. Axis is an Apache open-source project and is written in Java.


Besides being a SOAP engine, Axis also includes the following features:

  • A server that plugs into servlet engines such as Web Sphere Application Server or Apache Tomcat

  • Extensive support for the Web service description language (WSDL)

  • Tools that generate Java classes from WSDL and vice versa (WSDL2Java and Java2WSDL).

  • A tool for monitoring TCP/IP packets


TCP/IP monitoring is a very efficient tool for Web services’ debugging and troubleshooting.

  1. Software Requirements

Web server: Apache Jakarta Tomcat v4.1
JDK: Sun J2SE v1.4.2
Platform: Microsoft Windows XP


Implementation on Web logic Server can refer following link.


http://ws.apache.org/axis/java/install.html#WebLogic8.1

  1. A Quick implementation of Web Services using Axis

(8 Steps procedure):


Apache Axis alleviates the development of Web Services. This implementation is explained using Tomcat Server.


  1. Download Apache axis from the following URL.

http://archive.apache.org/dist/ws/axis/1_1/axis-1_1.zip

This URL downloads Apache Axis v1.1 zip file for Windows.


  1. Unzip the file at your convenient folder and you would see following folder structure after unzipping.



  1. Now we will have to deploy axis as Web Application in Tomcat Web Server. Copy axis folder under webapps folder to your Tomcat webapps folder.


  1. Set the Environment Variables

AXIS_HOME = C:Tomcatwebappsaxis

AXIS_LIB = %AXIS_HOME%WEB-INFlib

AXISCLASSPATH = %AXIS_LIB%axis.jar;%AXIS_LIB%axis-ant.jar;%AXIS_LIB%commons-discovery.jar; %AXIS_LIB%commons-logging.jar; %AXIS_LIB%jaxrpc.jar; %AXIS_LIB%saaj.jar; %AXIS_LIB%log4j-1.2.8.jar; %AXIS_LIB%wsdl4j.jar


Add %AXISCLASSPATH% to system CLASSPATH and environment variables entries look like the snap shot below.




Now the Axis setup and installation is ready to launch any web service.


To confirm that everything set correct,

    • Start Tomcat Server

    • Run this JSP.

http://localhost:8080/axis/happyaxis.jsp

This jsp confirms that all required axis Jars are in CLASSPATH and if there are any mandatory jars missing it would warn.


Above screen shot shows that installation and setup are successful.


  1. Let’s create a Service now, copy and save below code as TemperatureConverter.jws in %TOMCAT_HOME%/axis folder.


public class TemperatureConverter {


public float celsiusToFahrenheit (float celsius) {

float fahrenheit = (celsius *9/5)+32;

return fahrenheit;

}


public float fahrenheitToCelsius(float farenheit) {

float celsius = ((farenheit-32)*5/9);

return celsius;

}


}



  1. Now lets Check whether Service has been deployed or not and lets generate the WSDL for our Web Service.


  • Check for Service

http://localhost:8080/axis/TemperatureConverter.jws



  • Generate WSDL for our TemparatureConverter Web Service.

http://localhost:8080/axis/TemperatureConverter.jws?wsdl


Axis has generated WSDL for TemperatureConverter Web Service that we have deployed.


Now everything set correct and web service is ready.


  1. Start TCP Monitor (tcpmon) to view SOAP Messages that are exchanged between Server and Web Service Client.


Run following command at prompt.


C:> java org.apache.axis.utils.tcpmon

You would see the following screen


We should select a local port which tcpmon will monitor for incoming connections, a target host where it will forward such connections, and the port number on the target machine which should be "tunneled" to. Then click "add".

You should then notice another tab appearing in the window for your new tunneled connection. Looking at that panel, you'll see something like this.



Now each time a SOAP connection is made to the local port, you will see the request appear in the "Request" panel, and the response from the server in the "Response" panel. Tcpmon keeps a log of all request/response pairs, and allows you to view any particular pair by selecting an entry in the top panel. You may also remove selected entries, or all of them, or choose to save to a file for later viewing.


  • Now, Our Web Services Client should connect to port 8010, which is redirected to 8080 port by TCP Monitor.

  • If you don’t want to use TCP Monitor skip Step 7.


  1. Let’s write a Web Services Client to connect server.


import java.net.MalformedURLException;

import java.rmi.RemoteException;

import javax.xml.rpc.ParameterMode;

import javax.xml.rpc.ServiceException;

import org.apache.axis.client.Call;

import org.apache.axis.client.Service;

import org.apache.axis.encoding.XMLType;


/**

* @author V.V.Nagesh Akula

*/

public class TempConverterClient {

public static void main(String[] args) {

Float ret=null;

try {

String method = null;

method = "celsiusToFahrenheit";

Float f1 = new Float("30");

Service service = new Service();

Call call = (Call) service.createCall();

// Use port 8010, if you use TCP Monitor

// Use Port 8080, if you don’t use TCP Monitor

call.setTargetEndpointAddress(new java.net.URL(

"http://localhost:8010/axis/TemperatureConverter.jws"));

call.addParameter( "op1", XMLType.XSD_FLOAT, ParameterMode.IN );

call.setOperationName(method);

call.setReturnType(XMLType.XSD_FLOAT);

ret = (Float) call.invoke(new Object[] {f1});

} catch (MalformedURLException e) {

e.printStackTrace();

} catch (RemoteException e) {

e.printStackTrace();

} catch (ServiceException e) {

e.printStackTrace();

}


System.out.println("Got result : " + ret);


}


}


  • Console output that you would get after running Web Service Client.



























  • You would see SOAP messages that are exchanged, in TCP Monitor.





  1. Conclusion


This document gives a basic understanding of Web Services and a quick implementation of Web Services using Apache Axis Framework.


  1. References

http://ws.apache.org/axis/

Page 14 of 14

25 ways to eliminate Stress and stressful living!

Cut Stress in your Life