Hi,

I thought the same thing as well and tested that scenario, so I called
another web service, it worked perfectly.  Once again, something in the
SoapHttpClient is failing and I am almost positive it is related to
content length and Googles Damned API.  I though it might be because the
SoapHttpClient was not thread safe?  However, since it successfully
called the .NET web service, it leaves me pondering again...

-----Original Message-----
From: Unmoderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Simon Fell
Sent: Thursday, 17 June 2004 12:21 PM
To: [EMAIL PROTECTED]
Subject: Re: [ADVANCED-DOTNET] SoapHttpClientProtocol doing strange
things with 3rd party web services

I've used .NET based clients to web services that return chunked
responses, and it works fine.
Wild guess, it is a problem with the XmlSerializer infrastructure not
being able to reflect over your dynamically loaded assembly ???

Cheers
Simon

On Wed, 16 Jun 2004 22:10:53 +1000, in dotnet you wrote:

>Hi,
>
>Thanks for your input, as you can see, it is a bizarre problem.  I used
>both the downloaded proxy, when that failed and I generated a proxy
from
>the Google API URL (http://api.google.com/GoogleSearch.wsdl).
>Fundamentally, I believe the core of the problem is not receiving the
>Content-Length from the Google Web service.  I performed the same test
>using .NET web services and IIS and the ASP.NET web service
>infrastructure return a Content-Length even if a message is chunked.
To
>analyse it even more, I went to the Http 1.1 standard and it states:
>
>"The chunked encoding modifies the body of a message in order to
>transfer it as a series of chunks, each with its own size indicator,
>followed by an OPTIONAL trailer containing entity-header fields".
>
>It states that each chunk must have its own size indicator.  I do think
>something bizarre is happening in the SoapHttpClient when parsing the
>SOAP call, why would it return an array of XmlElements instead? Only
the
>Gods of the SoapHttpClient know.....
>
>-----Original Message-----
>From: Unmoderated discussion of advanced .NET topics.
>[mailto:[EMAIL PROTECTED] On Behalf Of J. Merrill
>Sent: Wednesday, 16 June 2004 5:48 AM
>To: [EMAIL PROTECTED]
>Subject: Re: [ADVANCED-DOTNET] SoapHttpClientProtocol doing strange
>things with 3rd party web services
>
>It would be strange for the proxy to be unable to handle "chunked" data
>-- handling chunked encoding is a requirement of HTTP 1.1.  The .NET
>docn re HTTP says that it "supports chunking" -- but I don't know why
>you'd see those length strings (including the trailing "0") given
that's
>the case.  But you seem to have "stepped in" at a low level to grab the
>raw response, so perhaps the code to handle chunked responses hasn't
>happened yet.
>
>I'm not certain where your Google and googleCall classes came from --
>did you download an assembly from Google, or did you generate a proxy
>class from WSDL that Google provides?
>
>You could try digging down a bit and see if you can set the
>ProtocolVersion property of the underlying HttpWebRequest to
>HttpVersion.Version10 before the request is sent to Google; that should
>prevent the response from coming back with "chunked" encoding (as it's
>HTTP 1.1 that defines the protocol).
>
>But the text saying that .NET "supports chunking" implies that the data
>read from the stream returned by
>HttpWebRequest.Response.GetResponseStream has the chunked encoding
>removed.  I haven't determined one way or another whether that's true.
>
>Good luck...
>
>===================================
>This list is hosted by DevelopMentorR  http://www.develop.com
>Some .NET courses you may be interested in:
>
>NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles
>http://www.develop.com/courses/gaspdotnetls
>
>View archives and manage your subscription(s) at
http://discuss.develop.com

===================================
This list is hosted by DevelopMentorR  http://www.develop.com
Some .NET courses you may be interested in:

NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnetls

View archives and manage your subscription(s) at
http://discuss.develop.com

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com
Some .NET courses you may be interested in:

NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnetls

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to