<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 13 Jul 2012, at 15:27, Mike Tipping wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); "><div style="font-family: Calibri, sans-serif; font-size: 14px; ">I'm trying to work with the SOAP interface to the Silverpop API and I'm having some issues.</div><div style="font-family: Calibri, sans-serif; font-size: 14px; "><br></div><div style="font-family: Calibri, sans-serif; font-size: 14px; ">The request I want to send looks like this:</div><div style="font-family: Calibri, sans-serif; font-size: 14px; "><br></div><div style="font-family: Calibri, sans-serif; font-size: 14px; "><table cellspacing="0" cellpadding="0" style="border-collapse: collapse; "><tbody><tr><td valign="top" style="padding-top: 0px; padding-right: 5px; padding-bottom: 0px; padding-left: 5px; "><p style="margin-top: 3px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; font: normal normal normal 9px/normal 'Myriad Pro'; "><Envelope> </p><p style="margin-top: 3px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; font: normal normal normal 9px/normal 'Myriad Pro'; "><Body> </p><p style="margin-top: 3px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; font: normal normal normal 9px/normal 'Myriad Pro'; "><AddRecipient> </p><p style="margin-top: 3px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; font: normal normal normal 9px/normal 'Myriad Pro'; "><LIST_ID>85628</LIST_ID> </p><p style="margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; font: normal normal normal 9px/normal 'Myriad Pro'; "><CREATED_FROM>1</CREATED_FROM> </p><p style="margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; font: normal normal normal 9px/normal 'Myriad Pro'; "><COLUMN> </p><p style="margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; font: normal normal normal 9px/normal 'Myriad Pro'; "><NAME>Customer Id</NAME> </p><p style="margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; font: normal normal normal 9px/normal 'Myriad Pro'; "><VALUE>123-45-6789</VALUE> </p><p style="margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; font: normal normal normal 9px/normal 'Myriad Pro'; "></COLUMN> </p><p style="margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; font: normal normal normal 9px/normal 'Myriad Pro'; "><COLUMN> </p><p style="margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; font: normal normal normal 9px/normal 'Myriad Pro'; "><NAME>EMAIL</NAME> </p><p style="margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; font: normal normal normal 9px/normal 'Myriad Pro'; "><VALUE><a href="mailto:somebody@domain.com">somebody@domain.com</a></VALUE> </p><p style="margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; font: normal normal normal 9px/normal 'Myriad Pro'; "></COLUMN> </p><p style="margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; font: normal normal normal 9px/normal 'Myriad Pro'; "><COLUMN> </p><p style="margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; font: normal normal normal 9px/normal 'Myriad Pro'; "><NAME>Fname</NAME> </p><p style="margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; font: normal normal normal 9px/normal 'Myriad Pro'; "><VALUE>John</VALUE> </p><p style="margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; font: normal normal normal 9px/normal 'Myriad Pro'; "></COLUMN> </p><p style="margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; font: normal normal normal 9px/normal 'Myriad Pro'; "></AddRecipient> </p><p style="margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; font: normal normal normal 9px/normal 'Myriad Pro'; "></Body> </p><p style="margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; font: normal normal normal 9px/normal 'Myriad Pro'; "></Envelope></p></td></tr></tbody></table></div><div style="font-family: Calibri, sans-serif; font-size: 14px; "><br></div><div style="font-family: Calibri, sans-serif; "><span class="Apple-style-span" style="border-collapse: collapse;">So I have </span></div><div style="font-family: Calibri, sans-serif; "><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: Calibri, sans-serif; "><div> <span class="Apple-tab-span" style="white-space:pre">        </span>$params = array(</div><div> <span class="Apple-tab-span" style="white-space:pre">                </span>'LIST_ID' => 1111,</div><div> <span class="Apple-tab-span" style="white-space:pre">                </span> 'CREATED_FROM' => 0,</div></span><span class="Apple-style-span" style="border-collapse: collapse; font-family: Calibri, sans-serif; "> <span class="Apple-tab-span" style="white-space:pre">                </span> 'COLUMN' => array('NAME' => 'email', 'VALUE' => '</span><span class="Apple-style-span" style="border-collapse: collapse; "><a href="mailto:somebody@domain.com">somebody@domain.com</a></span><span class="Apple-style-span" style="border-collapse: collapse; font-family: Calibri, sans-serif; ">'),<br></span><span class="Apple-style-span" style="border-collapse: collapse; font-family: Calibri, sans-serif; "> <span class="Apple-tab-span" style="white-space: pre; ">                </span> 'COLUMN' => array('NAME' => 'Fname', 'VALUE' => '<span class="Apple-style-span" style="border-collapse: collapse; ">John</span><span class="Apple-style-span" style="border-collapse: collapse; font-family: Calibri, sans-serif; ">')</span><span class="Apple-style-span" style="border-collapse: collapse; font-family: Calibri, sans-serif; "></span><div> <span class="Apple-tab-span" style="white-space:pre">        </span> );</div></span><span class="Apple-style-span" style="border-collapse: collapse; font-family: Calibri, sans-serif; "><span class="Apple-tab-span" style="white-space:pre">        </span>client->AddRecipient(</span><span class="Apple-style-span" style="border-collapse: collapse; font-family: Calibri, sans-serif; ">$params);</span></div><div style="font-family: Calibri, sans-serif; "><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></div></div></blockquote><div><br></div><div>Ignorance would make me think that 'COLUMN' becomes an array containing the various COLUMNs. </div><div><br></div><div>Which is how simplexml would return / work in such a context.</div><div><br></div><div>You could just post the XML over HTTP (faking the 'soap' request).</div><div><br></div><div><br></div><div>David.</div></div></body></html>