Click here to Skip to main content
15,886,833 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am getting these errors

Request:
POST /SOAP/nusoap/productlist.php HTTP/1.0
Host: 127.0.0.1
User-Agent: NuSOAP/0.9.5 (1.123)
Content-Type: text/xml; charset=ISO-8859-1
SOAPAction: ""
Content-Length: 527

<soap-env:envelope soap-env:encodingstyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/"><soap-env:body><ns7491:getpublishers xmlns:ns7491="http://tempuri.org"><publishers xsi:type="xsd:string">name
Response:
Notice: Undefined property: nusoap_client::$reponse in C:\Users\User\Desktop\XAMPP\htdocs\productclient.php on line 31


What I have tried:

Here is my code:

productlist.php:
PHP
register("getPublishers");
$server->service($HTTP_RAW_POST_DATA);
productclient.php
PHP
getError();
if ($error) {
    echo "<h2>Constructor error</h2><pre>". $error . "</pre>";
}
$result = $client->call("getPublishers", array("publishers" => "name"));
if ($client->fault) {
    echo "<h2>Fault</h2><pre>";
    print_r($result);
    echo "</pre>";
}
else {
    $error = $client->getError();
    if ($error) {
        echo "<h2>Error</h2><pre>" . $error .
"</pre>";
    }
    else {
        echo "<h2>Publishers</h2><pre>";
        echo $result;
        echo "</pre>";
    }
}

echo "<h2>Request</h2>";
echo "<pre>" . htmlspecialchars($client->request, ENT_QUOTES)."</pre>";
echo "<h2>Response</h2>";
echo "<pre>" . htmlspecialchars($client->reponse, ENT_QUOTES)."</pre>";
Posted
Updated 6-Apr-21 22:07pm
v3
Comments
Richard Deeming 7-Apr-21 4:09am    
A 404 response simply means the endpoint you have requested does not exist.

The "undefined property" error means there's something wrong in your code. But there is no "line 31" in the code you've posted.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900