How do l create a wsdl file

I am trying to generate a soap wsdl file, and l am using phpwsdl. I am getting the following error: Extra content at the end of the document. Is there another wsdl generator that l can use? or how can l solve this error?