コード例 #1
0
 public string InvokeXmlService(string XmlString)
 {
     try
     {
         var requestId = "ixs-" + Guid.NewGuid();
         return(msmqsqldbconfig.PublishedToBus(msmqsqldbconfig.ConfigureEndpoint("primeritus.publisher"), new VMXml {
             RequestID = requestId, Message = XmlString
         }));
     }
     catch (Exception err)
     {
         //return Messages.ServerDown;
         return(err.Message);
     }
 }
コード例 #2
0
 public string InvokeXmlService(string XmlString, string RequestType)
 {
     try
     {
         var requestId = "ixs-" + Guid.NewGuid();
         return(msmqsqldbconfig.PublishedToBus(msmqsqldbconfig.ConfigureEndpoint(ConfigurationManager.AppSettings["PublisherQueue"]),
                                               new VMXml {
             RequestID = requestId, Message = XmlString, RequestType = RequestType
         }));
     }
     catch (Exception err)
     {
         //return Messages.ServerDown;
         return(err.Message);
     }
 }