eg/simple-soap-client
raw| 1 | #!/usr/bin/perl |
| 2 | |
| 3 | use warnings; |
| 4 | use strict; |
| 5 | use utf8; |
| 6 | |
| 7 | use SOAP::Lite; |
| 8 | |
| 9 | my $s=SOAP::Lite->new( |
| 10 | uri=>"http://localhost:12700", |
| 11 | proxy=>"http://localhost:12700?session=Test", |
| 12 | ); |
| 13 | |
| 14 | my $som = $s->commit(); |
| 15 | |
| 16 | die 'SOAP FAULT: ', $som->fault->{faultstring}, "\n", $som->fault->{detail}, "\n" |
| 17 | if $som->fault; |
| 18 | |
| 19 | print $som; |