参考了
http://www.blogjava.net/nokiaguy/archive/2009/01/archive/2009/01/21/252255.html
Eclipse Juno中Axis2插件总是崩溃,于是转向了命令行方式发布webservice。具体步骤可以参考上述连接,但是具体配置讲解不是很清晰。附图如下:
服务器段工程目录为:
Biz和USer是要发布到服务器的两个class。
1. 需要新建文件夹LoginService,配置好目录。注意将class放置在与package名字相对应的目录结构下。
2. 编写services.xml
For User to Login
demo.axis2.User
Transaction
demo.axis2.Biz
XML文件的目录结构如下:
原因 Usually it means you're reading a document and assuming it's encoded in UTF-8 when it really isn't. And often that's caused by somebody writing the document in some encoding (which isn't UTF-8) and failing to declare that encoding on the document. Or worse, declaring the wrong encoding on the document.
需要将xml保存为UTF-8格式。
注意:
(参考了http://blog.csdn.net/crazycharming/article/details/6308501)
发布的service 问题报错中第一句是Invalid UTF-8 middle byte 0xc3
3. 命令行生成arr
4. 放入%Tomcat安装目录%\webapps\axis2\WEB-INF\services中。完成部署。