public virtual c__quotedatabean getquote(Sybase.PowerBuilder.PBString symbol) { Sybase.PowerBuilder.IPBValue[] __PBNIInteralArgs = new Sybase.PowerBuilder.IPBValue[1]; System.Type[] __PBNIInteralArgTypes = new System.Type[1]; bool[] __PBNIInteralArgsByRef = new bool[1]; __PBNIInteralArgs[0] = symbol; if ((object)symbol == null) __PBNIInteralArgTypes[0] = typeof(Sybase.PowerBuilder.PBString); else __PBNIInteralArgTypes[0] = symbol.GetType(); __PBNIInteralArgsByRef[0] = false; Sybase.PowerBuilder.IPBValue __PBNIInteralReturn = new c__quotedatabean(); _proxy.Invoke("<method name='getQuote' ns='WebService' pbname='getQuote'><return name='returnvalue' type='WebService.QuoteDataBean' isRef='False' ArrayDim='0' IsNullableType='False' /><param name='symbol' type='System.String' pos='0' dir='in' ArrayDim='0' IsNullableType='False'/></method>", __PBNIInteralArgs, __PBNIInteralArgTypes, __PBNIInteralArgsByRef, ref __PBNIInteralReturn, typeof(c__quotedatabean)); return (c__quotedatabean)__PBNIInteralReturn; }
public virtual Sybase.PowerBuilder.PBDecimal of_get_current_price(Sybase.PowerBuilder.PBString as_symbol) { #line hidden c__soapexception e = null; try { try { #line 5 i_quote = i_service.getquote(as_symbol); #line hidden #line 6 return i_quote.price; #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 7 catch (c__soapexceptionE __PB_TEMP_e__temp) #line hidden { e = __PB_TEMP_e__temp.E; #line 8 i_ex.setmessage(e.GetMessage(), new Sybase.PowerBuilder.PBString("of_get_current_price( )")); #line hidden } #line 10 return (Sybase.PowerBuilder.PBDecimal)(new Sybase.PowerBuilder.PBDecimal(-1m)); #line hidden }