Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| internal:proship:velocity:ils-event [2026/07/14 09:49] – lseadmin | internal:proship:velocity:ils-event [2026/07/14 10:12] (current) – removed lseadmin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | **Velocity PSS function to send request to ILS:** | ||
| - | < | ||
| - | Sub Ils_RunEvent(IlsEvent) | ||
| - | Dim IlsRq | ||
| - | Dim IlsEvXPath | ||
| - | |||
| - | Select Case IlsEvent | ||
| - | Case " | ||
| - | Set IlsRq = Sys | ||
| - | IlsEvXPath = "/ | ||
| - | Case Else | ||
| - | Set IlsRq = Shipment | ||
| - | IlsEvXPath = "/ | ||
| - | End Select | ||
| - | |||
| - | IlsRq.DeleteElement IlsEvXPath | ||
| - | IlsRq.E(IlsEvXPath & "/ | ||
| - | |||
| - | DMsgBox " | ||
| - | Dim ilsRsTxt | ||
| - | ilsRsTxt = TcpSend(Machine.ServerName, | ||
| - | If Right(ilsRsTxt, | ||
| - | ilsRsTxt = Left(ilsRsTxt, | ||
| - | End If | ||
| - | |||
| - | DMsgBox " | ||
| - | Dim IlsRs | ||
| - | Set IlsRs = CreateProcReq() | ||
| - | IlsRs.Xml = ilsRsTxt | ||
| - | ' | ||
| - | |||
| - | DMsgBox IlsRs.E(IlsEvXPath & "/ | ||
| - | If (CInt(" | ||
| - | IlsRs.DeleteElement IlsEvXPath | ||
| - | Select Case IlsEvent | ||
| - | Case " | ||
| - | ' | ||
| - | Case Else | ||
| - | Shipment.Xml = IlsRs.Xml | ||
| - | End Select | ||
| - | End If | ||
| - | End Sub | ||
| - | |||
| - | </ | ||
| - | |||
| - | |||
| - | **Call the function like this within Velocity events:** | ||
| - | < | ||
| - | Sub LoadShipment() | ||
| - | Ils_RunEvent " | ||
| - | End Sub | ||
| - | |||
| - | Function PreShipShipment() | ||
| - | Ils_RunEvent " | ||
| - | End Function | ||
| - | |||
| - | Function PostShipShipment() | ||
| - | Ils_RunEvent " | ||
| - | End Function | ||
| - | |||
| - | </ | ||
| - | |||
| - | ILS code (PreProcessRequestXML) should look for the / | ||
| - | Once handled, ILS should set / | ||