Viewing 1 replies (of 1 total)
  • That’s a soap request format, ie a data structure, not code.

    First you have to construct the request using the XMLWriter object:

    $xml = new XMLWriter();
    ....

    The you have to send the request to their server. A way of doing this is to use curl. The request is included as one on the curl options:

    curl_setopt($ch, CURLOPT_POSTFIELDS, $request);
    ....

    Once you have the response from the server, convert it into xml:

    $xml = simplexml_load_string($response);
    ....

    then you can manipulate the $xml object to get the parameters of the response.

    You might wrap this in a WordPress shortcode. functions.php of your child theme will contain your function for dealing with the shortcode, forming the request, analysing the response and outputting suitable content.

    http://www.w3schools.com/webservices/ws_soap_intro.asp
    http://www.w3schools.com/xml/

Viewing 1 replies (of 1 total)

The topic ‘SOAP 1.2 integration into WordPress’ is closed to new replies.