Skip to Content
0
Jun 03, 2014 at 12:42 PM

Print Label from Fedex Web services

520 Views

Hello,

I'm using the fedex web service for the shipping request.

I'm asking the label with those specifications:

<v12:LabelSpecification>

<v12:LabelFormatType>COMMON2D</v12:LabelFormatType>

<v12:ImageType>ZPLII</v12:ImageType>

<v12:LabelStockType>STOCK_4X6</v12:LabelStockType>

</v12:LabelSpecification>

<v12:ShippingDocumentSpecification>

<v12:ShippingDocumentTypes>LABEL</v12:ShippingDocumentTypes>

<v12:ShippingDocumentTypes>COMMERCIAL_INVOICE</v12:ShippingDocumentTypes>

<v12:CommercialInvoiceDetail>

<v12:Format>

<v12:ImageType>PDF</v12:ImageType>

<v12:StockType>PAPER_LETTER</v12:StockType>

</v12:Format>

</v12:CommercialInvoiceDetail>

</v12:ShippingDocumentSpecification>

An the service response with a string with the image:

<v12:Label>

<v12:Parts>

.......

<v12:Image>XlhBXkNGLDAsMCwwXlBSMTJeTUQzMF5QVzgwMF5QT0leQ0kxM15MSDAsMjAKXkZPMCwxNDZeR0I4MDAsMiwyXkZTCl5GTzAsNDAzXkdCODAwLDIsMl5GUwpeRk8wLDkyM15HQjl....................</v12:Image>

</v12:Parts>

</v12:Label>

Now what I need to do is to print the fedex label with a Zebra printer and I don't know how to do it.

I have read an existent post but I had no success using the code specified in that post().

Any example will be appreciated.