Web services basics

By: Saravanan D. Rao Emailed: 1768 times Printed: 2515 times    

Latest comments
By: rohit kumar - how this program is work
By: Kirti - Hi..thx for the hadoop in
By: Spijker - I have altered the code a
By: ali mohammed - why we use the java in ne
By: ali mohammed - why we use the java in ne
By: mizhelle - when I exported the data
By: raul - no output as well, i'm ge
By: Rajesh - thanx very much...
By: Suindu De - Suppose we are executing

Web services technologies provide a language-neutral, environment-neutral programming model that accelerates application integration inside and outside the enterprise. 

A Web service is an interface that describes a collection of operations that are network-accessible through standardized XML messaging. 

A Web service performs a specific task or a set of tasks and services and is described using a standard, formal XML notation, called its service description, which provides all of the details necessary to interact with the service, including message formats (that detail the operations), transport protocols, and location.  Web service descriptions are expressed in WSDL. 

Advantages of web services

  • Interoperability among distributed applications that 
    span diverse hardware and software platforms
  • Easy, widespread access to applications through 
    firewalls using Web protocols 
  • A cross-platform, cross-language data model (XML) 
    that facilitates developing heterogeneous distributed
    applications
  • Use of Standard protocols and specification enables 
    integration with Other Messaging Systems, Legacy 
    Systems, etc
  • Seamless Integration of B2B applications

Web Service Components

1. SOAP – Message Protocol
SOAP provides a simple and lightweight mechanism for exchanging structured and typed information between peers in a decentralized, distributed environment using XML 

2. WSDL – Service Description
Web Services Description Language (WSDL) is an XML format for describing Web services. WSDL enables one to separate the description of the abstract functionality offered by a service from concrete details of a service description such as "how" and "where" that functionality is offered.

3. UDDI – Service Registry
The Universal Description, Discovery and Integration (UDDI) specification defines a standard way to describe a Web service; register a Web service in a well-known registry; and discover other registered Web services. 

Technologies Used in J2EE

1. JAX-RPC

The Java API for XML-based RPC (JAX-RPC) is a Sun Microsystems specification that defines the client API for invoking a Web service

2. JAXR

The Java API for XML-Registries defines how to publish a Web service in a registry such as a UDDI or ebXML registry, or search a registry for a Web service


EJB Home | All EJB Tutorials | Latest EJB Tutorials

Sponsored Links

If this tutorial doesn't answer your question, or you have a specific question, just ask an expert here. Post your question to get a direct answer.



Bookmark and Share

Comments(1)


1. View Comment

Getting Invalid IPv4 format J2me Midp 2.0, Asp.net version 4.0, Ksoap2-j2me-core2.1.2 . Iâm using CLDC 1.1 MIDP2.0 and IIS7 Asp.net version 4.0 . My code is as followsâ¦

public String loginVerification(String userId, String pwd){
String Method_Name = âmLoginâ;
//String Method_Name = âLoginCheckâ;
try{
SoapObject request = new SoapObject(Constants.NAMESPACE_URL, Method_Name);
request.addProperty(âuseridâ, userId);
request.addProperty(âpasswordâ, pwd);
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
HttpTransport ht = new HttpTransport(Constants.LOGIN_URL);
ht.debug = true;
ht.call(Constants.NAMESPACE_URL+Method_Name, envelope); // getting error here
SoapPrimitive result = (SoapPrimitive) envelope.getResponse();
return result.toString();
}catch(IOException e){
return e.getMessage().toString();
}catch(XmlPullParserException e){
return e.getMessage().toString();
}

}

web service is as followsâ¦

[WebMethod]
public string mLogin(string userid, string password)
{
string message = string.Empty;
CommonDataEntity cd = new CommonDataEntity();
sqlfilter filter = new sqlfilter();
int retVal=cd.Select_CustomerLogin(filter.SqFilter(userid), filter.SqFilter(password), out message);

if (retVal > 0 && message == âUserâ)
{

return âtrue#â+cd.mLogin(userid);

}
else
{
return âfalse#â+userid;
}

}

Iâm not able to figure out where and what is the probâ¦. Need help!!


View Tutorial          By: Anup at 2013-01-02 05:11:51

Your name (required):


Your email(required, will not be shown to the public):


Your sites URL (optional):


Your comments:



More Tutorials by Saravanan D. Rao
Web services basics

More Tutorials in EJB
EJB 3 Entities
Web services basics
Required Classes/Interfaces That Must Be Provided for an Enterprise JavaBeans Component
Difference Between Session and Entity Beans
Difference Between Stateful and Stateless Session Beans
Managing Security in EJB
EJB Entity Beans
Types of EJB

More Latest News
Most Viewed Articles (in EJB )
Difference Between Stateful and Stateless Session Beans
Web services basics
EJB 3 Entities
Types of EJB
EJB Entity Beans
Required Classes/Interfaces That Must Be Provided for an Enterprise JavaBeans Component
Difference Between Session and Entity Beans
Managing Security in EJB
Most Emailed Articles (in EJB)
Types of EJB
EJB Entity Beans
EJB 3 Entities
Required Classes/Interfaces That Must Be Provided for an Enterprise JavaBeans Component
Difference Between Session and Entity Beans
Difference Between Stateful and Stateless Session Beans
Managing Security in EJB
Web services basics