palette has asked for the wisdom of the Perl Monks concerning the following question:

I want two different wsdl defintions to be defined in the same SOAP client stub class.
I use stubmaker.pl to create the SOAP client for me.

How can I automatically generate a single SOAP client stub with 2 wsdl's

Not sure whether such thing can be done.

If can't be done automatically pls guide with ways to do it effectively.

  • Comment on Two wsdl file defintions in the same file

Replies are listed 'Best First'.
Re: Two wsdl file defintions in the same file
by jhourcle (Prior) on Mar 25, 2009 at 14:44 UTC

    I suspect that it'd get a bit messy to maintain in the long run.

    What I'd do is to make two separate stubs, and then use a third object that inherits (or uses, as appropriate) the two services.

    There may be some better way, but without explaining what you're trying to do, I can't offer any advice.