in reply to SOAP::Lite - a hyphen in method name

Maybe you can show us the actual code you're using? Most likely, you can fake the "hyphen-in-a-method name" by using something like:

my $method_name = 'bpi-request'; $soap->$method_name( 'foo', 'bar', 'baz' );

Also worth investigating would be $session->call( $method_name, ...), which also allows you to call functions that Perl would consider having illegal names in SOAP::Lite.

Replies are listed 'Best First'.
Re^2: SOAP::Lite - a hyphen in method name
by TheNode (Initiate) on Aug 27, 2015 at 13:43 UTC
    I've already tried that. The hyphen exists in wsdl file what makes problem for Lite.pm module. If I remove hyphen from wsdl and perl script then request is sent. But to get proper response I have to have that hypen in XML request.

      The problematic code is in ->generate_stub (metacpan link). I would print out what ->generate_stub creates and then patch the code in ->generate_stub appropriately to generate a sane/sanitized code. Most likely you can fake things by munging the parameter generate_stub gets.

        I should have mentioned that I'm using SOAP::Lite 0.60a metacpan link Is it still generate_stub sub problem?