[Xml-compile] Confusions with XML::Compile::SOAP::Daemon::CGI and Apache

Dan Lyke dlyke at corp.sonic.net
Tue Mar 19 17:02:06 GMT 2013


I got a basic SOAP server working on my internal test environment
using XML::Compile::SOAP::Daemon::AnyDaemon, but for various reasons
both our internal ops folks and the external vendor (for key and CA
management stuff) would prefer Apache.

So I'm trying to move this over to Apache2 with mod_perl.

In my Apache error logs I'm currently seeing:

[Tue Mar 19 09:57:28 2013] [error] [client 64.142.18.31] malformed
 header from script. Bad header=HTTP/1.1 200 Answer included: index.cgi
[Tue Mar 19 09:57:28 2013] [warn] /index.cgi did not send an HTTP header

My index.cgi looks like:

  #!/usr/bin/perl -w
  use warnings;
  use strict;
  use MySOAPServer qw( $daemon );
  $daemon->runCgiRequest( query => $query );
  exit 0;

My Apache directory config looks like:

    Options Indexes FollowSymLinks MultiViews
    PerlHandler ModPerl::Registry
    PerlOptions +ParseHeaders
    AddHandler perl-script .cgi
    Options +ExecCGI
    Order allow,deny
    Allow from all

I've been trying to figure out how to redirect a valid SOAP XML request
file straight to index.cgi without the server in the way, but keep
getting complaints about content-type .

Anyone got suggestions on how I can debug this?

Thanks.

Dan



More information about the Xml-compile mailing list