Skip to content

Commit

Permalink
Merge pull request #330 from infusionsoft/Issue_287
Browse files Browse the repository at this point in the history
Issue #287 - Always use fallback XML parser to avoid reported failure
  • Loading branch information
ROMzombie authored Jul 8, 2024
2 parents 275d127 + 6400a2a commit 15020f4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Infusionsoft/Http/InfusionsoftSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@

use fXmlRpc\Client;
use fXmlRpc\Exception\ExceptionInterface as fXmlRpcException;
use fXmlRpc\Parser\BestParserDelegate;
use fXmlRpc\Parser\NativeParser;
use fXmlRpc\Parser\XmlReaderParser;

class InfusionsoftSerializer implements SerializerInterface {

Expand All @@ -24,11 +23,8 @@ public function request($method, $uri, $params, ClientInterface $client)
try
{
$transport = $client->getXmlRpcTransport();
$parser = null;

if(extension_loaded('xmlrpc')) {
$parser = new BestParserDelegate();
}
$parser = new XmlReaderParser(true);

$client = new Client($uri, $transport, $parser);

Expand Down

0 comments on commit 15020f4

Please sign in to comment.