• Mike

    (@internetgenie)


    Hi,

    I am trying to connect my contact form to send data to a SOAP web service.
    I have created a function which hooks into wpcf7_mail_sent and retrieves the posted data fine using.

    $submission = WPCF7_Submission::get_instance();
    if ($submission) {
    		$posted_data = $submission->get_posted_data();
    }
    

    However the web service takes an XML string with the data which I’ve built using DOMImplementation and the posted data array above but when I test it all I get is a spinning circle – though the email confirmation from Contact Form 7 is still coming through.

    I am sure the XML is valid as I have used the same code on another form without problems aside from changing the variables to match the array.

    I’m just wondering has anybody else sent data using a SOAP web service with Contact Form 7 and how to go about it?

    Many thanks in advance.

    The page I need help with: [log in to see the link]

  • The topic ‘Connect to SOAP web service’ is closed to new replies.