当然可以,例子你可以看看Axis自带的例子:axis\samples\attachments,里面有详细说明。当然,它的客户端是Java的,但是你要转换为Delphi也不难。

解决方案 »

  1.   

    恩,刚刚试了一下axis\samples\attachments,确实不错,呵呵
      

  2.   

    例子是运行起来了,但是访问其wsdl时出现以下错误:
    AXIS error
    Sorry, something seems to have gone wrong... here are the details:Fault - ; nested exception is: 
    WSDLException: faultCode=OTHER_ERROR: Can't find prefix for 'urn:EchoAttachmentsService'. Namespace prefixes must be set on the Definition object using the addNamespace(...) method.: 
    AxisFault
     faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
     faultSubcode: 
     faultString: WSDLException: faultCode=OTHER_ERROR: Can't find prefix for 'urn:EchoAttachmentsService'. Namespace prefixes must be set on the Definition object using the addNamespace(...) method.: 
     faultActor: 
     faultNode: 
     faultDetail: 还有看了例子的调用方法的附件参数为DataHander,转变成wsdl却是复杂的数据类型,dephi无法使用。为什么参数不能是AttachmentPart?
    究竟在axis调用方法时如何实现附件传输,我试了好几天都没解决,大家帮帮我。
    我的环境是:jb8,tomcat4.12,axis1.1rc2.