axis2

2009/07/10 prehistoric

License: (CC 3.0) BY-NC-SA

references:

  1. web service大讲堂之axis2(1):用pojo实现零配置的webservice
  2. web service大讲堂之axis2(2):复合类型数据的传递
  3. web service大讲堂之axis2(3):使用services.xml文件发布web service
  4. web service大讲堂之axis2(4):二进制文件传输
  5. web service大讲堂之axis2(5):会话(session)管理
  6. web service大讲堂之axis2(6):跨服务会话(session)管理
  7. web service大讲堂之axis2(8):异步调用web service
  8. web service大讲堂之axis2(9):编写axis2模块(module)
  9. web service大讲堂之axis2(10):使用soapmonitor模块监视soap请求与响应消息

works to be finished

  1. 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

  1. 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

Search

    Table of Contents