How to send multiple perameters in SOAP request.

Light Poster
25Oct2007,09:55   #1
mohiddinb's Avatar
Dear all,

How to send multiple perameters in SOAP request.

as i tried many things now really need your help can anybody help me in this.
as i was successful in sending single parameters in the Request,But when coming to multiple parameters i got the problem.

I am very thank ful if any body helps me in this and Thanks in Advance.

Thanks,
Mohiddin Baig.
Go4Expert Member
25Oct2007,11:02   #2
naveen's Avatar
Your question does not seem to be a Perl specific question, with the details you have provided. You need to provide more details like which module you are using (if any), give some example code that you are using, errors if any, etc.
Light Poster
25Oct2007,14:05   #3
mohiddinb's Avatar
I used SOAP::Lite module for this and i had tried two ways one is
Code:
my $adgroup_count2 = execute($campaign_service, 'getCampaignAdGroupCount', 
                                                campaignID => 13364501,	includeDeleted => 'false');

sub execute
{
    my ($soap_client, $operation, %params) = @_;

    my @soap_params;
    foreach my $key ( keys %params ){
        push @soap_params, SOAP::Data->name( $key )
                                     ->value( $params{ $key } )
        ;
    }

    my $som = $soap_client->call( $operation => @soap_params, Headers);
}
is it the correct way else suggest me the correct way
Thanks,
Mohiddin.

Last edited by shabbir; 25Oct2007 at 17:15.. Reason: Code block
Team Leader
25Oct2007,14:29   #4
pradeep's Avatar
http://search.cpan.org/~byrne/SOAP-L...s/SOAP/Lite.pm check this out for more information!