Click here to Skip to main content
12,750,710 members (38,413 online)
Rate this:
Please Sign up or sign in to vote.
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)
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at Service.ServiceName.getMethod(Request request)

If anybody here has any ideas that might help I would greatly appreciate it.
Posted 1-Feb-12 2:51am
Updated 1-Feb-12 2:53am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
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)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170215.1 | Last Updated 1 Feb 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100