public void recv_WIP_View_Factory_List(string sRequest, ref string sReply) { byte[] outByt = FwxCmnFunction.UnPackMessage(sRequest); StreamTransformer former = new StreamTransformerImpl(outByt); WIP_View_Factory_List_In_Tag View_Factory_List_In = new WIP_View_Factory_List_In_Tag(); WIP_View_Factory_List_Out_Tag View_Factory_List_Out = new WIP_View_Factory_List_Out_Tag(); WIPType.transform_WIP_View_Factory_List_In_Tag(former, ref View_Factory_List_In); WIP_View_Factory_List(View_Factory_List_In, ref View_Factory_List_Out); /* Call User Procedure */ former = new StreamTransformerImpl(); WIPType.serialize_WIP_View_Factory_List_Out_Tag(former, View_Factory_List_Out); sReply = FwxCmnFunction.PackMessage(former.getBytes()); }
public abstract void WIP_View_Factory_List(WIP_View_Factory_List_In_Tag View_Factory_List_In, ref WIP_View_Factory_List_Out_Tag View_Factory_List_Out);
public static bool WIP_View_Factory_List(string FunctionName, WIP_View_Factory_List_In_Tag View_Factory_List_In, ref WIP_View_Factory_List_Out_Tag View_Factory_List_Out) { try { if (null == WIPUrl || WIPUrl.Trim().Equals("")) { throw new Exception("INVALID_URL"); } if (0 >= WIPTimeOut) { throw new Exception("INVALID_TIMEOUT"); } string sReplyMsg = null; string sSendMsg = null; byte[] aReplyData = null; SmartWebService oWebService = new SmartWebService(); StreamTransformer former = new StreamTransformerImpl(); oWebService.SetUrl(WIPUrl); oWebService.SetTimeOut(WIPTimeOut); WIPType.serialize_WIP_View_Factory_List_In_Tag(former, View_Factory_List_In); sSendMsg = FwxCmnFunction.PackMessage(former.getBytes()); oWebService.RequestReply(FunctionName, sSendMsg, ref sReplyMsg); aReplyData = FwxCmnFunction.UnPackMessage(sReplyMsg); former = new StreamTransformerImpl(aReplyData); WIPType.transform_WIP_View_Factory_List_Out_Tag(former, ref View_Factory_List_Out); return(true); } catch (Exception ex) { throw ex; } }
public static bool WIP_View_Factory_List(WIP_View_Factory_List_In_Tag View_Factory_List_In, ref WIP_View_Factory_List_Out_Tag View_Factory_List_Out) { return(WIP_View_Factory_List("WIP_View_Factory_List", View_Factory_List_In, ref View_Factory_List_Out)); }
public static void serialize_WIP_View_Factory_List_Out_Tag(StreamTransformer former, WIP_View_Factory_List_Out_Tag target) { former.writeMsgChar(target.h_status_value); former.writeMsgString(withoutSpace(target.h_msg_code)); former.writeMsgString(withoutSpace(target.h_msg)); former.writeMsgString(withoutSpace(target.h_field_msg)); former.writeMsgString(withoutSpace(target.h_db_err_msg)); former.writeMsgInt(target.count); former.writeMsgString(withoutSpace(target.next_factory)); target._size_factory_list = (1000 >= target._size_factory_list ? target._size_factory_list : 1000); former.writeMsgInt(target._size_factory_list); for (int i = 0; i < target._size_factory_list; i++) { serialize_WIP_View_Factory_List_Out_Tag_factory_list(former, target.factory_list[i]); } }
public static void transform_WIP_View_Factory_List_Out_Tag(StreamTransformer former, ref WIP_View_Factory_List_Out_Tag source) { source.h_status_value = former.readMsgChar(); source.h_msg_code = deleteNull(former.readMsgString()); source.h_msg = deleteNull(former.readMsgString()); source.h_field_msg = deleteNull(former.readMsgString()); source.h_db_err_msg = deleteNull(former.readMsgString()); source.count = former.readMsgInt(); source.next_factory = deleteNull(former.readMsgString()); source._size_factory_list = former.readMsgInt(); source.factory_list = new WIP_View_Factory_List_Out_Tag_factory_list[source._size_factory_list]; for (int i = 0; i < source._size_factory_list; i++) { source.factory_list[i] = new WIP_View_Factory_List_Out_Tag_factory_list(); transform_WIP_View_Factory_List_Out_Tag_factory_list(former, ref source.factory_list[i]); } }