krys-g/TrotiNet

Simple WCF request fails

Closed this issue · 0 comments

I created a simple WCF request against this public service endpoint: http://www.restfulwebservices.net/wcf/WeatherForecastService.svc (in visual studio add service reference). Type the following code (I named the service Cloud)

        using (var proxy = new Cloud.WeatherForecastServiceClient())
        {
            var cities = proxy.GetCitiesByCountry("USA");

            cities.ToList().ForEach(Console.WriteLine);
        }

When the program above goes through the TrotiNet proxy, I get an exception in ReadRaw()==0. From what I can tell the server is returning HTTP-100/Continue.

           if (AvailableData == 0)
            {
                if (ReadRaw() == 0)
                    // Connection closed while we were waiting for data
                    throw new IoBroken();