【发布时间】:2013-10-16 13:15:29
【问题描述】:
我正在尝试发送附件。目前我正在使用支持 MTOM 格式的 CXF 网络服务,但我需要以 DIME 发送附件。
请参考代码sn-p:-
Works fine:
USDWebService ss = new USDWebService(wsdlURL, SERVICE_NAME);
USDWebServiceSoap port = ss.getUSDWebServiceSoap();
The problem Area this is the code given by my client to interact with their system :
((org.apache.axis.client.Stub)port)._setProperty(Call.ATTACHMENT_ENCAPSULATION_FORMAT,
Call.ATTACHMENT_ENCAPSULATION_FORMAT_DIME);
((org.apache.axis.client.Stub) port).addAttachment(dhandler);
上面的代码 sn-p dosent 工作作为 CXF webservice dosent 支持 org.apache.axis.client.Stub 那么我如何通过 CXF 发送我的附件。
【问题讨论】:
标签: web-services cxf mtom