How to send multiple perameters in SOAP request.

Discussion in 'Perl' started by mohiddinb, Oct 25, 2007.

  1. mohiddinb

    mohiddinb New Member

    Joined:
    Sep 18, 2007
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    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.
     
  2. naveen

    naveen New Member

    Joined:
    Jun 2, 2005
    Messages:
    39
    Likes Received:
    1
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Calcutta, India
    Home Page:
    http://naveenhere.blogspot.com
    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.
     
  3. mohiddinb

    mohiddinb New Member

    Joined:
    Sep 18, 2007
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    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 a moderator: Oct 25, 2007
  4. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice