Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.
Posted
Updated 1-Feb-12 1:53am
v2

1 solution

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.
 
Share this answer
 
Comments
Shivangi Singh 2-Feb-12 1:31am    
Thanks for quick reply....
My request is accepted at there end...I have to investigate at there end for response.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900