Page 2 of 2
Posted: Tue Jul 17, 2007 7:44 am
by phpcoder
volka wrote:What is adding this
html document skeleton? Did you post the entire server.php?
Yep its a simple code doing nothing just returning a value. I can see the server response in xml file but I am getting error on the client side.
Posted: Tue Jul 17, 2007 7:46 am
by volka
The response from the soap server script includes this html skeleton which is wrong.
What is prepending this wrong code?
Did you post all of server.php?
Posted: Tue Jul 17, 2007 7:50 am
by phpcoder
volka wrote:The response from the soap server script includes this html skeleton which is wrong.
What is prepending this wrong code?
Did you post all of server.php?
Server.php
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
</body>
</html>
<?php
function getPuzzle($difficulty) {
$puzzles = "What is the best web mag in the world?";
return $puzzles;
}
$server = new SoapServer("http://192.168.1.55/dotNet.wsdl");
$server->addFunction("getPuzzle");
$server->handle();
?>
Posted: Tue Jul 17, 2007 7:55 am
by volka
Remove everything before the first <?php
Posted: Tue Jul 17, 2007 7:56 am
by phpcoder
volka wrote:Remove everything before the first <?php
Sorted. Thanks very very much. Really appreciated Thanks for your help.