[Mono-list] [Webservice] illegal character error

FernandoX fernando.xavier at gmail.com
Wed Dec 16 10:49:22 EST 2009


Hi, 

I m trying to deploy a webservice. I used an example (in the end) from
internet but i got error when i typed this command:

wsdl2 "NumberService.asmx" /out:teste.cs

The error was: "Error: a name did not start with a legal character 37 (%)
file://<path>/NumberService.asmx Line 1, position 2" but i think that
example is correct.

Any idea? Im using Debian 5 with mono-2.0-devel package.

Regards

---------------------------------------------------

<%@ WebService Language="C#" Class="MathService.MathService" %>
 
using System;
using System.Web.Services;
 
namespace MathService
{
	public class MathService : WebService
	{
		[WebMethod]
		public int AddNumbers (int number1, int number2)
		{
			return number1 + number2;
		}
 
		[WebMethod]
		public int SubtractNumbers (int number1, int number2)
		{
			return number1 - number2;
		}
	}
}
-- 
View this message in context: http://old.nabble.com/-Webservice--illegal-character-error-tp26811440p26811440.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list