Solved

Webservices

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
groupNoAdj 7 96
maven project error 5 55
How to convert String matching to regex in java 4 33
CSV file parsing thru Java 13 31
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
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.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

777 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