[Mono-dev] Error consuming web services

Johann BLAIS jblais at perinfo.biz
Thu Oct 27 08:19:01 EDT 2005


Gonzalo,

Once again, you were right. My server was responding something like :
HTTP/1.1
HTTP/1.1 100 Continue
instead of just
HTTP/1.1 100 Continue

Thanks a lot, your answer helped a lot finding the origin of the problem.
It's good to know there are skilled guys out there.

Johann.

Johann BLAIS a écrit :

> Yes, you're right, actually it doesnot work either on dotnet.
> I etherealed a few requests, what is the "expected : 100-continue" in 
> the header of the request ?
>
> Thanks for your reply, i'm starting to getting somewhere.
>
> Johann
>
> Gonzalo Paniagua Javier a écrit :
>
>> On Wed, 2005-10-26 at 14:16 +0200, Johann BLAIS wrote:
>> [...]
>>  
>>
>>> System.Net.WebException: Error getting response stream (ReadDone4): 
>>> ServerProtocolViolation ---> System.FormatException: Invalid format.
>>> in <0x00103> System.UInt32:Parse (System.String s, Boolean tryParse, 
>>> System.UInt32 result)
>>> in <0x0001a> System.UInt32:Parse (System.String s)
>>> in <0x0019a> System.Net.WebConnection:GetResponse (System.Byte[] 
>>> buffer, Int32 max)
>>> in <0x0019b> System.Net.WebConnection:ReadDone (IAsyncResult 
>>> result)--- End of inner exception stack trace ---
>>>
>>> in <0x00158> System.Net.HttpWebRequest:EndGetResponse (IAsyncResult 
>>> asyncResult)
>>> in <0x00047> System.Net.HttpWebRequest:GetResponse ()
>>> in <0x0004d> 
>>> System.Web.Services.Protocols.WebClientProtocol:GetWebResponse 
>>> (System.Net.WebRequest request)
>>>
>>> I get this error on every call. It seems that the connection is 
>>> closed from the client side (mono) because i get a "Broken pipe" on 
>>> my server (C++/gSoap).
>>> The error appears straight after the call, but usually the webmethod 
>>> i invoke take 10 sec to execute.
>>> I wonder why Mono closes the connection so early.
>>>
>>> I'm using mono 1.1.9.2 compiled from source under linux.
>>>
>>> Any idea ?
>>>   
>>
>>
>> The connection is closed from the mono side of the story because your
>> server is sending something that is not an integer as status code.
>>
>> That's all I can say with the information you provided.
>>
>> What happens if you run your client from MS.NET? My take is that you'll
>> get an error too. If not, please, file a bug report attaching the
>> simplest test case you can get.
>>
>> Thanks.
>>
>> -Gonzalo
>>
>>
>>
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>
>>
>>  
>>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>




More information about the Mono-devel-list mailing list