Solved

Webservices

Posted on 2013-05-22
2
238 Views
Last Modified: 2013-05-26
I have a class and i want to develop a wsdl file out of it
can somebody tell me how it can be done using eclipse and
using  Apache CXF, I am using  Apache Tomcat 7.0

 
===============================================================
import javax.jws.WebService;
@WebService(targetNamespace = "http://superbiz.org/wsdl")
public interface CalculatorWs {
       public int sum(int add1, int add2);

      public int multiply(int mul1, int mul2);

===========================================================

public class Calculator implements CalculatorWs {

      @Override
      public int sum(int add1, int add2) {
            // TODO Auto-generated method stub
            return add1 + add2;
      }

      @Override
      public int multiply(int mul1, int mul2) {
            // TODO Auto-generated method stub
            return mul1 * mul2;
      }

}

Thanks
0
Comment
Question by:roy_sanu
2 Comments
 
LVL 20

Accepted Solution

by:
chaitu chaitu earned 500 total points
ID: 39186829
0
 
LVL 16

Expert Comment

by:Valeri
ID: 39186928
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now