xfire webservice datahandler Could not find the attachment cid

services.xml中添加

<properties>
<property key="mtom-enabled">true</property>
</properties>

 

 

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://xfire.codehaus.org/config/1.0">
<service>
<name>HdfsService</name>
<namespace>http://net.tplink.HDFSService/MathService</namespace>
<serviceClass>net.tplink.hdfs.service.IHdfsService</serviceClass>
<implementationClass>net.tplink.hdfs.service.impl.HdfsServiceImpl</implementationClass>
<properties>
<property key="mtom-enabled">true</property>
</properties>
</service>
</beans>

 

客户端添加

client.setProperty("mtom-enabled", "true");
client.setProperty(HttpTransport.CHUNKING_ENABLED, "true");

 

你可能感兴趣的:(webservice)