Web Services 调用带有Axis附件的WebService时出错

tjjdgumg  于 2023-04-21  发布在  其他
关注(0)|答案(1)|浏览(168)

当我附加一个八位字节流并使用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

ubof19bj

ubof19bj1#

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

相关问题