##Connecting to the WSDL file
Public myService As DialogSearch.SearchService = New _ DialogSearch.SearchService
##Creating a session object
Public mySession As DialogSearch.SessionStruct = New _ DialogSearch.SessionStruct
##Updating the object parameters
mySession.Account = “123456”
mySession.Password = “xyzabc”
mySession.Cost = 0
mySession.State=”START_SESSION”
mySession.Atomic = True
mySession.Interupt = False
##Sending the object as input to the Version function
Dim myResult As DialogSearch.StringResult = _
MyService.Version(mySession)
####
use strict;
use warnings;
use SOAP::Lite+trace=> 'debug';
{
##Connecting to the SOAP API
my $request = SOAP::Lite->service('http://searchapi2.dialog.com/axis/DialogSearch.wsdl');
##The session object with parameters
my $session = {};
$session->{Account} = 'account';
$session->{Password} = 'pass';
$session->{State} = 'START_SESSION';
$session->{Cost} = 0;
$session->{Atomic} = 'True';
$session->{Interupt} = 'False';
$session->{ProcessID} = '';
##Calling the version function
my $result = $request->Version($session);
}
####
soapenv:Server.userException
org.xml.sax.SAXException: Deserializing parameter 'Session': could not find deserializer for type SessionStruct