ParcelUpload()


Upload X12 or EDIFACT Parcel to OutBox.

Public Function ParcelUpload(ByVal SessionID As String, _
                             
ByVal FileName As String, _
                             ByVal Bytes As Integer, _
                             ByVal Content As Byte()) _
                            
As Integer

Parameters

SessionID
String - GUID
The current session's GUID in string format. This is a 32-character hexidecimal string in the format:
00000000-0000-0000-0000-000000000000. This is the value returned by the Login() function.
FileName
String(1,127)
The file name assigned to a Parcel. It will be stored on disk with this name.
Bytes
Integer
The number of bytes in the uploaded Parcel.
Content 
Byte()
A byte array representing the data in a Parcel. See Uploading & Downloading Files.

Returns

ParcelID
Long
The value assigned to track a specific Parcel on ECGrid.

Remarks

This method allows Parcels to be directly uploaded to ECGrid through the ECGridOS interface. Other communication channels are available such as FTP or AS2.

The content must be X12 or EDIFACT in order to be processed and routed by ECGrid. To send non-EDI data, use ParcelUploadEx().

FileName must be a valid Windows filename, invalid FileNames will generate SOAP Exception.

Bytes must equal the Content length, or a SOAP Exception will be raised.

Example

Sample Code: Interchange Upload/Download

EventID: 6006

See Also


Parcels
ParcelUploadEx()
SOAP Exceptions
Uploading & Downloading Files


© 2008-2011, Loren Data Corp.
All rights reserved.
ECGrid is a registered service mark of Loren Data Corp.
ECGridOS is a service mark of Loren Data Corp.