Transmitter5File2FileDeclareSalary Method |
Submit salary declaration to the SwissDec secure web service over the internet
Namespace: SwissDecTXAssembly: SwissDecTX.Transmitter5 (in SwissDecTX.Transmitter5.dll) Version: 5.0.0.0 (5.0.0.0)
Syntaxpublic void File2FileDeclareSalary(
string sourceFilePathName,
string resultFile,
string messageSentFile,
string messageReceivedFile,
out string jobKey,
out DateTime transmissionDateUtc
)
Public Sub File2FileDeclareSalary (
sourceFilePathName As String,
resultFile As String,
messageSentFile As String,
messageReceivedFile As String,
<OutAttribute> ByRef jobKey As String,
<OutAttribute> ByRef transmissionDateUtc As DateTime
)
public:
virtual void File2FileDeclareSalary(
String^ sourceFilePathName,
String^ resultFile,
String^ messageSentFile,
String^ messageReceivedFile,
[OutAttribute] String^% jobKey,
[OutAttribute] DateTime% transmissionDateUtc
) sealed
function File2FileDeclareSalary(sourceFilePathName, resultFile, messageSentFile, messageReceivedFile, jobKey, transmissionDateUtc);
Parameters
- sourceFilePathName String
- The salary declaration to send.
- resultFile String
- The server's reply, contains the result of the operation or any error that might occur during the validation, transmission and processing of the salary declaration.
- messageSentFile String
- The signed message containing the declaration, just before it was encrypted and sent, for logging purposes. This parameter can be null, for example if the built-in automatic transmission logging mechanism is used.
- messageReceivedFile String
- The signed raw server reply just after decryption, for logging purposes. This parameter can be null, for example if the built-in automatic transmission logging mechanism is used.
- jobKey String
- The job key assigned by the server and associated with this submission. To be used later with GetStatusFromDeclareSalary(XmlDocument, String, XmlDocument, XmlDocument, XmlDocument, XmlDocument, Boolean)
- transmissionDateUtc DateTime
- The actual UTC date/time at which the transmission occurred.
RemarksThe UC005 (Replacement) and UC006 (Test) cases have to be handled at the application level, i.e. you simply insert the appropriate tag(s) in the XML declaration as described in the specification. There is absolutely no difference at the transmission level and the server will interpret your submission according to those options, if present. A valid SwissDecTX license is required to execute this method call. There is a 1-hour timeout on this call, as the Swissdec distributor 'thinks' for a while before returning from this call.
See Also