followed this one:http://www.ylls.asia/a/wangyesheji/Webkaifa/201306/2834.html

解决方案 »

  1.   

    你要生成客户端,必须给它提供一个WSDL文件或者地址。
      

  2.   

    WSDL文件已经被自动生成了呀,
    在WebContent下能找到
      

  3.   

    试了这个,不行:
    You must be sure that in the creation moment of your Web Dynamic Project, you have 
    chosen "Dynamic Web Module Version" to be below 3.0. Version 2.5 will work. After that you need to add "Axis2 Web Services" to the facets of the project.
      

  4.   

     改成top down方式后,能够运行了,但结果错误,全返回-3,由以下自动生成的程序引起,WHY?
    /**
     * CalculateServiceSoapBindingImpl.java
     *
     * This file was auto-generated from WSDL
     * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
     */package edu.sjtu.webservice;public class CalculateServiceSoapBindingImpl implements edu.sjtu.webservice.CalculateService{
        public float divide(float x, float y) throws java.rmi.RemoteException {
            return -3;
        }    public float multiply(float x, float y) throws java.rmi.RemoteException {
            return -3;
        }    public float minus(float x, float y) throws java.rmi.RemoteException {
            return -3;
        }    public float plus(float x, float y) throws java.rmi.RemoteException {
            return -3;
        }}