开发者

Preprocessing the server response before passing it on to Axis

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


I would try to see if I can add a interceptor Stripping the HTML. They seem to use that for SOAP compression, have a look at: http://www.thomas-bayer.com/soap-compression-howto.htm Look at the client configuration part, maybe you can do something similar.


If you can add to the server side, a ServletFilter could be a solution.

If all you can change is on the client side, you can create a proxy servlet that receives the SOAP data, propagates it to the server and strips the result.

The actual stripping can be done using XSLT although that might be overkill if the wrapping html is constant.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜