Below code helps you to call the Restful API using basic authentication method of adding Authorization header using HTTP Post method. static void ConsumingRestService(Args _args) { str destinationUrl = 'Json Url here', requestXml, responseXml; System.Net.HttpWebRequest request; System.Net.HttpWebResponse response; CLRObject clrObj; System.Byte[] bytes; System.Text.Encoding utf8; System.IO.Stream requestStream, responseStream; System.IO.StreamReader streamReader; System.Exception ex; System.Net.WebHeaderCollection httpHeader; str byteStr; System.Byte[] byteArray; System.IO.Stream stream; System.IO.Stream dataStream; byteStr = strfmt('%1:%2', "USERNAME", "PASSWORD"); requestXml = " { \"storeId\": 25001, \"terminalId\":\"012\", \"transactionSeque...
Blog mengenai tips dan trik soal komputer, gadget, dan software serta hardware