axis2 gennrate java code

来源:互联网 发布:mysql手工注入 编辑:程序博客网 时间:2024/05/17 08:01

1)download Binary distribution zip file from http://axis.apache.org/axis2/java/core/download.html

2)unpack,cd bin dir

3)

method1 from XML or WSDL :

wsdl2java.bat -uri  d:\test.xml -o e:\Test 

Method2 from url:

wsdl2java.bat -uri  http://localhost/hello?wsdl -o e:\Test


#note: -o(output dirs)

4) method invoke,just like this:

 PersonSvcStub  pers = new PersonStub();
 GetPersonResponse p = pers.getPerson(new PersonStub.GetPerson());


0 0
原创粉丝点击