?
Solved

Webservices

Posted on 2013-05-22
2
Medium Priority
?
257 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 20

Accepted Solution

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

Expert Comment

by:Valeri
ID: 39186928
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
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 will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses
Course of the Month9 days, 18 hours left to enroll

762 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