简体   繁体   English

Eclipse Web Service Explorer未将对象列表显示为响应

[英]Eclipse Web Service Explorer not displaying list of Objects as response

I have a basic SOAP based web service. 我有一个基于SOAP的基本Web服务。 I am able to invoke methods and add information to it. 我能够调用方法并向其中添加信息。 But, while retrieving , the data a single class object seems to be perfectly displayed in the WSE browser. 但是,在检索时,单个类对象的数据似乎已在WSE浏览器中完美显示。 But If I have a list of objects, then I am not able to get any response in the body. 但是,如果我有一个对象列表,那么我将无法在体内得到任何响应。 Not sure, whats going wrong. 不确定,怎么了。 Even the logs in console don't throw any error. 即使控制台中的日志也不会引发任何错误。

IS there a better way to view list of objects in WSE ? 有没有更好的方法来查看WSE中的对象列表?

Try clicking the Source link (to the right of the body) to check if the SOAP Response Envelope indeed has multiple objects in it. 尝试单击“源”链接(在主体右侧),以检查SOAP响应信封中是否确实包含多个对象。 If it has, you may have encountered a bug in the viewer, if it doesn't - either the service doesn't work as expected, or your Request is not proper. 如果包含错误,则可能是您在查看器中遇到了一个错误,如果没有,则可能是错误-服务无法按预期运行,或者您的请求不正确。

I tested locally with the following public service (operation getAll ): 我在本地使用以下公共服务进行了测试(操作getAll ):

http://www.predic8.com:8080/crm/CustomerService?wsdl

It returns a list of many customers (judging from the raw response), but for me WSE only listed a few of the them (and the indentation depicting the hierarchy is wrong), so I guess this view of WSE is not very reliable. 它返回了许多客户的列表(从原始响应来看),但是对我而言,WSE仅列出了其中的一些(并且缩进表示层次结构是错误的),因此我猜想WSE的这种观点不是很可靠。

So I'd suggest sticking to the raw XML view in WSE. 因此,我建议坚持使用WSE中的原始XML视图。 In my everyday work I prefer using SOAP UI for service exploring/testing. 在日常工作中,我更喜欢使用SOAP UI进行服务探索/测试。 It is free and gets regularly updated - you might want to check it out. 它是免费的,并且会定期更新-您可能要检查一下。

Good luck! 祝好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM