Click here to Skip to main content
15,893,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,

I want to use FedEx web service for shipping, and i want to implement the Print Label functionality of FedEx weh service, but i am not getting the sample code, one sample code that i have downloaded from their web services sample code is giving me the Email Label Url not the image or pdf of the label, I want the pdf or png image of the label so that i can print the label from my web site, i want to give the functionality to user so that they can print label from my web site, please can anyone help.
If you have any sample code with wsdl please provide me.

any help will be appricieated.
Posted
Comments
Sandeep Mewara 11-May-13 6:08am    
What have you tried so far?
Sunasara Imdadhusen 21-May-13 3:53am    
You have to search on Google
jkirkerx 23-May-13 17:44pm    
Well yes, they use XML, really a WSDL for everthing, so they probably only give you a url for the image. I can't see placing image binary code in the xml response.

So just download the image using the url in the response file from FedEx to the hard drive, and give it a name like the order number or something.

You should try Easypost. They have a shipping API for UPS, USPS,and Fedex.
 
Share this answer
 
v2
Just download the image file,

This is code I grabbed off the internet

private void writeImage(string imageFilePath){
            HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(imageFilePath);
            request.Timeout = 5000;
            request.ReadWriteTimeout = 20000;
            HttpWebResponse response = (HttpWebResponse)request.GetResponse();
            System.Drawing.Image img =   System.Drawing.Image.FromStream(response.GetResponseStream());
            // Save the response to the output stream
            Response.ContentType = "image/gif";
            img.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Gif);

        } 


[edit]

if you want a more detailed answer, show me the object in the WSDL file from fedex, just paste the object details in.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900