using System;
using System.Web.Services.Protocols;
using ConsoleApplication1.reporting;

class Sample
{
 public static void Main()
 {
  ReportingService rs = new ReportingService();
  rs.Credentials = System.Net.CredentialCache.DefaultCredentials;

  DataSourceDefinition definition = null;

  try
  {
   definition = rs.GetDataSourceContents( "/demo/northwind" );
   Console.WriteLine( "Connection String: {0}", definition.ConnectString );
   Console.WriteLine( "Extension name: {0}", definition.Extension );
   Console.Read();
  }

  catch ( SoapException e )
  {
   Console.WriteLine( e.Detail.InnerXml.ToString() );
  }
 }
}

相关文章:

  • 2021-07-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-06
  • 2021-08-09
  • 2021-10-14
  • 2022-12-23
猜你喜欢
  • 2021-12-15
  • 2022-12-23
  • 2021-12-13
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案