http://community.csdn.net/Expert/topic/3948/3948520.xml?temp=.6160547

解决方案 »

  1.   

    我正好也用delphi与java webservice进行数据交换,以下代码测试顺利通过:
    public int uploadFile(byte[] fileContent) {
    int iResult = 0;
    FileOutputStream fos = null;
    try {
    fos = new FileOutputStream("f:/uploadfile");
    fos.write(fileContent);
    fos.flush();
    System.out.println("flush the file.");
    } catch (FileNotFoundException e) {
    iResult = -1;
    e.printStackTrace();
    } catch (IOException e) {
    iResult = -1;
    e.printStackTrace();
    } finally {
    if (fos != null)
    try {
    fos.close();
    } catch (IOException e) {
    }
    }
    return iResult;
    }
    不过我却遇到另类问题,我的webservice返回String类型在tomcat5中通过,在weblogic8.1中却是第一次调用能通过,其它则出现空指针错误,我怀疑是weblogic的问题,现在却苦无对策!
      

  2.   

    当然我的客户端是delphi写的,服务端是java的,用axis.
      

  3.   

    我的开发模式跟你们一样,数据库取用MS SQLServer 2000,发布到Tomcat上,现改为JBoss了,一直写的是JavaBean,现想转为EJB,不知怎么处理,不知能否生成WS留个QQ:42918586大家多交流