简体   繁体   中英

How to Determine the WSDL that will be Emitted for a Given Java Web Service?

Please tell me how to write wsdl file of service developed in java. For example:

package fromjava.server;

import javax.jws.WebService;
import javax.jws.WebMethod;

@WebService
public class AddNumbersImpl {

  @WebMethod(action="addnumbers")
  public int addNumbers(int number1, int number2) {
    return (number1+number2);
  }
}

this is a web service....so what will be the corresponding wsdl file? if u guys have any tutorial then please help me out.

You can use axis2's java2wsdl to generate the wsdl from a java interface. see http://ws.apache.org/axis/java/user-guide.html#Java2WSDLBuildingWSDLFromJava

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM