FedEX Shipping API打印标签代码实施 [英] FedEX Shipping API Print Label Code Implementation

查看:521
本文介绍了FedEX Shipping API打印标签代码实施的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,



我想使用FedEx网络服务进行发货,我想实施FedEx weh服务的打印标签功能,但我不是获取示例代码,我从他们的Web服务示例代码下载的一个示例代码给了我电子邮件标签URL而不是标签的图像或pdf,我想要标签的pdf或png图像,以便我可以打印来自我的网站的标签,我想向用户提供功能,以便他们可以从我的网站打印标签,请任何人都可以帮助。

如果您有任何wsdl示例代码,请提供给我。



任何帮助都会被高峰化。

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.

推荐答案

你应该尝试使用Easypost。他们有UPS,USPS和Fedex的运输API。
You should try Easypost. They have a shipping API for UPS, USPS,and Fedex.


只需下载图像文件,



这是代码I抓住互联网



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]



如果你想要更详细的答案,请告诉我来自fedex的WSDL文件中的对象,只需粘贴对象详细信息。



[edit]

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


这篇关于FedEX Shipping API打印标签代码实施的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆