]> git.donarmstrong.com Git - debbugs.git/commitdiff
* set up the serializers twice to avoid warnings
authorDon Armstrong <don@donarmstrong.com>
Mon, 10 Aug 2009 19:40:42 +0000 (12:40 -0700)
committerDon Armstrong <don@donarmstrong.com>
Mon, 10 Aug 2009 19:40:42 +0000 (12:40 -0700)
cgi/soap.cgi

index 31b43bab1367681681234c4d07a55252ef259a1c..53f7368536f4327b4a71b60acd59a9ce811250d8 100755 (executable)
@@ -19,6 +19,10 @@ my $soap = Debbugs::SOAP::Server
 # soapy is stupid, and is using the 1999 schema; override it.
 *SOAP::XMLSchema1999::Serializer::as_base64Binary = \&SOAP::XMLSchema2001::Serializer::as_base64Binary;
 *SOAP::Serializer::as_anyURI       = \&SOAP::XMLSchema2001::Serializer::as_string;
+# do this twice to avoid the warning if the serializer doesn't get
+# used
+*SOAP::XMLSchema1999::Serializer::as_base64Binary = \&SOAP::XMLSchema2001::Serializer::as_base64Binary;
+*SOAP::Serializer::as_anyURI       = \&SOAP::XMLSchema2001::Serializer::as_string;
 # to work around the serializer improperly using date/time stuff
 # (Nothing in Debbugs should be looked at as if it were date/time) we
 # kill off all of the date/time related bits in the serializer.