How to Fix Submit Request Domxml Is Uncallable Using Usps

I am calling the USPS API when I got the above error.

The problem is the server where my application resides is equipped with php version 5, while the class that I have downloaded and using is class.usps.php. This class use the old domxml object available to php version 4.

The solution is convert the domxml calls to the new dom object in php5 OR use the domxml-php4-to-php5.php. All you need to do is include this lines:


if (PHP_VERSION>='5')
require_once('domxml-php4-to-php5.php'); //Load the PHP5 converter


Before you make a call to domxml methods.

1 Comments

  1. can you send me the converter file, i am not able to get the file.

    Chinmay
    behera.chinmayananda@gmail.com

    ReplyDelete

Post a Comment

Post a Comment

Previous Post Next Post
NERV Open Source
Building production Spring Boot systems?

Explore NERV — open-source Java libraries for audit trails, persistence, exception handling, and reliable event-driven architecture.