Nate Bross Posted March 17, 2006 Posted March 17, 2006 I'm calling a webservice and it seems to be working and then I get the error "Exception Message: Response is not well-formed XML." Here's all the other information too Exception Message: Response is not well-formed XML. Source: System.Web.Services Stack Trace: at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at Mywebservice.mydomain.servicename(String strToken, String strBatchNumber, String xmlstring, EnvironmentEnum envState) in C:\DOTNET\Projects\SISTRSImport\SISTRSImport\Web References\mywebservice.mydomain.servicename\Reference.vb:line 186 at SISTRSImport.Module1.ProcessFiles() in C:\DOTNET\Projects\SISTRSImport\SISTRSImport\Module1.vb:line 68 Target Site: System.Object[] Invoke(System.String, System.Object[]) If anyone can tell me what it means I'd greatly appreciate it. I have searched for Exception Message: Response is not well-formed XML and turned up nothing. My question is this I suppose: Is this an error in my application or the webservice I am calling? Quote ~Nate� ___________________________________________ Please use the [vb]/[cs] tags on posted code. Please post solutions you find somewhere else. Follow me on Twitter here.
Administrators PlausiblyDamp Posted March 18, 2006 Administrators Posted March 18, 2006 Looks like a problem at their end as it is failing withing the generated wrapper class. If it isn't returning valid XML then you will just need to handle the exception. Out of interest does it do this randomly or is it dependant on the parameters you provide? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Nate Bross Posted March 22, 2006 Author Posted March 22, 2006 It turns out that the problem was due to a bad char at the end of my input file. (I read a file, convert to values and give to the webservice) There was a character 26 at the end of my file and I was unknowlingly sending to the webservice. After removing this character it worked. Quote ~Nate� ___________________________________________ Please use the [vb]/[cs] tags on posted code. Please post solutions you find somewhere else. Follow me on Twitter here.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.