- 浏览: 574935 次
- 性别:
- 来自: 上海
文章分类
- 全部博客 (174)
- JBPM (3)
- WWF (0)
- JavaScript (11)
- J2EE (40)
- OperationSystem (11)
- 数据库 (12)
- CSS (1)
- Ajax (2)
- J2SE (30)
- Tools (10)
- 服务器中间件 (3)
- 异常 (0)
- Flex (5)
- jQuery (11)
- html (9)
- Ejb (1)
- HTML5 Shiv–让该死的IE系列支持HTML5吧 (1)
- Spring (9)
- Quartz (3)
- log4j (1)
- maven (1)
- cpdetector (1)
- JSON (1)
- log4jdbc (1)
- asm (8)
- FusionCharts (1)
- jqplot (1)
- highcharts (1)
- excanvas (1)
- html5 (1)
- jpcap介绍 (1)
- weblogic (3)
- URLURLClassLoader (0)
- URLClassLoader (1)
- ant (2)
- ivy (2)
- nexus (1)
- IT (0)
- LoadRunner (1)
- SCSS (1)
- ruby (1)
- webstorm (1)
- typescript (1)
- Jboss7 (1)
- wildfly (1)
- oracle (5)
- esb (0)
- dubbo (2)
- zookeeper (3)
- eclipse (1)
- Android (2)
- Studio (1)
- Google (1)
- 微信 (1)
- 企业号 (1)
- Linux (13)
- Oracle12c (1)
- Hadoop (1)
- InletexEMC (1)
- Windows (1)
- Netty (3)
- Marshalling (2)
- Protobuf (1)
- gcc (1)
- Git (1)
- GitLab (1)
- shell (2)
- java (3)
- Spring4 (1)
- hibernate4 (1)
- postgresql (1)
- ApacheServer (2)
- Tomcat (2)
- ApacheHttpServer (2)
- realvnc (1)
- redhat (7)
- vncviewer (1)
- LVS (4)
- LVS-DR (1)
- RedHat6.5 (5)
- LVS-NAT (1)
- LVS-IPTUNNEL (2)
- LVS-TUN (1)
- keepalived (2)
- yum (1)
- iso (1)
- VMware (1)
- redhat5 (1)
- ha (1)
- nginx (2)
- proguard (1)
- Mat (1)
- DTFJ (1)
- axis2 (1)
- web service (1)
- centos (1)
- random (1)
- urandom (1)
- apache (1)
- IBM (1)
- cve (1)
- 漏洞 (1)
- JDBC (1)
- DataSource (1)
- jdk (1)
- tuxedo (2)
- wtc (1)
最新评论
-
skying007:
好资料,谢谢分享给啊
FusionCharts在服务器端导出图片(J2EE版) -
cgnnzg:
大神好 可以发一份源码给我学习么 多谢了 978241085 ...
springmvc+dubbo+zookeeper -
jifengjianhao:
求源码:854606899@qq.com
springmvc+dubbo+zookeeper -
wdloyeu:
shihuan8@163.com邮箱网盘在哪,没找到。能给份源 ...
Java Socket长连接示例代码 -
huangshangyuanji:
求代码:45613032@qq.com
springmvc+dubbo+zookeeper
1.下载axis2的eclipse插件.
点击附件即可,不要到其他地方下载。
2.把下好的两个插件包解压后放置myeclipse8.6安装目录下的dropins文件夹中。
笔者本机的实例目录: D:\Genuitec\MyEclipse-8.6\dropins
Axis2_Service_Archiver_1.3.0和Axis2_Codegen_Wizard_1.3.0要直接放在
D:\Genuitec\MyEclipse-8.6\dropins目录下,不要把axis2-eclipse-codegen-wizard和axis2-eclipse-service-archiver-wizard目录放在D:\Genuitec\MyEclipse-8.6\dropins下面。
[img][/img]
3.重启MyEclipse8.6后 File->New->Other
到此Axis2插件安装完毕。
用MyEclipse8.6建立Web Project工程,建完工程后要把axis2-1.5.4-bin.zip目录的lib目录下的所有jar文件加载到工程里。
并创建HelloServer.java文件:
File->New->Other->Axis2 Wizards
选中Axis2 Code Generator
在Fully Qualified Class Name处填写服务端的Java类全路径。
单击Add Folder按钮,选择到工程的classes目录,然后单击Test Class Loading按钮,如果显示为Class file loaded successfully则成功了。
选择在工程里添加WSDL文件并在Output location处填写生成wsdl文件的路径,Output file name为wsdl文件的名字。
然后刷新工程的src目录,这时会看见在Output location目录下会出现wsdl文件。
右键单击工程名字 New-Other
这个地方填写完Class name后面的axis2.service.server.HelloServer后单击Load按钮可能会报找不到axis2.service.server.HelloServer, 这个地方要等一下下, 等长一点儿时间再重新单击一次Load按钮就会好的。
单击Finish完成,好了,刷新一下项目,可以看到结构图如下:
可以看到在services目录下多了个sayhello_service.aar包。
编辑web.xml加入如下代码:
用MyEclipse8.6把工程发布到Tomcat下面, 这里笔者用的是Tomcat7.0。
启动Tomcat7.0后访问工程:
http://localhost:8081/TestAxis2Ws/services/HelloService?wsdl
点击附件即可,不要到其他地方下载。
2.把下好的两个插件包解压后放置myeclipse8.6安装目录下的dropins文件夹中。
笔者本机的实例目录: D:\Genuitec\MyEclipse-8.6\dropins
Axis2_Service_Archiver_1.3.0和Axis2_Codegen_Wizard_1.3.0要直接放在
D:\Genuitec\MyEclipse-8.6\dropins目录下,不要把axis2-eclipse-codegen-wizard和axis2-eclipse-service-archiver-wizard目录放在D:\Genuitec\MyEclipse-8.6\dropins下面。
[img][/img]
3.重启MyEclipse8.6后 File->New->Other
到此Axis2插件安装完毕。
用MyEclipse8.6建立Web Project工程,建完工程后要把axis2-1.5.4-bin.zip目录的lib目录下的所有jar文件加载到工程里。
并创建HelloServer.java文件:
package axis2.service.server; public class HelloServer { public String sayHello(String name){ return "Hello, " + name + "!"; } }
File->New->Other->Axis2 Wizards
选中Axis2 Code Generator
在Fully Qualified Class Name处填写服务端的Java类全路径。
单击Add Folder按钮,选择到工程的classes目录,然后单击Test Class Loading按钮,如果显示为Class file loaded successfully则成功了。
选择在工程里添加WSDL文件并在Output location处填写生成wsdl文件的路径,Output file name为wsdl文件的名字。
然后刷新工程的src目录,这时会看见在Output location目录下会出现wsdl文件。
右键单击工程名字 New-Other
这个地方填写完Class name后面的axis2.service.server.HelloServer后单击Load按钮可能会报找不到axis2.service.server.HelloServer, 这个地方要等一下下, 等长一点儿时间再重新单击一次Load按钮就会好的。
单击Finish完成,好了,刷新一下项目,可以看到结构图如下:
可以看到在services目录下多了个sayhello_service.aar包。
编辑web.xml加入如下代码:
<servlet> <servlet-name>AxisServlet</servlet-name> <servlet-class>org.apache.axis2.transport.http.AxisServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>AxisServlet</servlet-name> <url-pattern>/services/*</url-pattern> </servlet-mapping>
用MyEclipse8.6把工程发布到Tomcat下面, 这里笔者用的是Tomcat7.0。
启动Tomcat7.0后访问工程:
http://localhost:8081/TestAxis2Ws/services/HelloService?wsdl
<?xml version="1.0" encoding="UTF-8" ?> - <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://server.service.axis2" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://server.service.axis2"> <wsdl:documentation>HelloService</wsdl:documentation> - <wsdl:types> - <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://server.service.axis2"> - <xs:element name="sayHello"> - <xs:complexType> - <xs:sequence> <xs:element minOccurs="0" name="name" nillable="true" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> - <xs:element name="sayHelloResponse"> - <xs:complexType> - <xs:sequence> <xs:element minOccurs="0" name="return" nillable="true" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> </wsdl:types> - <wsdl:message name="sayHelloRequest"> <wsdl:part name="parameters" element="ns:sayHello" /> </wsdl:message> - <wsdl:message name="sayHelloResponse"> <wsdl:part name="parameters" element="ns:sayHelloResponse" /> </wsdl:message> - <wsdl:portType name="HelloServicePortType"> - <wsdl:operation name="sayHello"> <wsdl:input message="ns:sayHelloRequest" wsaw:Action="urn:sayHello" /> <wsdl:output message="ns:sayHelloResponse" wsaw:Action="urn:sayHelloResponse" /> </wsdl:operation> </wsdl:portType> - <wsdl:binding name="HelloServiceSoap11Binding" type="ns:HelloServicePortType"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /> - <wsdl:operation name="sayHello"> <soap:operation soapAction="urn:sayHello" style="document" /> - <wsdl:input> <soap:body use="literal" /> </wsdl:input> - <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> - <wsdl:binding name="HelloServiceSoap12Binding" type="ns:HelloServicePortType"> <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /> - <wsdl:operation name="sayHello"> <soap12:operation soapAction="urn:sayHello" style="document" /> - <wsdl:input> <soap12:body use="literal" /> </wsdl:input> - <wsdl:output> <soap12:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> - <wsdl:binding name="HelloServiceHttpBinding" type="ns:HelloServicePortType"> <http:binding verb="POST" /> - <wsdl:operation name="sayHello"> <http:operation location="HelloService/sayHello" /> - <wsdl:input> <mime:content type="text/xml" part="sayHello" /> </wsdl:input> - <wsdl:output> <mime:content type="text/xml" part="sayHello" /> </wsdl:output> </wsdl:operation> </wsdl:binding> - <wsdl:service name="HelloService"> - <wsdl:port name="HelloServiceHttpSoap11Endpoint" binding="ns:HelloServiceSoap11Binding"> <soap:address location="http://localhost:8081/TestAxis2Ws/services/HelloService.HelloServiceHttpSoap11Endpoint/" /> </wsdl:port> - <wsdl:port name="HelloServiceHttpSoap12Endpoint" binding="ns:HelloServiceSoap12Binding"> <soap12:address location="http://localhost:8081/TestAxis2Ws/services/HelloService.HelloServiceHttpSoap12Endpoint/" /> </wsdl:port> - <wsdl:port name="HelloServiceHttpEndpoint" binding="ns:HelloServiceHttpBinding"> <http:address location="http://localhost:8081/TestAxis2Ws/services/HelloService.HelloServiceHttpEndpoint/" /> </wsdl:port> </wsdl:service> </wsdl:definitions>
- axis2-eclipse-service-archiver-wizard.zip (5.1 MB)
- 下载次数: 2279
- axis2-eclipse-codegen-wizard.zip (9.2 MB)
- 下载次数: 2363
发表评论
-
ant+ivy+nexus的使用
2014-12-01 16:07 1550本文的大前提是先要搭建好nexus本地服务器。 工程目录结构 ... -
maven-dependency-plugin (goals "copy-dependencies", "unpack") is not supported b
2014-03-26 17:02 3465maven-dependency-plugin (goals ... -
maven打包过程执行自定义插件包
2014-02-13 15:00 1959附件中是笔者的案例。 -
maven duplicate finder plugin介绍
2014-01-22 16:52 2186maven-duplicate-finder-plugin是一 ... -
Ant+Svn打包Web工程
2013-03-02 16:58 1204http://blog.csd ... -
EmEditor
2012-10-02 10:37 1177http://www.emurasoft.com/ (官 ... -
ant打包Web工程
2012-03-18 13:13 3453build.properties文件内容如下: project ... -
MTracer工具介绍及软件下载
2011-12-09 11:06 1539点击匹配按钮即可看到结果。 附件里MTracer软件包, ... -
代码走查工具介绍
2011-08-10 19:52 6099FindBugs、PMD和CheckStyle是当前比较流行的 ...
相关推荐
axis2 1.6 MyEclipse8.6 插件 webservice 复制到MyEclipse文件夹下得dropins目录,重启MyEclipse 即可,X:\Genuitec\MyEclipse-8.6\dropins
Myeclipse8.6安装svn插件 及 步骤说明
MyEclipse8.6 中文SVN插件 解压目录到X:\Genuitec\MyEclipse-8.6下,重启MyEclipse即可.简单方便
MyEclipse 8.6安装Flash Builder 4.0插件方法
讲解在myeclipse6.5下axis2插件的安装,内容包含到怎么把axis2-eclipse-codegen-wizard-1.4.zip和axis2-eclipse-service-archiver-wizard-1.4.zip包解压放到myeclipse6.5\eclipse\plugin下面和link文件的设置
MyEclipse 8.6生成器可以随机生成MyEclipse 8.6注册所需的注册码,大家再也不用到网上无聊的搜索了,自己生成自己用。
Myeclipse 8.6注册码 Myeclipse 8.6注册码
myeclipse8.6整合SSH的大概介绍,有图片介绍 这有不尽之处,请见谅
MyEclipse8.6安装 spket1.6.18 插件 spket-1.6.18破解注册版
MyEclipse8.6汉化插件及教程,图文教程,简单易学
Myeclipse8.6注册方法,:将此段代码运行,即可以生成Myeclipse8.6注册码
NULL 博文链接:https://vvsongsunny.iteye.com/blog/1138065
myeclipse8.6注册码. 注册机
myeclipse8.6整合SSH(图文)
MyEclipse 8.5 8.6 注册机 key MyEclipse 8.5 8.6 注册机 key MyEclipse 8.5 8.6 注册机 key MyEclipse 8.5 8.6 注册机 key MyEclipse 8.5 8.6 注册机 key MyEclipse 8.5 8.6 注册机 key MyEclipse 8.5 8.6 注册机 ...
提供MyEclipse8.6 破解以及注册码
MyEclipse8.6汉化包 ,支持汉化MyEclipse8.6,本人已测试,绝对好用,内附汉化详细说明,里面有截图
myeclipse axis2插件,包括axis2-eclipse-codegen-plugin-1.6.2.zip 和 axis2-eclipse-service-plugin-1.6.2.zip;亲测myeclipse 8.6 可用。