PHP-Soap Client exception Error Fetching http headers - call to WCF services



I created a simple Wcf service application with a function return a list of hotels object. My service using default web.config (basicHttpBinding ...), dont have apply Serialization object, i mean all is default config.



public class Service1 : IService1
{

public List<Hotel> GetHotels()
{
Hotel objHotel = new Hotel();
List<Hotel> result = objHotel.getListHotels();

return result;

}
}

public interface IService1
{
[OperationContract]
List<Hotel> GetHotels();
}


My results have template like this



<Hotel>
<Location>Moon</Location>
<Name>Hotel 2</Name>
<Rate>6 stars</Rate>
<RoomList>
<Room>
<Quantity>3<Quantity/>
<RoomName>Standard</RoomName>
<RoomType>Single</RoomType>
</Room>
<Room>
<Quantity>10<Quantity/>
<RoomName>Superior</RoomName>
<RoomType>Double</RoomType>
</Room>
</RoomList>
</Hotel>


My client is PHP soapClient, It working fine when result return about 300 or 400 hotels. But got problem when the result return a large of data about 1000 hotels , client exception error is "Error Fetching http headers"


I dont know what reason, maybe the XMl result too long , content length over limit of Soap CLient ???


Please help, im a beginer with WCF


No comments:

Post a Comment