<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Trying to call a JBoss WS from a C# client
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/fatbob73">fatbob73</a> in <i>JBoss Web Services Development</i> - <a href="http://community.jboss.org/message/579566#579566">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi everyone!</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>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...</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>private void btnGetTemplates_Click(object sender, EventArgs e)<br/>{<br/>    owordWS.TestOWordWSBeanService ws = new<br/>    owordWS.TestOWordWSBeanService();</p><p>    GetAllTemplates gt = new GetAllTemplates();</p><p>    GetAllTemplatesResponse gtresp = ws.GetAllTemplates(gt);</p><p>    MessageBox.Show(gtresp.@return);</p><p>}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>When I call a method that returns a List, I don't have the "Response" as in the above code.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Here is a screen shot when I add a reference to my web service...</p><p><a href="http://community.jboss.org/servlet/JiveServlet/showImage/2-579566-10823/wsdl+in+VS2008.png"><span> http://community.jboss.org/servlet/JiveServlet/downloadImage/2-579566-10823/450-247/wsdl+in+VS2008.png </span></a></p><p>But as you can see I don't have the "Response" available...</p><p><a href="http://community.jboss.org/servlet/JiveServlet/showImage/2-579566-10824/GetListAllTemplates.png"><span> http://community.jboss.org/servlet/JiveServlet/downloadImage/2-579566-10824/450-211/GetListAllTemplates.png </span></a></p><p>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?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I've also attached my WSDL file.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Any suggestions as to how I can call a method that returns a List?</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/579566#579566">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Web Services Development at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2047">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>