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

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.
  • Comment on Re^2: SOAP::Lite - a hyphen in method name

Replies are listed 'Best First'.
Re^3: SOAP::Lite - a hyphen in method name
by Corion (Patriarch) on Aug 27, 2015 at 14:33 UTC

    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?

        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.