Mark Wilson I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
This function decodes xml
into native PHP type. After getting the response from server, it needs to be converted
into PHP native types so that it can be used. This function returns an array
which contains array of native type objects.
PHP
Code:
<?php
function do_call($host, $port,
$request) {
$fp = fsockopen($host,
$port, $errno, $errstr);
$query = "POST /default/php/server.php HTTP/1.0\nUser_Agent: This is a Dummy
Client\nHost: ".$host."\nContent-Type: text/xml\nContent-Length:
".strlen($request)."\n\n".$request."\n";