Solved

Webservices

Posted on 2013-05-22
2
245 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to implement Singleton Design Pattern in Java.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

910 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

22 Experts available now in Live!

Get 1:1 Help Now