Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: SOAP::Lite - Multiple namespaces

by olus (Curate)
on Mar 17, 2009 at 16:37 UTC ( #751240=note: print w/replies, xml ) Need Help??


in reply to SOAP::Lite - Multiple namespaces

something like (untested)

... my $token = SOAP::Data->name('token' => 'value')->attr({xmlns => +'ns1'}); my $merchantId = SOAP::Data->name('merchantId' => 'value')->attr({xmln +s => 'ns1'}); my %request = ( 'Amount' => 'value', 'CurrencyCode' => 'value', 'CustomerEmail' => 'value', #.... ); my @request_values = (); foreach my $r (keys %request) { push @request_values, SOAP::Data->name($r => $request{$r})->attr({xmlns => 'ns2'}); } my $request = ( SOAP::Data->name('request' => \SOAP::Data->value( @request_values ) )->attr({xmlns => 'ns1'}) ); my @setup_values = (); push @setup_values, $token, $merchantId, $request; my $setup = ( SOAP::Data->name('Setup' => \SOAP::Data->value( @setup_values ) )->attr({xmlns => 'ns1'}) ); # pass $setup as a param to the method to be called ...

Replies are listed 'Best First'.
Re^2: SOAP::Lite - Multiple namespaces
by DreamT (Pilgrim) on Mar 18, 2009 at 14:36 UTC
    Worked like a charm - and made sense too:-)
    Thank you for your help, I really appreciate it.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://751240]
help
Chatterbox?
[marto]: Hey Corion, how are things?
[Corion]: Fine! It's amazing how productive I can be with a 3hour daily workload removed :)
[Corion]: My to-do emails level is at a 12-months-low of 21 , from 36 last week ;)
[marto]: I'm recovering from a bad day yesterday, on most counts :P
[Corion]: Also , I made great progress in actually writing the automation script that will run large parts of the 3hour workload now, largely by discussing what error conditions need to be handled by manual intervention and reducing these :)

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2018-05-24 07:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?