[Phpwm] Soap Client question

Mike Tipping mike at etuna.co.uk
Fri Jul 13 15:01:35 UTC 2012


Your ignorance would be right!

Wish I was as ignorant as you.

Thanks

Mike

From:  David Goodwin <david at codepoets.co.uk>
Reply-To:  West Midlands PHP User Group <phpwm at mailman.lug.org.uk>
Date:  Friday, 13 July 2012 15:39
To:  West Midlands PHP User Group <phpwm at mailman.lug.org.uk>
Subject:  Re: [Phpwm] Soap Client question


On 13 Jul 2012, at 15:27, Mike Tipping wrote:

> 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);
> 
> 
> Ignorance would make me think that 'COLUMN' becomes an array containing the
> various COLUMNs. 
> 
> Which is how simplexml would return / work in such a context.
> 
> You could just post the XML over HTTP (faking the 'soap' request).
> 
> 
> David.
_______________________________________________ Phpwm mailing list Website :
http://www.phpwm.org Twitter : http://www.twitter.com/phpwm Facebook:
http://www.facebook.com/group.php?gid=2361609907 Post to list:
Phpwm at mailman.lug.org.uk Archive etc :
https://mailman.lug.org.uk/mailman/listinfo/phpwm

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


More information about the Phpwm mailing list