Our web reference does not seem to be defined in web.config of the website that consumes it. I found that there is a configuration file called \"Reference.map\" in the \"Web Ref
On Compact Framework you have to read the config file on your own class of WebService:
public partial class YourService : System.Web.Services.Protocols.SoapHttpClientProtocol {
///
public HandTerminalService() {
string appSettings = string.Concat(Assembly.GetExecutingAssembly().GetName().CodeBase, ".config");
XmlDocument xmlDocument = new XmlDocument();
xmlDocument.Load(appSettings);
XmlNode xmlNode = xmlDocument.SelectSingleNode("//configuration/appSettings/add[@key = 'Proxy.YourServiceService']");
if (xmlNode.Attributes["value"].Value != null)
{
this.Url = string.Concat(xmlNode.Attributes["value"].Value, "");
} else
{
this.Url = "http://:/YourService.asmx";
}
}