Loading ...
Sorry, an error occurred while loading the content.

Re: [soaplite] test.pl

Expand Messages
  • Byrne Reese
    It looks as if that service is no longer available on XMethods. I might try composing and sending a message to a different service... the concepts of the
    Message 1 of 2 , Mar 21, 2004
    • 0 Attachment
      It looks as if that service is no longer available on XMethods. I might
      try composing and sending a message to a different service... the
      concepts of the article should hold true regardless of what you are calling.

      gaya_it2001 wrote:
      > i have run test.pl program. then error is coming as 405 Method not
      > allowed at /usr/local/apache/cgi-bin/test.pl line 29
      >
      >
      > program
      >
      > #!/usr/bin/perl
      > #
      > # SOAP::Lite demonstration script for soapenv.org
      > #
      > # This script composes a message to the following
      > # service and print the result:
      > #
      > # http://www.xmethods.net/ve2/ViewListing.po?serviceid=4212
      > #
      > # Usage:
      > # test.pl <zodiac sign>
      > #
      > # Author: Byrne Reese <breese@...>
      > #
      > ###################################################
      >
      > use SOAP::Lite;
      >
      > # Variables
      > $HOST = "http://thor.velocigen.com:80/vx_engine/soap-trigger.pperl";
      > $NS = "urn:vgx-horoscope";
      > $SIGN = shift; # read from the command line
      >
      > my $soap = SOAP::Lite
      > ->uri($NS)
      > ->on_action(sub { return $NS })
      > ->proxy($HOST);
      >
      > my $som = $soap->getHoroscope(SOAP::Data->name("astrology" =>
      > \SOAP::Data->name("sign" => $SIGN)));
      >
      > print "The horoscope for $SIGN is:\n";
      > print
      > $som->valueof('//Envelope/Body/getHoroscopeResponse/astrology/horoscope');
      > print "\n";
      >
      > 1;
      >
      > pls tell why is that error?
      >
      > gayani
      > thanks
      >
      >
      >
      >
      >
      > *Yahoo! Groups Sponsor*
      > ADVERTISEMENT
      > <http://rd.yahoo.com/SIG=12cuckst6/M=281792.4727319.5879690.1261774/D=egroupweb/S=1705701014:HM/EXP=1080025268/A=2058224/R=0/SIG=116652qbq/*http://my.yahoo.com/promo/ppets.html>
      >
      >
      > ------------------------------------------------------------------------
      > *Yahoo! Groups Links*
      >
      > * To visit your group on the web, go to:
      > http://groups.yahoo.com/group/soaplite/
      >
      > * To unsubscribe from this group, send an email to:
      > soaplite-unsubscribe@yahoogroups.com
      > <mailto:soaplite-unsubscribe@yahoogroups.com?subject=Unsubscribe>
      >
      > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
      > Service <http://docs.yahoo.com/info/terms/>.
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.