Ampersand in SOAP body

Posted by admin on Feb 17, 2011 in perl, Unix |

Broadworks OCI interface uses SOAP as its transport. In the past, I’m sure I replaced ampersands in the request body with the html equivalent & just using the encode function.

$req = HTML::Entities::encode($xmlrequest);

This has stopped working and hangs the request. I have found a work around using
$req = HTML::Entities::encode($xmlrequest);
$req =~ s/&/&/g;

Leave a Reply

XHTML: You can use these tags:' <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Copyright © 2008-2018 Brinsmead Data Services All rights reserved.