cancel
Showing results for 
Search instead for 
Did you mean: 

Web services

Former Member
0 Kudos

what is webservices ? is there difference between UDDI and Webservices

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Use of webservices:

You expose the implementation bean as a Web service by using the Web Services wizard that is integrated in the SAP NetWeaver Developer Studio. When you expose the implementation bean, you can use service endpoint interface (SEI) to expose some or all methods of the implementation bean as Web service methods.

sample code:

package com.sap.tutorial.helloworld;

import javax.ejb.Stateless;

import javax.jws.WebService;

import com.sap.engine.services.webservices.annotations.SrPublication;

@WebService(endpointInterface="com.sap.tutorial.helloworld.HelloBean_nckRemote", portName="HelloBean_nckBeanPort", targetNamespace="http://sap.com/tutorial/helloworld/", serviceName="HelloBean_nckService")

@Stateless(name="HelloBean")

public class HelloBean_nckBean implements HelloBean_nckRemote, HelloBean_nckLocal {

private String message = "Hello, ";

public String sayHello(String name) {

return message + name + ".";

}

}

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi

Web services are software system description to support interaction between machine to machine.

Web services can convert application into webapplication,can be used by other application.

Platform is XML + HTTP:XML is to code and decode the data.

uses:reusable application components

conncet to existing software i.e. exchange data and link data and solves interoperability problem.

Major elements are:

<port type>

<message>

<types>

<binding>

VijayalakshmiY

Former Member
0 Kudos

Hi,

Webservice is something which could be used by anyone once they have WSDL(by which we can identify a web service).

It is like an external service. The main use of webservice is that if you have some already existing system and if you want to build functionality ion top of then you can expose the existing functionality as a webservice.

This will guide you for developing basic webservice

http://help.sap.com/saphelp_nwce10/helpdata/en/46/923ee93e395823e10000000a1553f7/frameset.htm

Regards,

Srinivasan Subbiah

Former Member
0 Kudos

To put this really simple/basic :

A WebService is verry similar to RPC (Remote Procedure Call) or ORB (Object Request Broker). In practice, it's mainly a matter of protocols, and most ORBs and RPCs can use WebService protocols (SOAP) and therefore become WebServices themselves.

Put simply, you write a function in a server (IIS, JBOSS, NetWeaver (I suppose), ...), and you can call this function from clients.

Example (Micrtosoft IIS webservice ASP.NET):

On server, you write a file mainly containing this (not much more) :

{

...

[WebMethod]

public int GetAddition(int a, int b)

{//This executes on the server when called by client

return a+b;

}

...

}

On client :

static void Main()

{ //this executes on the client

...

WebService ws = new WebService(); //

int val = WebService.GetAddition(3,5); //This "jumps" to sevrer to executes

...

}

In practice, that just about sums up WebServices (and the "mighty SOA" at the same time...)

(in between client and server you will have clicked on a button to create WSDL, Stubs, Proxies, Factories, ... but in practice you usually hardly care about all this)

Angela

Edited by: Angela GALACY on Apr 23, 2008 8:42 PM

Former Member
0 Kudos

Hi Ragava,

Web services are self-contained, modularized, executable entities that can be published, searched for, and accessed across a network. For a caller or sender, a Web service is a black box that may require input and delivers a result

Once u have read abt webservice also read about enterprise services offered

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3d90febc-0601-0010-10aa-8bd25e49... ,

as they r th next big thing,also the link below gives u the differnce between the two

reward points if found helpful

Former Member
0 Kudos

hi Praveen,

you can go through this link below for basic idea.

http://www.w3schools.com/webservices/default.asp