I actually somewhat resolved the issue by using the getProxy command. Below is the code that I used to remedy the situation:
include_once('nusoap.php');
// Define needed parameters and put them in an array..
$parameters = array(
'v_state' => 'NJ',
'v_city' => 'Haledon',
);
// Define new object and specify location of wsdl file.
$soapclient = new soapclient('http://www.test.com',true);
$proxy = $soapclient->getProxy();
$err = $soapclient->getError();
if ($err) {
// Display the error
$answer = 'Constructor error ' . $err;
} else {
// call the method and get the result.
/* $result = $soapclient->call('GetData',$parameters,'http://www.test.com');*/
$result = $proxy->GetData($parameters);
// Display the request and response
echo 'Request';
echo '' . htmlspecialchars($proxy->request, ENT_QUOTES) . '';
echo 'Response';
echo '' . htmlspecialchars($proxy->response, ENT_QUOTES) . '';
Using getProxy solved my issue, however this caused another issue. The above code works fine when I am running it from my home server. However, when I try to use the same code on my work machine server I am getting some weird error:
Parse error: parse error, unexpected T_STRING in /home/oracle/infr/lib/php/nusoap.php(6983) : eval()'d code on line 1
Fatal error: Cannot instantiate non-existent class: soap_proxy_484983192 in /home/oracle/infr/lib/php/nusoap.php(6985) : eval()'d code on line 1
im not sure why this error is occuring since i am using the same php classes as my server machine at home. I am going to re-post this problem because its a different issue. Has anyone run into this type of problem using getProxy??