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....

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.