`

使用axis自动生成webservice客户端代码

    博客分类:
  • axis
阅读更多

参考:http://wenku.baidu.com/view/ab0a8b2dcfc789eb172dc814.html

 

自动生成的代码,可能会根据wsdl文件的不同而产生不同,参考上述文件文件做对应修改就可以了。

 

下面是我根据自动生成的代码,写的客户端,仅供参考:

 

public class Test {
    public static void main(String args[]) throws RemoteException, ServiceException {
        DmgxServiceLocator dsl = new DmgxServiceLocator();
        DmgxServicePortType dp = dsl.getDmgxServiceHttpPort();
        System.out.print(dp.getData("test", "123456"));
    }
}

   

    注:DmgxServicePortType即是调用方法接口类

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics