没试过这东东WebLogic上的客户端可以把用到的类都生成出来,包括参数和返回值印象中是这样

解决方案 »

  1.   

    axis14里反正是没法返回List这种collection对象,只能用Object[]的方式。例子见我们教程:
    http://www.family168.com/tutorial/axis14/html/axis14-ch-03.html
      

  2.   

    public class TestRain {
        private static EndpointReference targetEPR = new EndpointReference(
                "http://localhost:8080/axis2/services/dd");    public static OMElement getQueryOMElement() {
            OMFactory fac = OMAbstractFactory.getOMFactory();
            OMNamespace omNs = fac.createOMNamespace("http://xut.edu.cn/",
                    "test");
            OMElement method = fac.createOMElement("query", omNs);
            method.setText("41100900");
            return method;
        }    public static void main(String[] args) {
            try {
                // Make the request message
                Options options = new Options();
                options.setTo(targetEPR);
                ServiceClient sender = new ServiceClient();
                sender.setOptions(options);
                options.setAction("query");
                // test query method
                OMElement query = TestRain.getQueryOMElement();
                OMElement result = sender.sendReceive(query);
                System.out.println(result);
            } catch (Exception axisFault) {
                axisFault.printStackTrace();
            }
        }
    }
    //-----------------------------------------
    供参考
    本例使用的是AXIS2.1.3版本