| | |
| | | { |
| | | TextBody: |
| | | [* |
| | | // 甄兰鸽 Jul-17-2024 (created) |
| | | //// 甄兰鸽 Jul-17-2024 (created) |
| | | column := owner.ShippingActualColumn( relnew, StartDate := Date::ActualDate(), Index := owner.ShippingActualColumn( relsize ) ); |
| | | url := "http://localhost:8080/api/shippingActual" + "?date=" + column.StartDate().Format( "Y-M2-D2" ); |
| | | i := HTTPInterface::Create( url, 80 ); |
| | | |
| | | i.PostMethod( true ); |
| | | i.Call(); |
| | | result := i.Result(); |
| | | // vwedadmin Jul-18-2024 (created) |
| | | address := "ds-yunrong-gw.dmp.vwfawedl.mobi"; |
| | | |
| | | /// http://ds-yunrong-gw.dmp.vwfawedl.mobi/data-service/api/service/post-data/V1.101/f4f94c47c1a2440898b5e1e2c0c5cbc8 |
| | | httpinterface := HTTPInterface::Create( address,80); |
| | | httpinterface.URL("/data-service/api/service/post-data/V1.101/f4f94c47c1a2440898b5e1e2c0c5cbc8"); |
| | | httpinterface.MediaType("application/json"); |
| | | //httpinterface.SSL(true); |
| | | //httpinterface.SSLKeystore("MyKeystore"); |
| | | httpinterface.PostMethod(true); |
| | | //str :='{ |
| | | // "inParam": |
| | | // { |
| | | // "dday" : "2024-07-11" |
| | | // } |
| | | //}' |
| | | httpinterface.AddHeader("Authorization","MTlLeG94UEYyNWN5OTZLOFRMXzUyNzA4ODkwNzg1NTA2OTIxNV9wcml2YXRlS2V5XzE3MjEzMDM4Nzc0NTE=") |
| | | httpinterface.Call( ShippingActualData::GetRequestBody( column.StartDate() ) ); //Sends request with the header Authorization: 538baa9045a84c0e889f 可以传递动态token 的吧 |
| | | result := httpinterface.Result(); |
| | | |
| | | cnv1 := StringToDateTime::StandardConverter(); |
| | | cnv1.SetCustomConversion(); |