Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

~Nate�

___________________________________________

Please use the [vb]/[cs] tags on posted code.

Please post solutions you find somewhere else.

Follow me on Twitter here.

  • Administrators
Posted

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?

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted

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.

~Nate�

___________________________________________

Please use the [vb]/[cs] tags on posted code.

Please post solutions you find somewhere else.

Follow me on Twitter here.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...