Your web service needs a XML namespace since it's defining a XML Schema.
Control this namespace this way:
[WebService(Namespace="http://www.develop.com/webservices/")]
public class Calc
{
[WebMethod]
public int Add(int n1, int n2)
{
int sum = n1 + n2;
return(sum);
}
}
-Brock
DevelopMentor
http://staff.develop.com/ballen Quote:
Does anybody know how to control the serialization of the response a
webmethod? In short how can modify the response stream to remove the
string xmlns="http://tempuri.org/"> and the </string> tags? |