Web Service error The server committed a protocol violation. Section=ResponseStatusLine

Hi,

 I have the attached code and I get error message:
      The server committed a protocol violation. Section=ResponseStatusLine .
 when function receiveXML is executed

Hope you can help me

Dim sUri As Uri = New Uri(_URL)

_revaS = New WebReference.Service()
_revaS.Url = _URL
_strReturn = _revaS.receiveXML(_revaP)

Open in new window

negreteoAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Bob LearnedConnect With a Mentor Commented:
"The server committed a protocol violation" usually indicates that you either a) submitted an invalid request, b) submitted an unexpected request, or c) there is a server configuration problem.
0
 
Bob LearnedCommented:
What does "receiveXML" do?  
What type of web service (standard, WCF)?
 
What .NET framework version are you working with?
0
 
negreteoAuthor Commented:

In the image you can see what receiveXML is receiving as data and it uses .NET framework 2.0
Untitled.png
0
 
Bob LearnedCommented:
Are you saying that the web service is out of your control?  If that is true, then you need to contact the owners of the web service, and tell them that they have a problem.
0
 
negreteoAuthor Commented:

Yes it is out of my control. So you think the error is coming from the web service
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.