[Skip to main content](#vessel-content)

#   Log File Formatting

##

- **[Scott-EP](/forum/user/51532-scott-ep "View Scott-EP's Profile")**
- [![Scott-EP's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/51532-scott-ep "View Scott-EP's Profile") Topic Author
- [ Offline](/forum/user/51532-scott-ep)

Less More

- Posts: 5
- Thank you received: 1
-
-

9 years 3 months ago [\#274433](#274433) by [Scott-EP](/forum/user/51532-scott-ep "View Scott-EP's Profile")  *[Log File Formatting](/forum/28-shipping-methods/891235-log-file-formatting#274433 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.3.29 -- Error-message(debug-mod must be tuned on) -- : No error message, a question on log formatting  Good day all;  We are working with a client who wants to switch over to HikaShop and FedEx Web Services to trouble shoot a discrepancy between the rates being returned by Web Services API and the clients actual meter.  I believe the issue lies with FedEx and they are not accepting a text file output from the plugin debug as proof.  According to FedEx Web Services they need the Debug Log in XML or SOAP/XML format &quot;however our Technical Support only supports transaction coding in XML or Soap/XML format&quot;.  Is there a way to convert the data produced by the Debug into this format?  Thank you in advance,  Scott")* was created by *[Scott-EP](/forum/user/51532-scott-ep "View Scott-EP's Profile")*

-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.6.5
-- PHP version -- : 5.3.29
-- Error-message(debug-mod must be tuned on) -- : No error message, a question on log formatting

Good day all;

We are working with a client who wants to switch over to HikaShop and FedEx Web Services to trouble shoot a discrepancy between the rates being returned by Web Services API and the clients actual meter.

I believe the issue lies with FedEx and they are not accepting a text file output from the plugin debug as proof.

According to FedEx Web Services they need the Debug Log in XML or SOAP/XML format "*however our Technical Support only supports transaction coding in XML or Soap/XML format*".

Is there a way to convert the data produced by the Debug into this format?

Thank you in advance,

Scott

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODkxMjM1LWxvZy1maWxlLWZvcm1hdHRpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Scott-EP](/forum/user/51532-scott-ep "View Scott-EP's Profile")**
- [![Scott-EP's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/51532-scott-ep "View Scott-EP's Profile") Topic Author
- [ Offline](/forum/user/51532-scott-ep)

Less More

- Posts: 5
- Thank you received: 1
-
-

9 years 3 months ago [\#274436](#274436) by [Scott-EP](/forum/user/51532-scott-ep "View Scott-EP's Profile")  Replied by *[Scott-EP](/forum/user/51532-scott-ep "View Scott-EP's Profile")* on topic *[Log File Formatting](/forum/28-shipping-methods/891235-log-file-formatting#274436 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.3.29 -- Error-message(debug-mod must be tuned on) -- : No error message, a question on log formatting  Good day all;  We are working with a client who wants to switch over to HikaShop and FedEx Web Services to trouble shoot a discrepancy between the rates being returned by Web Services API and the clients actual meter.  I believe the issue lies with FedEx and they are not accepting a text file output from the plugin debug as proof.  According to FedEx Web Services they need the Debug Log in XML or SOAP/XML format &quot;however our Technical Support only supports transaction coding in XML or Soap/XML format&quot;.  Is there a way to convert the data produced by the Debug into this format?  Thank you in advance,  Scott")*

This should probably be moved to the Shipping Methods sub forum.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODkxMjM1LWxvZy1maWxlLWZvcm1hdHRpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

9 years 3 months ago [\#274434](#274434) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Log File Formatting](/forum/28-shipping-methods/891235-log-file-formatting#274434 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.3.29 -- Error-message(debug-mod must be tuned on) -- : No error message, a question on log formatting  Good day all;  We are working with a client who wants to switch over to HikaShop and FedEx Web Services to trouble shoot a discrepancy between the rates being returned by Web Services API and the clients actual meter.  I believe the issue lies with FedEx and they are not accepting a text file output from the plugin debug as proof.  According to FedEx Web Services they need the Debug Log in XML or SOAP/XML format &quot;however our Technical Support only supports transaction coding in XML or Soap/XML format&quot;.  Is there a way to convert the data produced by the Debug into this format?  Thank you in advance,  Scott")*

Hello,

You can see to use the __getLastRequest function ( [ php.net/manual/en/soapclient.getlastrequest.php](http://php.net/manual/en/soapclient.getlastrequest.php) ) just after the line Code:

$response = $client-&gt;getRates($request);

So you can retrieve from the $client (a soapclient object) the last request content which will be the XML raw data sent to their API.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [Scott-EP](/forum/user/51532-scott-ep "View Scott-EP's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODkxMjM1LWxvZy1maWxlLWZvcm1hdHRpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Scott-EP](/forum/user/51532-scott-ep "View Scott-EP's Profile")**
- [![Scott-EP's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/51532-scott-ep "View Scott-EP's Profile") Topic Author
- [ Offline](/forum/user/51532-scott-ep)

Less More

- Posts: 5
- Thank you received: 1
-
-

9 years 3 months ago -  9 years 3 months ago [\#274611](#274611) by [Scott-EP](/forum/user/51532-scott-ep "View Scott-EP's Profile")  Replied by *[Scott-EP](/forum/user/51532-scott-ep "View Scott-EP's Profile")* on topic *[Log File Formatting](/forum/28-shipping-methods/891235-log-file-formatting#274611 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.3.29 -- Error-message(debug-mod must be tuned on) -- : No error message, a question on log formatting  Good day all;  We are working with a client who wants to switch over to HikaShop and FedEx Web Services to trouble shoot a discrepancy between the rates being returned by Web Services API and the clients actual meter.  I believe the issue lies with FedEx and they are not accepting a text file output from the plugin debug as proof.  According to FedEx Web Services they need the Debug Log in XML or SOAP/XML format &quot;however our Technical Support only supports transaction coding in XML or Soap/XML format&quot;.  Is there a way to convert the data produced by the Debug into this format?  Thank you in advance,  Scott")*

Thank you for the reply Jerome. I was able to obtain the XML request that is sent to the FedEx API and am now even more confused then ever.

The PHP output from Debug shows the dimensions being included in the Requested Package Line Items Code:

'RequestedPackageLineItems' =&gt; array ( 0 =&gt; array ( 'SequenceNumber' =&gt; 1, 'GroupPackageCount' =&gt; 1, 'Weight' =&gt; array ( 'Value' =&gt; '2.2049997181', 'Units' =&gt; 'LB', ), 0 =&gt; array ( 'Dimensions' =&gt; array ( 'Length' =&gt; '9', 'Width' =&gt; '6', 'Height' =&gt; '24', 'Units' =&gt; 'IN', )

But the XML Output does not. Code:

&lt;ns1:RequestedPackageLineItems&gt; &lt;ns1:SequenceNumber&gt;1&lt;/ns1:SequenceNumber&gt; &lt;ns1:GroupPackageCount&gt;1&lt;/ns1:GroupPackageCount&gt; &lt;ns1:Weight&gt; &lt;ns1:Units&gt;LB&lt;/ns1:Units&gt; &lt;ns1:Value&gt;2.2049997181&lt;/ns1:Value&gt; &lt;/ns1:Weight&gt; &lt;/ns1:RequestedPackageLineItems&gt;

Is there some way to tell if the dimensions are actually being sent to FedEx? When FedEx sees the file with the missing dimensions their support will stop at that point and state that is causing the problem with the lower rate that is being sent back via web services API versus the clients meter.

Last edit: 9 years 3 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: [code] is nice

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODkxMjM1LWxvZy1maWxlLWZvcm1hdHRpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

9 years 3 months ago [\#274656](#274656) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Log File Formatting](/forum/28-shipping-methods/891235-log-file-formatting#274656 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.3.29 -- Error-message(debug-mod must be tuned on) -- : No error message, a question on log formatting  Good day all;  We are working with a client who wants to switch over to HikaShop and FedEx Web Services to trouble shoot a discrepancy between the rates being returned by Web Services API and the clients actual meter.  I believe the issue lies with FedEx and they are not accepting a text file output from the plugin debug as proof.  According to FedEx Web Services they need the Debug Log in XML or SOAP/XML format &quot;however our Technical Support only supports transaction coding in XML or Soap/XML format&quot;.  Is there a way to convert the data produced by the Debug into this format?  Thank you in advance,  Scott")*

Hello,

You'll just have to check what's in the "$data" variable to know which package informations are sent near these lines : Code:

$pkg_values = $this-&gt;xml2array('&lt;root&gt;'.$data['XMLpackage'].'&lt;/root&gt;'); $pkg_values = $pkg_values['root']; $pkg_count = count($pkg_values);

Note that you can also check the content of the "pkg_values" variable which is a php array containing information about the packages that are sent to FedEx.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODkxMjM1LWxvZy1maWxlLWZvcm1hdHRpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.060 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
