#! /usr/bin/perl -wl use strict; use SOAP::Lite; use Data::Dumper; $Data::Dumper::Indent = 1; my $soap = SOAP::Lite->uri( 'https://ws1.responsys.net/webservices/ResponsysWS?wsdl' )->proxy( 'https://ws1.responsys.net/webservices/ResponsysWS?wsdl' ); my $return = $soap->login('USER', 'PASSWORD'); #print Dumper($return); if ($return->fault) { die $return->faultstring; } $return = $soap->listFolders(); if ($return->fault) { die $return->faultstring; } #### java.rmi.RemoteException: RIAccount object is not available in session at test.pl line 24. #### ((ResponsysWSSoapBindingStub) service).setMaintainSession(true); #### #! /usr/bin/perl -wl use strict; use SOAP::Lite; use Data::Dumper; $Data::Dumper::Indent = 1; my $soap = SOAP::Lite->service( 'file://users/btilly/responsys/ResponsysWS.wsdl' )->proxy( 'https://ws1.responsys.net/webservices/ResponsysWS?wsdl' ); $soap->login('USER', 'PASSWORD'); print $soap->listFolders; #### 'org.xml.sax.SAXParseException: The value of the attribute "p refix="xmlns",localpart="namesp1",rawname="xmlns:namesp1"" is invalid. Prefixed namespace bindings may not be empty.'