in reply to Re^2: SOAP::Lite - a hyphen in method name
in thread SOAP::Lite - a hyphen in method name

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.

Replies are listed 'Best First'.
Re^4: SOAP::Lite - a hyphen in method name
by TheNode (Initiate) on Aug 28, 2015 at 08:10 UTC
    I should have mentioned that I'm using SOAP::Lite 0.60a metacpan link Is it still generate_stub sub problem?
        I did not found any mention about hyphen problems. And I cannot switch that version, cause it is the last one officially released for RHEL 5. Is there any way to edit XML before it is sent?

      If you search for the string Bad stub from your error message in the module, you will find that it is generated when the call to ->stub fails. So, in your case, the method is named stub, not generate_stub. But that changes very little about the problem and the approach to the solution.