ECGrid Forums  

Go Back   ECGrid Forums > Electronic Commerce > ECGridOS > ECGridOS Developer

ECGridOS Developer Development related posts.

Reply
 
Thread Tools Display Modes
  #1  
Old 03-25-2013, 07:31 AM
joblesspoet joblesspoet is offline
New Member
 
Join Date: Mar 2013
Posts: 12
Lightbulb Parcel APIs

Hi Todd,

Is there any example in Parcel Upload and Download example. I'm using nusoap PHP client library. If there is any help/hint please share.

Thanks
Reply With Quote
  #2  
Old 04-01-2013, 05:01 AM
joblesspoet joblesspoet is offline
New Member
 
Join Date: Mar 2013
Posts: 12
Default Need Information Regarding Parcel Upload

Hi Todd,

Hope you will be fine. I need to know about parcel upload. I want to do this using PHP(Curl). Kindly provide a sample code in PHP. That will be great for PHP users.

Also i sent you PM about users api call kindly reply me back.

Thanks for your help

Regards
Reply With Quote
  #3  
Old 04-01-2013, 07:15 AM
joblesspoet joblesspoet is offline
New Member
 
Join Date: Mar 2013
Posts: 12
Default Parcel UPload Download sovled

Hi Todd,

let me tell you in my previous post i mentioned i need help in parcel upload. But now i solved that issue and using ParcelUpload service in PHP uploaded document.
I created a text file and upload the content using web service. I need to know i used "txt" file. Is there any file like "doc,pdf" i can upload?

Regards
Reply With Quote
  #4  
Old 04-01-2013, 10:14 AM
Todd Gould's Avatar
Todd Gould Todd Gould is offline
Loren Data Corp.
 
Join Date: May 2005
Location: Loren Data Corp.
Posts: 303
Send a message via Skype™ to Todd Gould
Default Uploading Data v3.0

ParcelUpload(), ParcelUploadGZip() and ParcelUploadExA() are for uploading speciic EDI formats including X12, EDIFACT, TRADACOM, etc. These data formats are routed natively based on the internal envelopes.

In order to upload non-EDI data and route it in the system, you must use the ParcelUploadDirected() and ParcelUploadDirectedGZip() versions. These include specifying the ECGridIDFrom and ECGridIDTo parameters.

The "Directed" versions wrap the data in a special envelope that allows it to route through the system. When downloaded by the recipient using the ECGridOS API, this envelope is removed and the original file name restored. This includes anyone receiving the data through our AS2 system.

If "Directed" data is sent to a recipient not using ECGridOS to download, the envelope will remain in place, including sending data to VANs. There is no guarantee that a VAN can handle data wrapped in this manner, but some can.

Do not use the "Directed" versions to send EDI data as unpredictable results will occur.

-=tg=-
Reply With Quote
  #5  
Old 04-05-2013, 10:14 AM
joblesspoet joblesspoet is offline
New Member
 
Join Date: Mar 2013
Posts: 12
Default Parcel UPload Download

Hi Todd,

I'm getting response from "ParcelDownloadGZip" call. In the response the Contenet is "Base64Binary". I tried to decode it but i'm not getting properly response.

During upload In PHP (i got the file content and used base64_encode($file_content) )and uploaded using "ParcelUploadDirected". In NetEDI i can see the detail of message in text.

I got the response from call properly but the conversion "base64Binary" is causing issue. Is there any thing you will suggest me?


Regards
Reply With Quote
  #6  
Old 04-05-2013, 11:00 AM
Todd Gould's Avatar
Todd Gould Todd Gould is offline
Loren Data Corp.
 
Join Date: May 2005
Location: Loren Data Corp.
Posts: 303
Send a message via Skype™ to Todd Gould
Default

ParcelDownloadGZip is compressed with the GZip algorithm. Once you download the BASE64 data with GZip, you will then need to uncompress.

For more information on GZip see: http://www.gzip.org/.

Do note that you will only see a benefit with larger EDI files. I probably would not bother to use it for payloads under 100k. Most of the time the ParcelDownload() API will be sufficient.

-=tg=-
Reply With Quote
  #7  
Old 04-08-2013, 02:04 PM
Todd Gould's Avatar
Todd Gould Todd Gould is offline
Loren Data Corp.
 
Join Date: May 2005
Location: Loren Data Corp.
Posts: 303
Send a message via Skype™ to Todd Gould
Default

I found some specific PHP GZip encoding information:

http://php.net/manual/en/function.gzdecode.php

-=tg=-
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
User APIs joblesspoet ECGridOS Developer 4 04-04-2013 10:46 AM
One Interchange Per Parcel? elDub ECGridOS Developer 1 09-14-2010 05:31 PM
Parcel Listing MarcNelson ECGridOS Developer 1 09-13-2010 03:30 PM
Parcel Download Date MarcNelson ECGridOS Developer 1 06-03-2010 10:35 PM
Codes & Tables Todd Gould ECGridOS Developer 2 03-18-2010 04:56 PM


All times are GMT -4. The time now is 11:38 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
ECGrid® is a registered service mark of Loren Data Corp.