none
Connecting to SOAP API using C# RRS feed

  • Question

  • I am trying to implement a client to access an api at https://vendor-ctrip.fws.ctripqa.com/Hotel/OTAReceive/HotelStaticInfoService.asmx.

    However I do not know how to pass credentials and other parameters to the webservice.

    I have managed to setup a console application using c# and have added the service as a connected service.

    // endpoint
    HotelStaticInfoServiceSoapClient.EndpointConfiguration endpoint = new HotelStaticInfoServiceSoapClient.EndpointConfiguration();
    // client
    HotelStaticInfoServiceSoapClient client = new HotelStaticInfoServiceSoapClient(endpoint);
    // request
    OTA_HotelDescriptiveContentNotifRQ dreq = new OTA_HotelDescriptiveContentNotifRQ();
    //response
    HotelDescriptiveContentNotifResponse dres = await client.HotelDescriptiveContentNotifAsync(dreq);

    Could anyone please direct me in the right direction.

    Saturday, May 4, 2019 11:13 AM

All replies

  • Maybe, you should post to the forum for help.

    https://forums.asp.net/28.aspx/1?WCF+ASMX+and+other+Web+Services

    Saturday, May 4, 2019 12:09 PM