<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div>Your ignorance would be right!</div><div><br></div><div>Wish I was as ignorant as you.</div><div><br></div><div>Thanks</div><div><br></div><div>Mike</div><div><br></div><span id="OLK_SRC_BODY_SECTION"><div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><span style="font-weight:bold">From: </span> David Goodwin <<a href="mailto:david@codepoets.co.uk">david@codepoets.co.uk</a>><br><span style="font-weight:bold">Reply-To: </span> West Midlands PHP User Group <<a href="mailto:phpwm@mailman.lug.org.uk">phpwm@mailman.lug.org.uk</a>><br><span style="font-weight:bold">Date: </span> Friday, 13 July 2012 15:39<br><span style="font-weight:bold">To: </span> West Midlands PHP User Group <<a href="mailto:phpwm@mailman.lug.org.uk">phpwm@mailman.lug.org.uk</a>><br><span style="font-weight:bold">Subject: </span> Re: [Phpwm] Soap Client question<br></div><div><br></div><div><div 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></div></div>_______________________________________________
Phpwm mailing list
Website : <a href="http://www.phpwm.org">http://www.phpwm.org</a>
Twitter : <a href="http://www.twitter.com/phpwm">http://www.twitter.com/phpwm</a>
Facebook: <a href="http://www.facebook.com/group.php?gid=2361609907">http://www.facebook.com/group.php?gid=2361609907</a>
Post to list: <a href="mailto:Phpwm@mailman.lug.org.uk">Phpwm@mailman.lug.org.uk</a>
Archive etc : <a href="https://mailman.lug.org.uk/mailman/listinfo/phpwm">https://mailman.lug.org.uk/mailman/listinfo/phpwm</a></span></body></html>