public virtual Sybase.PowerBuilder.PBBoolean of_connect(Sybase.PowerBuilder.PBString as_url)
	{
		#line hidden
		Sybase.PowerBuilder.PBInt retcode = Sybase.PowerBuilder.PBInt.DefaultValue;
		c__soapexception e = null;
		#line 2
		ib_connected = new Sybase.PowerBuilder.PBBoolean(false);
		#line hidden
		#line 3
		ib_loggedin = new Sybase.PowerBuilder.PBBoolean(false);
		#line hidden
		#line 4
		if (!(Sybase.PowerBuilder.Win.PBSystemFunctions.IsValid((Sybase.PowerBuilder.PBPowerObject)(i_conn))))
		#line hidden
		{
			#line 4
			i_conn = (c__soapconnection)this.CreateInstance(typeof(c__soapconnection));
			#line hidden
		}
		#line 6
		if (!(Sybase.PowerBuilder.Win.PBSystemFunctions.IsValid((Sybase.PowerBuilder.PBPowerObject)(i_wsconn))))
		#line hidden
		{
			#line 6
			i_wsconn = (Sybase.PowerBuilder.PBWSConnection)this.CreateInstance(typeof(Sybase.PowerBuilder.PBWSConnection));
			#line hidden
		}
		#line 7
		i_wsconn.Endpoint = as_url;
		#line hidden
		#line 10
		retcode = (Sybase.PowerBuilder.PBInt)(i_conn.createinstance_3_1063099506(ref i_service, new Sybase.PowerBuilder.PBString("tradeserviceasmx"), as_url));
		#line hidden
		#line 11
		if ((Sybase.PowerBuilder.PBBoolean)(retcode != new Sybase.PowerBuilder.PBInt(0)))
		#line hidden
		{
			#line 12
			Sybase.PowerBuilder.PBInt __PB_TEMP______switchTmpVar0 = retcode;
			#line hidden
			#line 13
			if (__PB_TEMP______switchTmpVar0 == new Sybase.PowerBuilder.PBInt(100) )
			#line hidden
			{
				#line 14
				i_ex.SetMessage(new Sybase.PowerBuilder.PBString("Create Proxy Instance Failed: Invalid Proxy Name: "));
				#line hidden
			}
			#line 15
			else if (__PB_TEMP______switchTmpVar0 == new Sybase.PowerBuilder.PBInt(101) )
			#line hidden
			{
				#line 16
				i_ex.SetMessage(new Sybase.PowerBuilder.PBString("Create Proxy Instance Failed: Failed to Create Proxy: "));
				#line hidden
			}

			#line 18
			i_ex.setmessage(i_ex.GetMessage()+ Sybase.PowerBuilder.Win.PBSystemFunctions.String((Sybase.PowerBuilder.PBAny)(((Sybase.PowerBuilder.PBAny)(retcode)))), this.ClassName());
			#line hidden
			#line 19
			throw new c__n_exceptionE(i_ex);
			#line hidden
		}
		try
		{
			try
			{
				#line 23
				i_service.isonline();
				#line hidden
			}
			catch (System.DivideByZeroException)
			{
				Sybase.PowerBuilder.PBRuntimeError.Throw(Sybase.PowerBuilder.RuntimeErrorCode.RT_R0001);
				throw new System.Exception();
			}
			catch (System.NullReferenceException)
			{
				Sybase.PowerBuilder.PBRuntimeError.Throw(Sybase.PowerBuilder.RuntimeErrorCode.RT_R0002);
				throw new System.Exception();
			}
			catch (System.IndexOutOfRangeException)
			{
				Sybase.PowerBuilder.PBRuntimeError.Throw(Sybase.PowerBuilder.RuntimeErrorCode.RT_R0003);
				throw new System.Exception();
			}
		}
		#line 24
		catch (c__soapexceptionE __PB_TEMP_e__temp)
		#line hidden
		{
			e = __PB_TEMP_e__temp.E;
			#line 25
			ib_connected = new Sybase.PowerBuilder.PBBoolean(false);
			#line hidden
			#line 26
			i_ex.setmessage(new Sybase.PowerBuilder.PBString("Unable to connect to ")+ as_url, this.ClassName());
			#line hidden
			#line 27
			throw new c__n_exceptionE(i_ex);
			#line hidden
		}
		#line 29
		ib_connected = new Sybase.PowerBuilder.PBBoolean(true);
		#line hidden
		#line 30
		return new Sybase.PowerBuilder.PBBoolean(true);
		#line hidden
	}
	public virtual Sybase.PowerBuilder.PBBoolean of_connect(Sybase.PowerBuilder.PBString as_url)
	{
		#line hidden
		Sybase.PowerBuilder.PBInt retcode = Sybase.PowerBuilder.PBInt.DefaultValue;
		PBWCF.WCFEndpointAddress d_endpoint = null;
		System.Exception e = null;
		#line 9
		ib_connected = new Sybase.PowerBuilder.PBBoolean(false);
		#line hidden
		#line 10
		ib_loggedin = new Sybase.PowerBuilder.PBBoolean(false);
		#line hidden
		#line 12
		if (!(Sybase.PowerBuilder.WPF.PBSystemFunctions.IsValid((Sybase.PowerBuilder.PBPowerObject)(i_service))))
		#line hidden
		{
			#line 13
			i_service = (c__fundtraderproxy_tradeservicesclient_basichttpbinding_itradeservices)this.CreateInstance(typeof(c__fundtraderproxy_tradeservicesclient_basichttpbinding_itradeservices), 0);
			#line hidden
		}
		#line 17
		d_endpoint =  new PBWCF.WCFEndpointAddress();
		#line hidden
		#line 18
		d_endpoint.URL = as_url;
		#line hidden
		#line 19
		i_service.wcfconnectionobject.EndpointAddress = d_endpoint;
		#line hidden
		#line 21
		if (!(Sybase.PowerBuilder.WPF.PBSystemFunctions.IsValid((Sybase.PowerBuilder.PBPowerObject)(i_wsconn))))
		#line hidden
		{
			#line 22
			i_wsconn = (Sybase.PowerBuilder.PBWSConnection)this.CreateInstance(typeof(Sybase.PowerBuilder.PBWSConnection), 0);
			#line hidden
		}
		#line 24
		i_wsconn.Endpoint = as_url;
		#line hidden
		try
		{
			try
			{
				#line 26
				i_service.isonline();
				#line hidden
			}
			catch (System.DivideByZeroException)
			{
				Sybase.PowerBuilder.PBRuntimeError.Throw(Sybase.PowerBuilder.RuntimeErrorCode.RT_R0001);
				throw new System.Exception();
			}
			catch (System.NullReferenceException)
			{
				Sybase.PowerBuilder.PBRuntimeError.Throw(Sybase.PowerBuilder.RuntimeErrorCode.RT_R0002);
				throw new System.Exception();
			}
			catch (System.IndexOutOfRangeException)
			{
				Sybase.PowerBuilder.PBRuntimeError.Throw(Sybase.PowerBuilder.RuntimeErrorCode.RT_R0003);
				throw new System.Exception();
			}
		}
		#line 27
		catch (System.Exception __PB_TEMP_e__temp)
		#line hidden
		{
			e = __PB_TEMP_e__temp;
			#line 28
			ib_connected = new Sybase.PowerBuilder.PBBoolean(false);
			#line hidden
			#line 29
			i_ex.setmessage(new Sybase.PowerBuilder.PBString("Unable to connect to ")+ as_url, this.ClassName());
			#line hidden
			#line 30
			throw new c__n_exceptionE(i_ex);
			#line hidden
		}
		#line 32
		ib_connected = new Sybase.PowerBuilder.PBBoolean(true);
		#line hidden
		#line 33
		return new Sybase.PowerBuilder.PBBoolean(true);
		#line hidden
	}