Closed cambur closed 2 years ago
@cambur , I had the same question a while ago and someone suggested this, which is working for me:
//This is where you call the service using Jeremy's wrapper (you should already have a similar line in your code).
$result = $shipService->getProcessShipmentReply($processShipmentRequest);
/* Dump Request and Response XML */
$soapClient = $shipService->getSoapClient();
$requestXML = $soapClient->__getLastRequest();
$responseXML = $soapClient->__getLastResponse();
file_put_contents('tmp/request' . $item_seq . '.xml', $requestXML);
file_put_contents('tmp/response' . $item_seq . '.xml', $responseXML);
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
Hi Jeremy,
When trying to get help from FedEx tech support team I am often asked for the XML request.
Is there a way to export the request to XML? like a
toXml()
method?thank you