[jboss-dev-forums] [JBoss Web Services Development] - Trying to call a JBoss WS from a C# client

fatbob73 do-not-reply at jboss.com
Fri Jan 7 13:42:57 EST 2011


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. at 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/wsdl+in+VS2008.png  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/showImage/2-579566-10824/GetListAllTemplates.png  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
[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&containerType=14&container=2047]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110107/72c6d484/attachment.html 


More information about the jboss-dev-forums mailing list