在不调用 Web 服务的情况下获取肥皂消息
使用 JAX-WS 规范的 Glassfish Metro 实现,是否可以为特定操作生成 SOAP 请求消息,而无需实际调用该操作。像 SOAPUI 那样能够仅基于 WSDL 生成示例 SOAP 消息,只是我想生成它并提供操作参数。
谢谢。
Using Glassfish Metro implementation of JAX-WS specification, is it possible to generate SOAP request message for specific operation without actually invoking the operation. Something like SOAPUI ability to generate sample SOAP message basing just on WSDL only that I would like to generate it providing parameters for operation.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好的。我想我已经明白了。它不漂亮,也不干净,因为它使用反射,基于 Oracle 专有类,并假设您已经生成了客户端 WS 部分,但如果您像我一样迫切需要此类功能,并且截止日期临近不可避免,例如死亡本身,然后听我的故事:)
所以,这又是一个非常糟糕的解决方案,但直到一些严肃的思想家出现并用更好的东西拯救我的一天,或者太阳移动课程,我需要更友好的包,它已经足够了。
OK. I think I've got it. It ain't pretty and it ain't clean as it uses reflection, bases on Oracle proprietary classes and assumes that you've your client side WS part already generated but if you need such functionality as badly as I do with deadline approaching unavoidable like death itself then hear my tale :)
So once again this is very bad solution but until some heavy thinker comes and saves my day with something better or Sun moves classes I need to more friendly package it has to suffice.
DIY:将客户端指向转储负载的 PHP 页面。运行客户端。读取响应将失败,但请求将被保存。
DIY: Point client to a PHP page which dumps the payload. Run the client. It will fail reading the response, but the request will be saved.