[Phpwm] Soap Client question
David Goodwin
david at codepoets.co.uk
Fri Jul 13 14:38:23 UTC 2012
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/phpwm/attachments/20120713/ede132e0/attachment.htm>
More information about the Phpwm
mailing list