SourceForge has been redesigned. Learn more.
Close

#35 Server for mod_perl2

2.0x
closed-fixed
None
5
2008-04-16
2008-04-13
Noah Robin
No

Attached is a patch will supplies a mod_perl2 server for SOAP::WSDL. I'm currently using it my development environment without issue, but I do have some concerns about the lack of thread-safety in SOAP::WSDL and possible weird interactions with threaded Apache MPMs and the pool of perl interpreter threads maintained by mod_perl2. Would SOAP::WSDL's lack of thread safety be an issue?

Additionally, I had to apply the following patch to ensure that I could pass the request object ($r) around properly:

--- SOAP/WSDL/Generator/Template/XSD/Server.tt-orig 2008-04-12 19:59:02.000000000 -0400
+++ SOAP/WSDL/Generator/Template/XSD/Server.tt 2008-04-12 20:01:06.000000000 -0400
@@ -37,7 +37,7 @@
}

sub handle {
- $transport_of{ ${ $_[0] } }->handle();
+ $transport_of{ ${ $_[0] } }->handle(@_[1..$#_]);
}

1;
@@ -103,4 +103,4 @@

Generated by SOAP::WSDL on [% PERL %]print scalar localtime() [% END %]

-=pod
\ No newline at end of file
+=pod

Discussion

  • Noah Robin

    Noah Robin - 2008-04-13
     
  • Martin Kutter

    Martin Kutter - 2008-04-13

    Logged In: YES
    user_id=884175
    Originator: NO

    Hi Noah,

    thank you !

    I'll apply as soon as I've some time. Andreas 'ac0v' Specht is currently working on making Class::Std::Fast thread safe (which would render SOAP::WSDL tread-safe, too), so this should not be an issue in the not-too-far future.

    Thanks again,

    Martin

     
  • Martin Kutter

    Martin Kutter - 2008-04-16

    Logged In: YES
    user_id=884175
    Originator: NO

    Applied/added in rev606.

    Thanks!

     
  • Martin Kutter

    Martin Kutter - 2008-04-16
    • milestone: 754229 --> 2.0x
    • assigned_to: nobody --> kutterma
    • status: open --> closed-fixed
     

Log in to post a comment.