How to send multiple perameters in SOAP request.

mohiddinb's Avatar
Light Poster
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.
0
naveen's Avatar
Go4Expert Member
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.
0
mohiddinb's Avatar
Light Poster
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
0
pradeep's Avatar, Join Date: Apr 2005
Team Leader
http://search.cpan.org/~byrne/SOAP-L...s/SOAP/Lite.pm check this out for more information!