ParcelUploadEx()


Upload any format Parcel to OutBox.

Public Function ParcelUploadEx(ByVal SessionID As String, _
                               
ByVal FileName As String, _
                               ByVal Bytes As Integer, _
                               ByVal Content As Byte()
                               ByVal ECGridIDFrom As Integer, _
                               ByVal ECGridIDTo As Integer) _
                              
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.
ECGridIDFrom
Integer
The ECGridID representing the sending Trading Partner. See ECGridIDs.
ECGridIDTo
Integer
The ECGridID representing the receiving Trading Partner. See ECGridIDs.

Returns

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

Remarks

This method allows non-EDI Parcels to be directly uploaded to ECGrid through the ECGridOS interface. An X12 EDI envelope will be wrapped around the data using ECGridIDFrom and ECGridIDTo  in order to route it over ECGrid. ParcelDownload() will automatically strip the envelope and download the original Content and provide the original FileName.

The X12 ISA segment will have the following values assigned to assist in quickly identifying an Interchange which has been uploaded with ParcelUploadEx():

There is another pseudo FN segment:

  • FN01: <FileName>

    To send EDI data, use ParcelUpload().

    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.

    NOTE: While some Networks will be able to accept EDI-wrapped data, most will not. Be sure to check with your Trading Partner to make sure their system can handle this type of data.

    Example

    Visual Basic
    [insert code sample]

    EventID: 6007

    See Also

    Parcels
    ParcelUploadGZipEx()
    ParcelDownloadInner()
    ParcelUpload()
    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.