Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Web services

what is webservices ? is there difference between UDDI and Webservices

Former Member
Former Member replied

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 + ".";

}

}

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question