JeremyDunn / php-fedex-api-wrapper

This library provides a fluid interface for constructing requests to the FedEx web service API.
269 stars 184 forks source link

Error on create shipment example #137

Closed imykie closed 2 years ago

imykie commented 4 years ago

when I was trying to use the wrapper folloing the example at https://github.com/JeremyDunn/php-fedex-api-wrapper/blob/master/examples/ship.php

returns error:

Fatal error: Uncaught SoapFault exception: [Client] SOAP-ERROR: Encoding: Element 'Major' has fixed value '23' (value '21' is not allowed) in C:\xampp\htdocs\myprojectname\vendor\jeremy-dunn\php-fedex-api-wrapper\src\FedEx\ShipService\Request.php:48 Stack trace: #0 C:\xampp\htdocs\sell-your-dinar\dinar-db\vendor\jeremy-dunn\php-fedex-api-wrapper\src\FedEx\ShipService\Request.php(48): SoapClient->__call('processShipment', Array) #1 C:\xampp\htdocs\myprojectname\src\api\label.php(132): FedEx\ShipService\Request->getProcessShipmentReply(Object(FedEx\ShipService\ComplexType\ProcessShipmentRequest)) #2 {main} thrown in C:\xampp\htdocs\sell-your-dinar\dinar-db\vendor\jeremy-dunn\php-fedex-api-wrapper\src\FedEx\ShipService\Request.php on line 48

pcualmac commented 4 years ago

line 29 to 30 write $version ->setMajor(23) ->setIntermediate(0) ->setMinor(0) ->setServiceId('ship');

imykie commented 4 years ago

Thank you, It worked

Also, I want to how to convert the response to a more readable type and to the form that can be use in what I'm buiding

pcualmac commented 4 years ago

Me to this lib need a documentation.

github-actions[bot] commented 2 years ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 2 years ago

This issue was closed because it has been inactive for 14 days since being marked as stale.