fatbob73 [
http://community.jboss.org/people/fatbob73] created the discussion
"Trying to call a JBoss WS from a C# client"
To view the discussion, visit:
http://community.jboss.org/message/579566#579566
--------------------------------------------------------------
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/showImage/2-579566-10823/w...
http://community.jboss.org/servlet/JiveServlet/downloadImage/2-579566-108...
But as you can see I don't have the "Response" available...
http://community.jboss.org/servlet/JiveServlet/showImage/2-579566-10824/G...
http://community.jboss.org/servlet/JiveServlet/downloadImage/2-579566-108...
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
[
http://community.jboss.org/message/579566#579566]
Start a new discussion in JBoss Web Services Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]