#!/usr/bin/perl # Get and log the input open(LOGFILE, ">/tmp/dumpfile2"); print LOGFILE `date`; read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); print LOGFILE $ENV{'REQUEST_METHOD'}; print LOGFILE $ENV{'CONTENT_LENGTH'}; print LOGFILE $buffer; close LOGFILE; # Send the response print "Content-type: application/xml\n\n"; print "\n"; print "\n"; print " \n"; print " SOAP-ENV:Server\n"; print " Server Error\n"; print " \n"; print " \n"; print " \n"; print " My application didn't work\n"; print " \n"; print " \n"; print " 1001\n"; print " \n"; print " \n"; print " \n"; print " \n"; print "\n"; print "\n";