Tuesday, April 28, 2009

Monday, April 6, 2009

What is Web Service

Web services are Application Services implemented to keep the interaction machine to machine over a network.Those are frequently just web application interface(API) that can be accessed over a network, such as the internet, and executed on a remote system hosting the requested services.

Xml and Http is the basic web services platform

Platform element of web services:

  • SOAP (Simple Object Access Protocol)
  • UDDI (Universal Description, Discovery and Integration)
  • WSDL (Web Services Description Language)

Common Issues in axis2 web services engine

How to get external file path in building .aar file for axis2 web service
If you using file input stream to read the files.

Solution one : You can give the file path from tomcat home
eg: webapps/axis2/WEB-INF/..

Solution two : You can give the full file path
eg: E:\\test\\...

Create .aar (web service) from eclips IDE

Step 1.

Copy the Axis2_Service_Archiver into the plugins directory of the eclips.

Step 2.

Go to Project Name in ecips IDE and right click on it and go to new option and select the other option

Select the Axis2 Service archiver in the Axis2 wizards as above and Click next

Step 3

Keep default and click next

Step 4

click next

Step 5

click next

Step 06

Set Class path to the web service class and give service name as you wish and click next.

Steo 07

Set the Out Put file properties and click next

Step 08

Bulild Success Message