public TDDIDDIPackage InvokeExternalService(TDDIDDIPackage DDIPackage, string ServiceId, List <TDDIExternalServiceParameter> ServiceParameter)
     {
 #if !SILVERLIGHT
         send_InvokeExternalService(DDIPackage, ServiceId, ServiceParameter);
         return(recv_InvokeExternalService());
 #else
         var asyncResult = Begin_InvokeExternalService(null, null, DDIPackage, ServiceId, ServiceParameter);
         return(End_InvokeExternalService(asyncResult));
 #endif
     }
            public void send_InvokeExternalService(TDDIDDIPackage DDIPackage, string ServiceId, List <TDDIExternalServiceParameter> ServiceParameter)
      #endif
            {
                oprot_.WriteMessageBegin(new TMessage("InvokeExternalService", TMessageType.Call, seqid_));
                InvokeExternalService_args args = new InvokeExternalService_args();

                args.DDIPackage       = DDIPackage;
                args.ServiceId        = ServiceId;
                args.ServiceParameter = ServiceParameter;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
        #if SILVERLIGHT
                return(oprot_.Transport.BeginFlush(callback, state));
        #else
                oprot_.Transport.Flush();
        #endif
            }
            public void Read(TProtocol iprot)
            {
                iprot.IncrementRecursionDepth();
                try
                {
                    TField field;
                    iprot.ReadStructBegin();
                    while (true)
                    {
                        field = iprot.ReadFieldBegin();
                        if (field.Type == TType.Stop)
                        {
                            break;
                        }
                        switch (field.ID)
                        {
                        case 0:
                            if (field.Type == TType.Struct)
                            {
                                Success = new TDDIDDIPackage();
                                Success.Read(iprot);
                            }
                            else
                            {
                                TProtocolUtil.Skip(iprot, field.Type);
                            }
                            break;

                        default:
                            TProtocolUtil.Skip(iprot, field.Type);
                            break;
                        }
                        iprot.ReadFieldEnd();
                    }
                    iprot.ReadStructEnd();
                }
                finally
                {
                    iprot.DecrementRecursionDepth();
                }
            }
 public IAsyncResult Begin_InvokeExternalService(AsyncCallback callback, object state, TDDIDDIPackage DDIPackage, string ServiceId, List <TDDIExternalServiceParameter> ServiceParameter)
 {
     return(send_InvokeExternalService(callback, state, DDIPackage, ServiceId, ServiceParameter));
 }
            public void Read(TProtocol iprot)
            {
                iprot.IncrementRecursionDepth();
                try
                {
                    TField field;
                    iprot.ReadStructBegin();
                    while (true)
                    {
                        field = iprot.ReadFieldBegin();
                        if (field.Type == TType.Stop)
                        {
                            break;
                        }
                        switch (field.ID)
                        {
                        case 1:
                            if (field.Type == TType.Struct)
                            {
                                DDIPackage = new TDDIDDIPackage();
                                DDIPackage.Read(iprot);
                            }
                            else
                            {
                                TProtocolUtil.Skip(iprot, field.Type);
                            }
                            break;

                        case 2:
                            if (field.Type == TType.String)
                            {
                                ServiceId = iprot.ReadString();
                            }
                            else
                            {
                                TProtocolUtil.Skip(iprot, field.Type);
                            }
                            break;

                        case 3:
                            if (field.Type == TType.List)
                            {
                                {
                                    ServiceParameter = new List <TDDIExternalServiceParameter>();
                                    TList _list1536 = iprot.ReadListBegin();
                                    for (int _i1537 = 0; _i1537 < _list1536.Count; ++_i1537)
                                    {
                                        TDDIExternalServiceParameter _elem1538;
                                        _elem1538 = new TDDIExternalServiceParameter();
                                        _elem1538.Read(iprot);
                                        ServiceParameter.Add(_elem1538);
                                    }
                                    iprot.ReadListEnd();
                                }
                            }
                            else
                            {
                                TProtocolUtil.Skip(iprot, field.Type);
                            }
                            break;

                        default:
                            TProtocolUtil.Skip(iprot, field.Type);
                            break;
                        }
                        iprot.ReadFieldEnd();
                    }
                    iprot.ReadStructEnd();
                }
                finally
                {
                    iprot.DecrementRecursionDepth();
                }
            }
 public IAsyncResult send_InvokeExternalService(AsyncCallback callback, object state, TDDIDDIPackage DDIPackage, string ServiceId, List <TDDIExternalServiceParameter> ServiceParameter)