xml文档中有错误 [英] There was error in xml document

查看:153
本文介绍了xml文档中有错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Java开发的第三方Web服务. get方法正在接受请求类类型的对象,而其返回类型是响应类类型的对象.调用get方法时出现上述错误.执行以下行时,我的requset到达了终点,但我无法获得响应对象中的响应,它给出了异常"xml文档中存在错误"

I m consuming a third party web service developed on Java. The get menthod is taking request class type object and its return type is a response class type object.I m getting the above error when calling the get method.When below line is executed my requset is reaching at there end but I m unable to get response in response object, it is giving the exception "There was error in xml document"

response = getMethod(request)



这是堆栈跟踪:

提前谢谢...

堆栈跟踪



Here is the Stack Trace:

Thanks in advance...

Stack Trace

at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)<br />
 at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle)<br />
 at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)<br />
 at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)<br />
 at Service.ServiceName.getMethod(Request request)<br />


如果这里有任何想法可以帮助我,我将不胜感激.


If anybody here has any ideas that might help I would greatly appreciate it.

推荐答案

您好Shivangi.

根据以上信息,几乎不可能确定问题所在.

这很可能是第三方Web服务出现错误.

您还可以检查的是您在请求类类型对象"中提供的输入数据.所有数据的格式都正确吗?

但是,再次强调,这很可能是第三方Web服务上的问题.我将首先检查我自己的代码(确保一切正常),如果没有产生任何结果,然后在可能的情况下与他们联系并在那里开始调查.
Hi Shivangi.

With the above information it is nearly impossible to determine what the issue could be.

This is most likely the 3rd party web service having a bug.

Also something that you could check is the input data you are supplying in the "request class type object". Is all the data correctly formatted?

But again, it is mostly likely a problem on the 3rd parties web service. I would first check my own code (ensuring everything is in order), if that doesn''t yield any results then get in contact with them if possible and begin the investigations there.


这篇关于xml文档中有错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆