Web Services Quiz: Issue 10

YAWSQ (Yet Another Web Services Quiz)

Let me describe the following scenario:

  • Web Service T1 contains an operation that returns a string
  • Web Service T2 calls Web Service T1 in the context of its own operation
  • Both Web Services run under IIS using the following security configuration:
    • “Integrated Windows Authentication” enabled
    • “Anonymous Access” disabled

Do you see a problem in the following implementation?

As always, answer and explanation will follow…

T1.asmx

   public class T1

   {

      [WebMethod]

      public string HelloWorld()

      {

         return "Hello World";

      }

   }

T2.asmx

   public class T2

   {

      [WebMethod]

      public string HelloWorld()

      {

         t1.T1 t1 = new OrderSrv.t1.T1();

         return t1.HelloWorld();

      }

   }