0 Replies Latest reply on Jan 7, 2011 1:42 PM by fatbob73

    Trying to call a JBoss WS from a C# client

    fatbob73 Newbie

      Hi everyone!

       

      I'm trying to call a Java web serivce from my C# desktop application. I added a web reference using the WSDL file. When I call a method that returns a String, everything works fine using the code below...

       

      private void btnGetTemplates_Click(object sender, EventArgs e)
      {
          owordWS.TestOWordWSBeanService ws = new
          owordWS.TestOWordWSBeanService();

          GetAllTemplates gt = new GetAllTemplates();

          GetAllTemplatesResponse gtresp = ws.GetAllTemplates(gt);

          MessageBox.Show(gtresp.@return);

      }

       

      When I call a method that returns a List, I don't have the "Response" as in the above code.

       

      Here is a screen shot when I add a reference to my web service...

      wsdl in VS2008.png

      But as you can see I don't have the "Response" available...

      GetListAllTemplates.png

      I'm wondering if this has something to do with the fact that the GetListOfAllTemplates returns a List? Can C# call a Java web service that returns a List?

       

      I've also attached my WSDL file.

       

      Any suggestions as to how I can call a method that returns a List?