using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.Web.Services.Protocols;
using W=Microsoft.Web.Services3;
using System.Xml.Serialization;
namespace StdClient
{
	/*xmlns:sqloptions="http://schemas.microsoft.com/sqlserver/2004/SOAP/Options">
<!-- create a new session, with explicit timeout -->
<sqloptions:sqlSession initiate="true" timeout="12"/*/

	[XmlRoot(Namespace = "http://schemas.microsoft.com/sqlserver/2004/SOAP/Options",
		ElementName = "sqlSession")]
	public class session : SoapHeader
	{
		[XmlAttribute]
		public bool initiate;
		[XmlAttribute]
		public int timout;
	}

	class Program
	{
		static void Main(string[] args)
		{
			canopus5.RepairPoint rp = new canopus5.RepairPoint();
			rp.Credentials = CredentialCache.DefaultCredentials;
			//rp.Proxy = new WebProxy("127.0.0.1", 8888);
			rp.CookieContainer = new CookieContainer();
			rp.PreAuthenticate = true;
			//W.RequestSoapContext.Current
			//W.RequestSoapContext.Current.Envelope.Header =

      int? a = rp.GetEstimate("asdf");
			Console.WriteLine(rp.GetEstimate("asdf"));
		}
	}
}
