[Phpwm] Soap Client question

Mike Tipping mike at etuna.co.uk
Fri Jul 13 14:25:55 UTC 2012


I'm trying to work with the SOAP interface to the Silverpop API and I'm
having some issues.

The request I want to send looks like this:

<Envelope> <Body> <AddRecipient> <LIST_ID>85628</LIST_ID>
<CREATED_FROM>1</CREATED_FROM> <COLUMN> <NAME>Customer Id</NAME>
<VALUE>123-45-6789</VALUE> </COLUMN> <COLUMN> <NAME>EMAIL</NAME>
<VALUE>somebody at domain.com</VALUE> </COLUMN> <COLUMN> <NAME>Fname</NAME>
<VALUE>John</VALUE> </COLUMN> </AddRecipient> </Body> </Envelope>

So I have 

    $params = array(
      'LIST_ID' => 1111,
      'CREATED_FROM' => 0,
      'COLUMN' => array('NAME' => 'email', 'VALUE' =>
'somebody at domain.com'),
     'COLUMN' => array('NAME' => 'Fname', 'VALUE' => 'John')
    );
client->AddRecipient($params);

Which works but obviously the params array can only have 1 'COLUMN' key so I
can't pass more than one field.

I've tried passing the params as SoapVar objects but that seems to stop the
function  name wrapping to parameters for some reason.

Anyone got any ideas what I should be doing here?

Cheers

Mike


   


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/phpwm/attachments/20120713/db716c5d/attachment.htm>


More information about the Phpwm mailing list