Solved

Webservices

Posted on 2013-05-22
2
253 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 500 total points
ID: 39186829
0
 
LVL 16

Expert Comment

by:Valeri
ID: 39186928
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
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…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

728 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