Subject: | FAIL SOAP-WSDL-2.00.99_3/t/SOAP/WSDL/Server/CGI.t |
When you do
local %ENV;
you destroy $ENV{PATH}
so
...auto\XML\Parser\Expat\Expat.dll
cant find
libexpat.dll
$ perl t/SOAP/WSDL/Server/CGI.t
1..16
ok 1 - use SOAP::WSDL::Server;
ok 2 - use SOAP::WSDL::Server::CGI;
ok 3
not ok 4 - error without SOAPAction header
# Failed test 'error without SOAPAction header'
# at t/SOAP/WSDL/Server/CGI.t line 58.
# 'Status: 500 Internal Server Error
# Content-Type: text/xml; charset="utf-8"
#
# Cannot load serializer SOAP::WSDL::Deserializer::XSDCan't load
'C:/perl/site/5.10.1/lib/MSWin32-x86-multi-thread/auto/XML/Parser/Expat/Expat.dll'
for module XML::Parser::Expat: load_file:The specified module could not
be found at C:/perl/5.10.1/lib/MSWin32-x86-multi-thread/DynaLoader.pm
line 200.
# at C:/perl/site/5.10.1/lib/SOAP/WSDL/Expat/Base.pm line 5
# Compilation failed in require at
C:/perl/site/5.10.1/lib/SOAP/WSDL/Expat/Base.pm line 5.
# BEGIN failed--compilation aborted at
C:/perl/site/5.10.1/lib/SOAP/WSDL/Expat/Base.pm line 5.
# Compilation failed in require at (eval 75) line 3.
# ...propagated at C:/perl/5.10.1/lib/base.pm line 94.
# BEGIN failed--compilation aborted at
C:/perl/site/5.10.1/lib/SOAP/WSDL/Expat/MessageParser.pm line 9.
# Compilation failed in require at
C:/perl/site/5.10.1/lib/SOAP/WSDL/Deserializer/XSD.pm line 6.
# BEGIN failed--compilation aborted at
C:/perl/site/5.10.1/lib/SOAP/WSDL/Deserializer/XSD.pm line 6.
# Compilation failed in require at (eval 38) line 3.
# '
# doesn't match '(?msx-i:Not \s found: \s No \s SOAPAction \s given)'
not ok 5 - error with bad SOAPAction
# Failed test 'error with bad SOAPAction'
# at t/SOAP/WSDL/Server/CGI.t line 66.
# 'Status: 500 Internal Server Error
# Content-Type: text/xml; charset="utf-8"
#
# Cannot load serializer SOAP::WSDL::Deserializer::XSDAttempt to reload
SOAP/WSDL/Deserializer/XSD.pm aborted.
# Compilation failed in require at (eval 77) line 3.
# '
# doesn't match '(?msx-i:No \s method \s found \s for \s the \s
SOAPAction)'
ok 6 - Continue
not ok 7 - error with bad EXPECT and bad SOAPAction
# Failed test 'error with bad EXPECT and bad SOAPAction'
# at t/SOAP/WSDL/Server/CGI.t line 83.
# 'Status: 500 Internal Server Error
# Content-Type: text/xml; charset="utf-8"
#
# Cannot load serializer SOAP::WSDL::Deserializer::XSDAttempt to reload
SOAP/WSDL/Deserializer/XSD.pm aborted.
# Compilation failed in require at (eval 81) line 3.
# '
# doesn't match '(?msx-i:No \s method \s found \s for \s the \s
SOAPAction)'
not ok 8 - No handler
# Failed test 'No handler'
# at t/SOAP/WSDL/Server/CGI.t line 103.
# 'Status: 500 Internal Server Error
# Content-Type: text/xml; charset="utf-8"
#
# Cannot load serializer SOAP::WSDL::Deserializer::XSDAttempt to reload
SOAP/WSDL/Deserializer/XSD.pm aborted.
# Compilation failed in require at (eval 83) line 3.
# '
# doesn't match '(?msx-i: No \s handler)'
not ok 9 - bad content
# Failed test 'bad content'
# at t/SOAP/WSDL/Server/CGI.t line 116.
# 'Status: 500 Internal Server Error
# Content-Type: text/xml; charset="utf-8"
#
# Cannot load serializer SOAP::WSDL::Deserializer::XSDAttempt to reload
SOAP/WSDL/Deserializer/XSD.pm aborted.
# Compilation failed in require at (eval 85) line 3.
# '
# doesn't match '(?msx-i: Error \s deserializing \s message)'
not ok 10 - error with bad request content
# Failed test 'error with bad request content'
# at t/SOAP/WSDL/Server/CGI.t line 125.
# 'Status: 500 Internal Server Error
# Content-Type: text/xml; charset="utf-8"
#
# Cannot load serializer SOAP::WSDL::Deserializer::XSDAttempt to reload
SOAP/WSDL/Deserializer/XSD.pm aborted.
# Compilation failed in require at (eval 87) line 3.
# '
# doesn't match '(?msx-i: Error \s deserializing )'
not ok 11 - empty request
# Failed test 'empty request'
# at t/SOAP/WSDL/Server/CGI.t line 138.
# 'Status: 500 Internal Server Error
# Content-Type: text/xml; charset="utf-8"
#
# Cannot load serializer SOAP::WSDL::Deserializer::XSDAttempt to reload
SOAP/WSDL/Deserializer/XSD.pm aborted.
# Compilation failed in require at (eval 89) line 3.
# '
# doesn't match '(?msx-i: \A Status: \s 200 \s OK)'
not ok 12 - non-serializable exception
# Failed test 'non-serializable exception'
# at t/SOAP/WSDL/Server/CGI.t line 158.
# 'HTTP/1.0 500 Internal Server Error
# Content-Type: text/xml; charset="utf-8"
#
# Cannot load serializer SOAP::WSDL::Deserializer::XSDAttempt to reload
SOAP/WSDL/Deserializer/XSD.pm aborted.
# Compilation failed in require at (eval 91) line 3.
# '
# doesn't match '(?msx-i:EXCEPTION)'
not ok 13 - IIS response
# Failed test 'IIS response'
# at t/SOAP/WSDL/Server/CGI.t line 171.
# 'HTTP/1.0 500 Internal Server Error
# Content-Type: text/xml; charset="utf-8"
#
# Cannot load serializer SOAP::WSDL::Deserializer::XSDAttempt to reload
SOAP/WSDL/Deserializer/XSD.pm aborted.
# Compilation failed in require at (eval 93) line 3.
# '
# doesn't match '(?msx-i: \A HTTP/1.0 \s 200 \s OK)'
not ok 14 - IIS response
# Failed test 'IIS response'
# at t/SOAP/WSDL/Server/CGI.t line 184.
# 'HTTP/1.1 500 Internal Server Error
# Content-Type: text/xml; charset="utf-8"
#
# Cannot load serializer SOAP::WSDL::Deserializer::XSDAttempt to reload
SOAP/WSDL/Deserializer/XSD.pm aborted.
# Compilation failed in require at (eval 95) line 3.
# '
# doesn't match '(?msx-i: \A HTTP/1.1 \s 200 \s OK)'
not ok 15 - response
# Failed test 'response'
# at t/SOAP/WSDL/Server/CGI.t line 196.
# 'Status: 500 Internal Server Error
# Content-Type: text/xml; charset="utf-8"
#
# Cannot load serializer SOAP::WSDL::Deserializer::XSDAttempt to reload
SOAP/WSDL/Deserializer/XSD.pm aborted.
# Compilation failed in require at (eval 97) line 3.
# '
# doesn't match '(?msx-i: \A Status: \s 200 \s OK)'
not ok 16 - response
# Failed test 'response'
# at t/SOAP/WSDL/Server/CGI.t line 208.
# 'Status: 500 Internal Server Error
# Content-Type: text/xml; charset="utf-8"
#
# Cannot load serializer SOAP::WSDL::Deserializer::XSDAttempt to reload
SOAP/WSDL/Deserializer/XSD.pm aborted.
# Compilation failed in require at (eval 99) line 3.
# '
# doesn't match '(?msx-i: \A Status: \s 200 \s OK)'
# Looks like you failed 12 tests of 16.
a safe solution
local @ENV{qw' CONTENT_LENGTH EXPECT HTTP_SOAPAction REQUEST_METHOD
SERVER_PROTOCOL SERVER_SOFTWARE '} ;
delete @ENV{qw' CONTENT_LENGTH EXPECT HTTP_SOAPAction
REQUEST_METHOD SERVER_PROTOCOL SERVER_SOFTWARE '} ;
$ perl t/SOAP/WSDL/Server/CGI.t
1..16
ok 1 - use SOAP::WSDL::Server;
ok 2 - use SOAP::WSDL::Server::CGI;
ok 3
ok 4 - error without SOAPAction header
ok 5 - error with bad SOAPAction
ok 6 - Continue
ok 7 - error with bad EXPECT and bad SOAPAction
ok 8 - No handler
ok 9 - bad content
ok 10 - error with bad request content
ok 11 - empty request
ok 12 - non-serializable exception
ok 13 - IIS response
ok 14 - IIS response
ok 15 - response
ok 16 - response