1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
#!perl use strict; use warnings; use utf8; use Data::Dumper qw/Dumper/; use DateTime; use SOAP::Lite 'trace', 'debug'; # Configurable parameters my $username = 'username'; my $password = 'password'; # The location of the wsdl my $wsdl = "https://monitor.econda-monitor.de/webservices/wsdl/Cancellation.wsdl"; # The namespace used for API headers. my $apiNS = "webservices.econda.de"; # Set the authentication request headers my @headers = ( SOAP::Header->name("username")->value($username)->uri($apiNS), SOAP::Header->name("password")->value($password)->uri($apiNS), ); # Make the Perl proxy for the service my $service = SOAP::Lite->service($wsdl); my $ordernr = "123456"; my $sum = 9.99; my $result = $service->doCancellation( SOAP::Data->new(name => 'cancellationSum', value => $sum ), SOAP::Data->new(name => 'orderNo', value => $ordernr ) ); print $result->success(); exit(0);
<wsdlsoap:address location="http://tempuri.org/webservice_server_classes/services/Cancellation"/>
1
2
3
4
5
6
7
8
9
10
11
lynx -head -dump 'http://tempuri.org/webservice_server_classes/services/Cancellation'
HTTP/1.1 302 Found
Cache-Control: private
Content-Length: 169
Content-Type: text/html; charset=utf-8
Location: http://www.bing.com/search?q=tempuri&form=MSDTR1
Server: Microsoft-IIS/7.5
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Wed, 14 Dec 2011 10:12:30 GMT
Connection: close