<!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;">
    Exposing webservice on ESB using SoapProcessor - wrong soap:address
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/mikaelfj">Mikael Jørgensen</a> in <i>JBoss ESB Development</i> - <a href="http://community.jboss.org/message/557289#557289">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,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I'm building up some action pipelines in JBoss ESB.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The first action is a webservice, exposed by the SoapProcessor - and the idea is to let the action pipeline be triggered by an invokation of the webservice, and then to have the next actions perform various tasks based on the content of the provided Message.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>It seems as if there are two ways of getting the WSDL for the webservice</p><ul><li><span>Through </span><a class="jive-link-external-small" href="http://host:8080/contract/" target="_blank">http://host:8080/contract/</a><span>... </span></li><li><span>Through </span><a class="jive-link-external-small" href="http://host:8080/Webservice.../....WS?wsdl" target="_blank">http://host:8080/Webservice.../....WS?wsdl</a></li></ul><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The first is the one generated by the ESB and and the latter is (if understood correctly) the one generated by JBossWS.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>If I use the latter one, then when I invoke the webservice, the Message gotten from SOAPProcessor.getMessage() is null, and if I understood it correctly, I need to use the first WSDL that refers to the specific port that was defined for the JBR provider that my service listens to.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>So all this works fine when running it all locally - i.e. I have a webservice client that uses the WSDL obrtained from </span><a class="jive-link-external-small" href="http://host:8080/contract/" target="_blank">http://host:8080/contract/</a><span>... to invoke the webservice.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>But, if I deploy the ESB/action pipeline on a remote server it breaks.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>I expect that the cause of the problem is, that the WSDL returned from </span><a class="jive-link-external-small" href="http://host:8080/contract/...contains" target="_blank">http://host:8080/contract/...contains</a><span> a soap:address looking like:</span></p><p><span>&lt;soap:address location="</span><a class="jive-link-external-small" href="http://localhost:8770/" target="_blank">http://localhost:8770/</a><span>"/&gt;</span></p><p>and this address does not make sense when the webservice is deployed on a remote host.</p><p>It looks like the soap:address of the WSDL just contains the string from the host attribute in the JBR provider definition from the jboss-esb.xml.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Is this how it is supposed to be?</p><p>If it is, how am I supposed to deploy the ESB stuff remotely - I't can't be that I need to alter the host attribute of the JBR provided to match the hostname of the machine it is deployed to.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>If this is not how it is supposed to be - how do I get hold on the proper WSDL which points to the proper host and port.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>(Or am I doing this entirely wrong ....?)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Regards</p><p>Mikael</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/557289#557289">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss ESB Development at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2032">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


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

</div>

</body>
</html>