从 axis2 webservice 中的响应 xml 中删除返回标签
在我的所有 xml Web 服务中,我总是将响应内容嵌入到
请帮助我。
In all my xml web services, I always get the response things embedded inside the <ns:response> tag. I don't want my response to come inside <ns:return>, rather directly inside the main tag. I have seen such a response. I want my web service to return the output in the same way.
Please help me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我得到了它。我只需将消息接收器设置为生成的消息接收器(由 wsdl2java 生成)。如果消息接收者是默认的,例如RPCMessageReceiver,则响应将嵌入在中。标签。如果我们将消息接收器设置为自定义消息接收器(生成的消息接收器),则响应将不会出现在内。标签。
I got it. I just had to set the message receiver to the generated message receiver (generated by wsdl2java). If the message receiver is the default ones e.g. the RPCMessageReceiver, then the response will be embedded in <return> tag. If we set the message receiver to our custom message receiver (generated message receiver ) then the response won't come within <return> tag.