I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2011-11-22 09:58:04.731656-08 by danoobez
SOAP::WSDL Headers
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 =/
Direct Responses: Write a response