in reply to How to create soap server script?

Did you look at:

Replies are listed 'Best First'.
Re^2: How to create soap server script?
by Boring (Novice) on Oct 06, 2010 at 01:34 UTC
    Hi marto,

    Thanks for the information. Yes, I did take a look.

    First of all, please correct me if I'm wrong. Most of the examples are using CGI, that means, server side script will return in CGI method only?

    Please advise. Thanks

      I’m afraid that I don’t understand your point/question.   Could you please rephrase it?   Elaborate a little?

        Hi sundialsvc4,

        server script -> hibye.cgi

        #!perl -w use SOAP::Transport::HTTP; SOAP::Transport::HTTP::CGI -> dispatch_to('Demo') -> handle; package Demo; sub hi { return "hello, world"; } sub bye { return "goodbye, cruel world"; } sub languages { return ("Perl", "C", "sh"); }

        The above sample code is from "http://guide.soaplite.com/#autodispatching"

        Correct me if I'm wrong:

        If client call server->hibye.cgi->sub hi

        hibye.cgi will go to package Demo->sub hi and return "hello, world"

        So, my questions are:

        If there is a wsdl, can I still use the above code?

        and

        the above sample code, the dispatch_to is "hard coded", can I do dynamic?

        Please advise. Thanks.