JBoss Community

Trying to call a JBoss WS from a C# client

created by fatbob73 in JBoss Web Services Development - View the full discussion

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...

http://community.jboss.org/servlet/JiveServlet/downloadImage/2-579566-10823/450-247/wsdl+in+VS2008.png

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

http://community.jboss.org/servlet/JiveServlet/downloadImage/2-579566-10824/450-211/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?

Reply to this message by going to Community

Start a new discussion in JBoss Web Services Development at Community