Pasos Para El Consumo De Ws De Fedex.docx

  • Uploaded by: Edgar Picazo
  • 0
  • 0
  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Pasos Para El Consumo De Ws De Fedex.docx as PDF for free.

More details

  • Words: 879
  • Pages: 9
Pasos para el consumo de WS de FedEx. Corporate Developer Certification This chapter describes the process for certifying FedEx Web Services enabled applications created by corporate developers. The certification process varies based on the FedEx Web Services type: • Standard FedEx Web Services: Applies to rating, service availability, postal code inquiry, tracking, signature proof of delivery, email notification, and drop-off locator applications. • Advanced FedEx Web Services: Applies to courier pickup, pickup availability, shipment validation, close shipment, electronic trade documents/upload documents, email label, cancel email label, express tag availability, express tag, cancel express tag, ground call tag, cancel ground tag and address validation applications. • Advanced FedEx Web Services with Shipping Labels: Applies to create shipment, cancel shipment, open ship, cancel open ship and async applications. • FedEx Office Web Service for Print Online & Office Order: Applies to direct document upload capabilities and end-to-end print purchase workflow where print orders are sent directly to FedEx Office for fulfillment.

Sitio para validar errors http://support.shiptheory.com/support/solutions/articles/6000098755-2012-shipper-origincountry-is-not-thermal-air-waybill-enabled Encode binary data from Soap WS https://dopiaza.org/tools/datauri/index.php Optional Handle images https://html.com/attributes/img-src/ XML Formatter https://www.freeformatter.com/xml-formatter.html#ad-output Checar en Ship Service, los servicios que estan disponibles para cada pais, checar tambien los parametros que deben de llevar.

Advanced Requests Since this module is a suds wrapper, you can browse each service’s WSDL in fedex/wsdls and add any required objects to your request. For example, the Ship Service WSDL has a simpleType definition for ServiceType with the following options: 

'STANDARD_OVERNIGHT'

      

'PRIORITY_OVERNIGHT' 'FEDEX_GROUND' 'FEDEX_EXPRESS_SAVER' 'FEDEX_2_DAY' 'INTERNATIONAL_PRIORITY' 'SAME_DAY' 'INTERNATIONAL_ECONOMY'

You can see all what is available for a specific definition by browsing a service’s WSDL. It is possible to customize your request beyond what is included in the examples but still within the confines of this package. If it’s something common enough, please bring it forward so that it can be included along as an example.

Preguntas que podría hacer. Reglas basicas del servicio Limitaciones Como crear una guía Como se elimina una guía Como se cotiza una guía Diferencias entre solicitar una guia en Mexico y una Para USA o cualquier otro País. FEDEX_GROUND No necesita dimensiones INTERNATIONAL_ECONOMY Si necesita dimensiones

TEST FOR MEXICO """ Test module for the Fedex ShipService WSDL. """ import unittest import logging import sys sys.path.insert(0, '..') from fedex.services.ship_service import FedexProcessShipmentRequest from fedex.services.ship_service import FedexDeleteShipmentRequest # Common global config object for testing. from tests.common import get_fedex_config CONFIG_OBJ = get_fedex_config() logging.getLogger('suds').setLevel(logging.ERROR) logging.getLogger('fedex').setLevel(logging.INFO)

@unittest.skipIf(not CONFIG_OBJ.account_number, "No credentials provided.") class ShipServiceTests(unittest.TestCase): """ These tests verify that the ship service WSDL is in good shape. """ def test_create_delete_shipment(self): shipment = FedexProcessShipmentRequest(CONFIG_OBJ) shipment.RequestedShipment.DropoffType = 'REGULAR_PICKUP' shipment.RequestedShipment.ServiceType = 'FEDEX_EXPRESS_SAVER' shipment.RequestedShipment.PackagingType = 'YOUR_PACKAGING' shipment.RequestedShipment.Shipper.Contact.PersonName = 'Edgar Picazo' shipment.RequestedShipment.Shipper.Contact.PhoneNumber = '8721310683' shipment.RequestedShipment.Shipper.Address.StreetLines = ['Av. Coahuila #112'] shipment.RequestedShipment.Shipper.Address.City = 'San Pedro de las Colonias' shipment.RequestedShipment.Shipper.Address.StateOrProvinceCode = 'CO' shipment.RequestedShipment.Shipper.Address.PostalCode = '27800' shipment.RequestedShipment.Shipper.Address.CountryCode = 'MX' #shipment.RequestedShipment.Shipper.Address.ResidentialSpecified = False #request.RequestedShipment.Shipper.Address.ResidentialSpecified = True

shipment.RequestedShipment.Recipient.Contact.PersonName = 'Jonathan Lozano' shipment.RequestedShipment.Recipient.Contact.PhoneNumber = '8441234586' shipment.RequestedShipment.Recipient.Address.StreetLines = ['San Bernabe #123'] shipment.RequestedShipment.Recipient.Address.City = 'Monterrey' shipment.RequestedShipment.Recipient.Address.StateOrProvinceCode = 'NL' shipment.RequestedShipment.Recipient.Address.PostalCode = '66446' shipment.RequestedShipment.Recipient.Address.CountryCode = 'MX' shipment.RequestedShipment.Recipient.Address.Residential = True shipment.RequestedShipment.EdtRequestType = 'NONE'

shipment.RequestedShipment.ShippingChargesPayment.Payor.ResponsibleParty.AccountNumber \ = CONFIG_OBJ.account_number shipment.RequestedShipment.ShippingChargesPayment.PaymentType = 'SENDER' shipment.RequestedShipment.LabelSpecification.LabelFormatType = 'COMMON2D' shipment.RequestedShipment.LabelSpecification.ImageType = 'PNG' shipment.RequestedShipment.LabelSpecification.LabelStockType = 'PAPER_7X4.75' shipment.RequestedShipment.LabelSpecification.LabelPrintingOrientation = 'BOTTOM_EDGE_OF_TEXT_FIRST' # Use order if setting multiple labels or delete del shipment.RequestedShipment.LabelSpecification.LabelOrder package1_weight = shipment.create_wsdl_object_of_type('Weight') package1_weight.Value = 4.0 package1_weight.Units = "LB" package1_dimensions = shipment.create_wsdl_object_of_type('Dimensions') package1_dimensions.Length = 5 package1_dimensions.Width = 5 package1_dimensions.Height = 2 package1_dimensions.Units = 'IN' package1 = shipment.create_wsdl_object_of_type('RequestedPackageLineItem') package1.PhysicalPackaging = 'ENVELOPE' package1.Weight = package1_weight package1.Dimensions = package1_dimensions shipment.add_package(package1) shipment.send_validation_request() shipment.send_request() assert shipment.response assert shipment.response.HighestSeverity in ['SUCCESS', 'WARNING'] track_id = shipment.response.CompletedShipmentDetail.CompletedPackageDetails[0].TrackingIds[0].TrackingNumber assert track_id

del_shipment = FedexDeleteShipmentRequest(CONFIG_OBJ) del_shipment.DeletionControlType = "DELETE_ALL_PACKAGES" del_shipment.TrackingId.TrackingNumber = track_id del_shipment.TrackingId.TrackingIdType = 'EXPRESS' del_shipment.send_request() assert del_shipment.response

if __name__ == "__main__": logging.basicConfig(stream=sys.stdout, level=logging.INFO) unittest.main()

UPS Developer Kit ANNOUNCEMENTS AND API UPDATES

The UPS Developer Kit APIs are updated in January and July each year. Enhancements can range from individual API functionality changes to brand new APIs. There are numerous enhancements to the APIs for July 2018. To view July 2018 and previous release changes please select the More link located in the bottom right corner of this box. More

HOW TO GET STARTED    

Step Step Step Step

1: Sign up for a ups.com® profile or Log-innow. 2: Select an API. 3: Download the API documentation. 4: Request an access key.

ACCESS AND ADMINISTRATION    

Manage Access Keys Administration Customer Support for UPS Developer Kit

DEVELOPER APIS Shipping/Rating Address Validation - City, State, ZIP Verify the city, state, and ZIP or postal code information is valid. Locator - Global Find a UPS location or The UPS Store nearest to you. Pickup Request a pickup for you or for one of your customers. Rating Compare delivery services and shipping rates to determine the best option for your customers. Shipping Validate addresses, compare rates, and print labels for your internal business processes. Time in Transit Compare shipping transit times of UPS services.

Visibility Quantum View® Stream Quantum View Data via XML over the Web and into internal applications. Tracking Provide accurate package status information to your customers. Tracking - UPS Signature Tracking® Automate Proof of Delivery for your shipments.

International Trade

Paperless Documents Upload document images and link to your international shipments. UPS TradeAbility®

Generate cost estimates for duties, taxes, and transportation for international shipments; locate compliance and licensing information, and identify restricted trading parties.

Related Documents


More Documents from ""

Cristaleriaaaa
May 2020 16
Mca16_-_manual.pdf
November 2019 38
Necesito Dinero
May 2020 16
Aracnidos.pptx
May 2020 15