I am trying to create a simple web-service with SOAP and WSDL. I use the built in Soap-server for the handling. When i try to run the web-service i get this error:
SOAP-ERROR: Parsing WSDL: Couldn't load from 'E:\xampp\htdocs\PHPWebService\blog.wsdl' : Start tag expected, '<' not found
I have tried putting the Soap-server code in the begin of the code and on the end to see if that resulted in something but it doesn't.
Here is my code:
<?php
class TestClass{
public function getVar($var){
return "Value of var = " + $var;
}
}
$oServer = new SoapServer("blog.wsdl");
$oServer->setClass("TestClass");
$oServer->handle();
?>