Jump to content

XML error parsing SOAP payload on line 1: Empty document - Error using NuSOAP


Odys

Recommended Posts

Hi!

 

I posted a problem here a couple of days ago that had nothing to do with NuSOAP in the end! However this one I belive maybe being caused by NuSOAP.

 

I get the following error when I try to invoke a service....

 

XML error parsing SOAP payload on line 1: Empty document

 

The code is designed to send an email which it does despite the error, however I cant seem to find why i'm getting the error. The main body of the function is

 


$query="SELECT * FROM student WHERE school='$school'";

$result=mysql_query($query);

 

$rows=mysql_num_rows($result);

 

$i=0;

while ($i < $rows)

{

$name = mysql_result($result, $i, "name");

$email = mysql_result($result, $i, "email");

$school = mysql_result($result, $i, "school");

 

echo $name . "<br />";

echo $school . "<br />";

 

$message = "Hello '$name', Well despite some errors showing, it does actually work!";

 

mail($email, 'Test E-Mail', $message);

 

$i++;

}

 

mysql_close($conn);

 

return 'Message sent to all students in the school of ' . $school;


 

Can anyone help with this?

 

Cheers....

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.