在我的控制台应用程序中,我添加了对http://www.ibanbic.be/IBANBIC.asmx的服务引用。我需要使用其中的操作。
现在,这是我的一小段代码,从我在教程中看到的内容来看,这应该足以连接到它并获得价值。但我得到的唯一值是“字符串为空”。
using (BANBICSoapClient WebService = new BANBICSoapClient())
{
string bban = "*****";
   try
   {
      string resultIban = WebService.BBANtoIBAN(bban);
      if (resultIban != string.Empty)
      {
         Console.WriteLine(resultIban);
      }
      else
      {
         Console.WriteLine("String is empty.");
      }
   }
   catch(Exception msg)
   {
      Console.WriteLine(msg);
   }
}
Console.ReadLine(); 
谁能给我更多关于什么是错的信息?