【问题标题】:Error Calling WebService with Attachment with Axis调用带有 Axis 附件的 WebService 时出错
【发布时间】:2016-09-12 10:27:33
【问题描述】:

当我使用 Apache Axis 创建的客户端附加八位字节流并调用 WebService 时出现以下错误

java.io.IOException: No serializer found for class org.apache.axis.attachments.OctetStream in registry org.apache.axis.encoding.TypeMappingDelegate@c7b00c.

  Any suggestion on how I should proceed with the fix ?

问候,

SKR

【问题讨论】:

    标签: apache web-services client axis ioexception


    【解决方案1】:

    我终于通过编写自定义 OctetStreamSerializerFactory 和 OctetStreamDeSerilizerFactory 解决了这个问题。我将它添加到 SOAPStub 类中的 QName "Doc" 中。 工厂implements SerializerFactory。 getSerializer 方法返回一个 `OctetStreamDataHandlerSerializer 的实例。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-12-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-06-17
      • 2012-01-30
      相关资源
      最近更新 更多