|
So my company is using a service called bronto [bronto.com] and I'm trying to tie in to their api. They use SOAP wsdl, which I have never used before. Bascially I need to 'login' to their system and retrieve a sessionId, which I am supposed to insert into a header for subsequent requests. I can get the sessionId, but for the life of me I cannot get anything after that to work
They have a GREAT sample snippet in PHP and JAVA AXIS, but not Perl...
http://app.bronto.com/api/?q=v4_hello
Currently this works to get the session_id
my $soap = SOAP::WSDL->new(wsdl => "https://api.bronto.com/v4?wsdl");
my $som = $soap
->call('login', login =>
{ apiToken => 'Token' }
);
my $session_id;
unless ($som->fault) {
$session_id = $som->result();
} else {
print join ', ',
$som->faultcode,
$som->faultstring;
}
Now, I cannot for the life of me use this to do anything else in their system. It needs to be inserted in to subsequent headers for each request I believe =/ |