<!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="https://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;">
    Re: Kick off Wise 1.3 (perhaps 2.0...?) development
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/asoldano">Alessio Soldano</a> in <i>Wise Development</i> - <a href="https://community.jboss.org/message/798541#798541">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 Paolo,</p><p>first of all thanks a lot for the feedback / followup.</p><p>I've been reading the post from Duncan and thinking about this topic a bit. The sample mentioned there is interesting, I can ofcourse see few "issues" from a WS point of view that could be possibly addressed using Wise, as you noticed. Among them, I would probably mention the direct usage of JAXB, the need of compile time defined mappers for the request/response and the need for in advance generation of stubs (the request / response type classes). Moreover such an approach would probably work for DOC/Lit contracts only. Using Wise you could avoid manually generating / writing the req/res classes (the tool would internally do that) and you could navigate the Wise model (see <a class="jive-link-external-small" href="http://anonsvn.jboss.org/repos/wise/core/tags/wise-core-2.0.0.Final/core/src/main/java/org/jboss/wise/core/client/WSMethod.java" rel="nofollow">WSMethod</a>, <a class="jive-link-external-small" href="http://anonsvn.jboss.org/repos/wise/core/tags/wise-core-2.0.0.Final/core/src/main/java/org/jboss/wise/core/client/WSEndpoint.java" rel="nofollow">WSEndpoint</a>, <a class="jive-link-external-small" href="http://anonsvn.jboss.org/repos/wise/core/tags/wise-core-2.0.0.Final/core/src/main/java/org/jboss/wise/core/client/WSService.java" rel="nofollow">WSService</a>, <a class="jive-link-external-small" href="http://anonsvn.jboss.org/repos/wise/core/tags/wise-core-2.0.0.Final/core/src/main/java/org/jboss/wise/core/client/WebParameter.java" rel="nofollow">WebParameter</a>) and finally use reflection on the Type linked in WebParameter instances to dynamically build up request parameter map to perform the invocation with.</p><p>That might not be super-easy for complex scenarios though (while it would definitely be quite easy for the simple example mentioned in the Duncan's example, it's just a string parameter there). So, you might want to use a Smooks based approach. The Wise core testsuite comes with an example (<a class="jive-link-external-small" href="http://anonsvn.jboss.org/repos/wise/core/tags/wise-core-2.0.0.Final/integration-testsuite/common/src/test/java/org/jboss/wise/test/integration/smooks/" rel="nofollow">[1]</a>, <a class="jive-link-external-small" href="http://anonsvn.jboss.org/repos/wise/core/tags/wise-core-2.0.0.Final/integration-testsuite/common/src/test/resources/META-INF/smooks/" rel="nofollow">[2]</a><span style="font-size: 10pt;">) of Smooks transformation applied on both request parameters and response results. In the example Smooks transformations are defined to map a user model to the WS generated types.</span></p><p><span style="font-size: 10pt;">It might be interesting to try writing up an example using mapping files dynamically generated by inspecting the Wise model, perhaps using &lt;String key, primitive value&gt; maps as parameter input and result output; I'll probably try spending some time on this sooner or later, if it's doable that would further lower the complexity of ws invocation.<br/></span></p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/798541#798541">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Wise Development at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2049">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>