Accepting response w/ literalxml encoding
- View SourceAll,
Is there any low-impact method for getting SOAP::Lite to accept an RPC
response with rpc/literal serialization? I found that I can override the
default encodingStyle by doing this after instantiating a SOAP object:
But this seems quite brute-force and causes breakage if, e.g. the
conventional "soap/encoded" namespace is declared anywhere else in the
envelope (should be allowable in the header and/or higher-level elements).
This code is tripping it up:
die "Unrecognized/unsupported value of encodingStyle attribute '$encodingStyle'\n"
if defined $encodingStyle &&
length($encodingStyle) != 0 && # encodingStyle=""
$encodingStyle !~ /(?:^|\b)$SOAP::Constants::NS_ENC/;
# ^^^^^^^^ \b causing problems (!?) on some systems
# as reported by David Dyck <dcd@...>
# so use (?:^|\b) instead
For reasons I cannot get into, modification of the module is not a viable
(Speaking on his own behalf - not my employers)