Skip to content

Conversation

@veewee
Copy link
Member

@veewee veewee commented Dec 16, 2025

Q A
Type feature
BC Break no
Fixed issues

Summary

Fixes phpro/soap-client#598

This allows for configuring the LIBXML_* options for decoding XML requests from the EncoderRegistry.

EngineOptions::defaults($wsdl)
    ->withEncoderRegistry(
        EncoderRegistry::default()
            ->setDecoderLibXmlOptions(LIBXML_PARSEHUGE)
    )

@veewee veewee force-pushed the decoder-libxml-options branch from b4cdeef to 137557a Compare December 16, 2025 13:32
Copy link

@rajivraman-MRM rajivraman-MRM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested this against our failing code and it works! No longer errors with: [FATAL] : Resource limit exceeded: Text node too long, try XML_PARSE_HUGE. Tested against version 4.5.

I made this change to the generated client-factory in order to use it:

        $engine = DefaultEngineFactory::create(
            EngineOptions::defaults($wsdl)
                ->withEncoderRegistry(
                    EncoderRegistry::default()
                        ->setDecoderLibXmlOptions(LIBXML_PARSEHUGE) // NEW
                        ->addClassMapCollection(AdminClassmap::types())
                        ->addBackedEnumClassMapCollection(AdminClassmap::enums())
                )
...

@veewee veewee merged commit e7d5b94 into php-soap:main Dec 17, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Does not support large SOAP responses

2 participants