Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Perl (http://www.go4expert.com/forums/perl/)
-   -   How to send multiple perameters in SOAP request. (http://www.go4expert.com/forums/send-multiple-perameters-soap-request-t7014/)

mohiddinb 25Oct2007 09:55

How to send multiple perameters in SOAP request.
 
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.

naveen 25Oct2007 11:02

Re: How to send multiple perameters in SOAP request.
 
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.

mohiddinb 25Oct2007 14:05

Re: How to send multiple perameters in SOAP request.
 
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.

pradeep 25Oct2007 14:29

Re: How to send multiple perameters in SOAP request.
 
http://search.cpan.org/~byrne/SOAP-L...s/SOAP/Lite.pm check this out for more information!


All times are GMT +5.5. The time now is 21:05.