License: (CC 3.0) BY-NC-SA
references:
- web service大讲堂之axis2(1):用pojo实现零配置的webservice
- web service大讲堂之axis2(2):复合类型数据的传递
- web service大讲堂之axis2(3):使用services.xml文件发布web service
- web service大讲堂之axis2(4):二进制文件传输
- web service大讲堂之axis2(5):会话(session)管理
- web service大讲堂之axis2(6):跨服务会话(session)管理
- web service大讲堂之axis2(8):异步调用web service
- web service大讲堂之axis2(9):编写axis2模块(module)
- web service大讲堂之axis2(10):使用soapmonitor模块监视soap请求与响应消息
works to be finished
- the wsdl generated live by the axis.war will specify parameters of method to param0, param1, etc.
you can use ant task to fix this problem, see http://www.coderanch.com.sixxs.org/t/224113/Web-Services/java/Parameter-names-wsdl-axis
or you can add -g option to compilation, see http://wso2.org.sixxs.org/blog/sumedha/3727
-
in project file_service, when i use:
while ((n = file.getInputStream().read(buffer)) > 0) fos.write(buffer, 0, n);
it seems that the cycle is going to be a endless loop, which means will drain all free space on server’s disk. but i changed to this:
java.io.InputStream is = file.getInputStream();
while ((n = is.read(buffer)) >= 0)
fos.write(buffer, 0, n);</code>
it fixed! i don’t know why
Errors
- namespace missmatch: just change your QName object instance to the namespace that required
- The service cannot be found for the endpoint reference: web browser address is not correct
- can’t find specific file: a compromise solution is specify the file a absolute path