WSDL type restriction issue while calling web service RRS feed

  • Question

  • Hi,

    I am trying to post a SOAP request on third-party web service. 

    I have added web service as a reference in my Visual Studio project. 

    Generated WSDL has  attributes CheckIn/CheckOut, which of type Date. 

    Web Services accept only following form of request -

    <ns:HotelProduct City="WAS" CheckInDate="2012-11-25" CheckOutDate="2012-11-30"> 

    But since CheckIn/CheckOut attribute are defined as Date in WSDL, the request becomes 

    <ns:HotelProduct City="WAS" CheckInDate="2012-11-25 12:00:00 AM" CheckOutDate="2012-11-30 12:00:00AM"> 

    TimeStamp is appended while building SOAP message. 

    I don't have any control over web service since it's from third party. 

    I have tried using different DateTime formats, making change in generated WSDL,, but no luck. 

    How to cope with this issue. 

    Any alternative would be much helpful.

    Monday, November 19, 2012 2:26 PM