1SOAP::WSDL::Transport::UTseesrt(C3o)ntributed Perl DocumSeOnAtPa:t:iWoSnDL::Transport::Test(3)
2
3
4
6 SOAP::WSDL::Transport::Test - Test transport class for SOAP::WSDL
7
9 use SOAP::WSDL::Client;
10 use SOAP::WSDL::Transport::Test;
11
12 my $soap = SOAP::WSDL::Client->new()
13 $soap->get_transport->set_base_dir('.');
14 $soap->call('method', \%body, \%header);
15
17 SOAP::WSDL::Transport::Test is a file-based test transport backend for
18 SOAP::WSDL.
19
20 When SOAP::WSDL::Transport::Test is used as transport backend, the
21 response is read from a XML file and the request message is discarded.
22 This is particularly useful for testing SOAP::WSDL plugins.
23
24 Filename resolution
25 SOAP::WSDL::Transport makes up the response XML file name from the
26 SOAPAction of the request. The following filename is used:
27
28 base_dir / soap_action .xml
29
30 The protocol scheme (e.g. http:) and two heading slashes (//) are
31 stripped from the soap_action.
32
33 base_dir defaults to '.'
34
35 Examples:
36
37 SOAPAction: http://somewhere.over.the.rainbow/webservice/webservice.asmx
38 Filename: ./somewhere.over.the.rainbow/webservice/webservice.asmx.xml
39
40 SOAPAction: uri:MyWickedService/test
41 Filename: ./MyWickedService/test.xml
42
44 set_base_dir
45 Sets the base directory SOAP::WSDL::Transport::Test should look for
46 response files.
47
49 Copyright (c) 2007 Martin Kutter. All rights reserved.
50
51 This file is part of SOAP-WSDL. You may distribute/modify it under the
52 same terms as perl itself
53
55 Martin Kutter <martin.kutter fen-net.de>
56
58 $Rev: 218 $
59 $LastChangedBy: kutterma $
60 $Id: HTTP.pm 218 2007-09-10 16:19:23Z kutterma $
61 $HeadURL: https://soap-wsdl.svn.sourceforge.net/svnroot/soap-wsdl/SOAP-WSDL/trunk/lib/SOAP/WSDL/Transport/HTTP.pm $
62
63
64
65perl v5.32.0 2020-07-28 SOAP::WSDL::Transport::Test(3)