]> git.donarmstrong.com Git - debbugs.git/blobdiff - cgi/soap.cgi
- Fix soapy insanity (closes: #422062)
[debbugs.git] / cgi / soap.cgi
index 6599109cf9ed2a4beeb4daabb81892cdbbed49ab..04d72652b72dcd2393f972ac0d24bec93be13306 100755 (executable)
@@ -7,7 +7,10 @@ use SOAP::Transport::HTTP;
 use Debbugs::SOAP::Usertag;
 use Debbugs::SOAP::Status;
 
-SOAP::Transport::HTTP::CGI
-    -> dispatch_to('Debbugs::SOAP::Usertag', 'Debbugs::SOAP::Status')
-    -> handle;
+my $soap = SOAP::Transport::HTTP::CGI
+    -> dispatch_to('Debbugs::SOAP::Usertag', 'Debbugs::SOAP::Status');
+$soap->serializer()->soapversion(1.2);
+# soapy is stupid, and is using the 1999 schema; override it.
+*SOAP::XMLSchema1999::Serializer::as_base64Binary = \&SOAP::XMLSchema2001::Serializer::as_base64Binary;
+$soap-> handle;