Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: SOAP::Lite:Java vs Perl

by Anonymous Monk
on May 27, 2008 at 09:57 UTC ( #688642=note: print w/replies, xml ) Need Help??


in reply to Re: SOAP::Lite:Java vs Perl
in thread SOAP::Lite:Java vs Perl

how about an example for http://searchapi2.dialog.com/axis/DialogSearch.wsdl?

Replies are listed 'Best First'.
Re^3: SOAP::Lite:Java vs Perl
by Your Mother (Chancellor) on May 27, 2008 at 17:22 UTC

    Give this a spin. (I was wrong, you have to provide the file/XML, it won't do remote requests natively -- I think the Catalyst Model module does). You should be able to see what's going on and check the docs (and dive the dump info or the published human API if there is one) for how to make calls.

    use strict; use warnings; use Data::Dumper; $Data::Dumper::Terse = 1; use XML::Compile::WSDL11; use LWP::Simple; # use XML::LibXML; # might want this my $uri = shift || die "Give a WSDL URI!\n"; my $wsdl = LWP::Simple::get($uri) || die "Couldn't get $uri"; my $schema = XML::Compile::WSDL11->new($wsdl); print Dumper($schema), "\n"; print "OPERATIONS_______________________________\n"; for my $op ( sort { $a->{operation} cmp $b->{operation} } $schema->operations ) { print "\t", $op->{operation}, "\n"; }

    (update, added sort)

      Eeek error: attribute `name' is required at {http://schemas.xmlsoap.org/wsdl/}definitions/at(name)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://688642]
help
Chatterbox?
[marto]: think targeted ads
[marto]: "your house is so big, consider product XYZ", "You clean a lot, consider product ABC"
Discipulus your house is so small, accept dollars from nigeria
[marto]: Discipulus, or space saving products, that sort of thing

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (11)
As of 2017-07-26 12:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (390 votes). Check out past polls.