kinipranav has asked for the wisdom of the Perl Monks concerning the following question:

i'm able to get the wsdl by passing a cookie through the cgi object. however i need to do this for my soap request

here is the part where i call the wsdl

use strict; use warnings; use Log::TraceMessages qw(t); use Data::Dumper; use SOAP::Lite; use LWP::UserAgent; use HTTP::Cookies; use SOAP::Transport::HTTP; my $url = "http://mwebwtmmk9.xyz.com:15000/View/WebService/wsdl/View.w +sdl"; return $self->query->redirect(-uri => $url, -cookie => $self->redirect_cookie()) +; sub redirect_cookie { #returns a cookie my $self = shift; my $uid = $self->performUser->corpId; my $lastName = $self->performUser->lastName; my $firstName = $self->performUser->firstName; return $self->query->cookie(-name => 'statistics', -value => "$uid|$lastName|$firstName", -path => "/", -domain => ".xyz.com"); }

above code works and i get passed site minder

1)but how can i send a soap request to the above end-point? 2) how do i send my cookie with the soap request? (here's my soap call)

my @args=('DEVELOPMENT','test'); warn SOAP::Lite -> service('http://mwebwtmmk9.xyz.com:15000/View/WebService/wsdl/V +iew.wsdl') -> proxy('http://mwebwtmmk9.xyz.com:15000/View/WebService') # -> transport->cookie_jar(HTTP::Cookies->new($self->redirect_cookie +())) -> getStuff(@args) -> result . "\n";

Replies are listed 'Best First'.
Re: send soap request with cookie for SiteMinder
by Anonymous Monk on Jan 09, 2014 at 00:55 UTC