1

I'm in the very peculiar position of trying to access a SOAP service whose answers are wrapped in HTML. This is a bug with the service provider ( SourceForge ) , acknowledged for seven months, with no ETA so far. Nitty-gritty details.

If I can intercept the actual response before passing it on to Axis, I would be able to strip the HTML content, but I don't know how to do that. Any pointers ( as well as alternative solutions ) would be appreciated.


Update: Using Axis 1.4

4

2 に答える 2

1

HTMLを削除するインターセプターを追加できるかどうかを確認しようと思います。彼らはそれをSOAP圧縮に使用しているようです 。http ://www.thomas-bayer.com/soap-compression-howto.htm を見てください。クライアント構成の部分を見てください。おそらく、同様のことができます。

于 2010-01-12T12:56:49.520 に答える
0

サーバー側に追加できる場合はServletFilter、解決策になる可能性があります。

変更できるのがクライアント側だけである場合は、SOAP データを受信し、それをサーバーに伝搬して結果を削除するプロキシ サーブレットを作成できます。

実際のストリッピングは XSLT を使用して行うことができますが、ラッピング html が一定である場合はやり過ぎかもしれません。

于 2010-01-08T15:15:06.333 に答える