1

I'm using apache axis to consume a few SOAP operations. The web service I'm talking to takes XML as one of the payload inputs. I noticed that Axis is encoding the non xml friendly characters. IE < > to &alt; etc.. etc..

How can I tell apache Axis to allow my payload to go over un-encoded?

4

1 回答 1

1

我确实遇到了这个问题,我能够解决它的唯一方法是覆盖 Apache Axis 1.4 附带的 XMLEncoder。

我使用Jad反编译,将代码复制到我自己的类中并 com.org.apache.axis.components.encoding.UTF8Encoder注释掉&,"和case 语句。<>

要配置 Axis 以使用这个新的编码器,您还必须创建一个

META-INF/services/org.apache.axis.components.encoding.XMLEncoder

仅包含新类的 FQDN 的文件。

于 2010-07-03T13:38:18.427 回答