I am trying to call the RestFull Services from Biztalk 2013 R2. I am trying to change the existing one using Http adapter like below
System.Diagnostics.EventLog.WriteEntry("ABC", Message_Datasheets(FILE.ReceivedFileName)); varNewSearchDataLoadURL = System.Configuration.ConfigurationManager.AppSettings["NewSearchDataLoadURL"]; varNewXmlMsg = new System.Xml.XmlDocument(); varNewXmlMsg.LoadXml(@"<path>" + Message_Datasheets(FILE.ReceivedFileName) + @"</path>"); Message_NewUnZip = varNewXmlMsg; Message_NewUnZip(HTTP.RequestTimeout) = 3600; Port_NewSearch_API(Microsoft.XLANGs.BaseTypes.Address) = varNewSearchDataLoadURL + "?path=" + Message_Datasheets(FILE.ReceivedFileName); Port_NewSearch_API(Microsoft.XLANGs.BaseTypes.TransportType) = "HTTP"I tried to change it to WCF-WebHttp adapter to call the Restful services. And the Message Construction looks like below.
System.Diagnostics.EventLog.WriteEntry("ABC", Message_Datasheets(FILE.ReceivedFileName)); varNewSearchDataLoadURL = System.Configuration.ConfigurationManager.AppSettings["NewSearchDataLoadURL"]; varNewXmlMsg = new System.Xml.XmlDocument(); varNewXmlMsg.LoadXml(@"<path>" + Message_Datasheets(FILE.ReceivedFileName) + @"</path>"); Message_NewUnZip = varNewXmlMsg; Message_NewUnZip(WCF.HttpMethodAndUrl) = @"<BtsHttpUrlMapping><Operation Name = 'RESTGet' Method ='GET'/></BtsHttpUrlMapping>"; Port_NewSearch_API(Microsoft.XLANGs.BaseTypes.Address) = varNewSearchDataLoadURL + "?path=" + Message_Datasheets(FILE.ReceivedFileName); Port_NewSearch_API(Microsoft.XLANGs.BaseTypes.TransportType) = "WCF-WebHttp"; Message_NewUnZip(WCF.SuppressMessageBodyForHttpVerbs) = "GET";I am not sure if this is the correct way to do it. Because I was following the here and was not sure about the BtsVariablePropertyMapping.
Please help me with this.Thanks