<!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;">
    Can't access JAX-WS WSDL except via "localhost" URL
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/ro2000">Roger Huang</a> in <i>JBoss Web Services</i> - <a href="https://community.jboss.org/message/775671#775671">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>I created a JAX-WS web service starting from a WSDL (contract-first), using </p><p>wsconsume -k JimmySoaTest.wsdl</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>It seems to publish ok on JBoss AS 7.1.3, on Windows Enterprise 7.</p><p>Server log:</p><p>17:19:30,812 INFO&#160; [org.jboss.as.server.deployment] (MSC service thread 1-4) JBA</p><p>S015876: Starting deployment of "JimmySoaTest2.war"</p><p>17:19:30,959 INFO&#160; [org.jboss.wsf.stack.cxf.metadata.MetadataBuilder] (MSC servi</p><p>ce thread 1-9) Add Service</p><p> id=SoaTestImpl</p><p><span> address=</span><a class="jive-link-external-small" href="http://localhost:8080/JimmySoaTest2" target="_blank">http://localhost:8080/JimmySoaTest2</a></p><p> implementor=com.paypal.svcs.services.SoaTestImpl</p><p> invoker=org.jboss.wsf.stack.cxf.JBossWSInvoker</p><p><span> serviceName={</span><a class="jive-link-external-small" href="http://svcs.paypal.com/services" target="_blank">http://svcs.paypal.com/services</a><span>}SoaTest</span></p><p><span> portName={</span><a class="jive-link-external-small" href="http://svcs.paypal.com/services" target="_blank">http://svcs.paypal.com/services</a><span>}SoaTestSOAP11port_http</span></p><p> wsdlLocation=null</p><p> mtomEnabled=false</p><p>17:19:30,976 INFO&#160; [org.apache.cxf.service.factory.ReflectionServiceFactoryBean]</p><p><span> (MSC service thread 1-9) Creating Service {</span><a class="jive-link-external-small" href="http://svcs.paypal.com/services" target="_blank">http://svcs.paypal.com/services</a><span>}SoaT</span></p><p>est from WSDL: WEB-INF/wsdl/JimmySoaTest.wsdl</p><p>17:19:31,041 INFO&#160; [org.jboss.wsf.stack.cxf.transport.AddressRewritingEndpointIn</p><p>fo] (MSC service thread 1-9) Setting new service endpoint address in wsdl: http:</p><p>//10.249.152.143:8080/SoaTest</p><p>17:19:31,085 INFO&#160; [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-9)</p><p><span> Setting the server's publish address to be </span><a class="jive-link-external-small" href="http://localhost:8080/JimmySoaTest2" target="_blank">http://localhost:8080/JimmySoaTest2</a></p><p>17:19:31,102 INFO&#160; [org.jboss.wsf.stack.cxf.deployment.WSDLFilePublisher] (MSC s</p><p>ervice thread 1-9) WSDL published to: file:/C:/jboss-as-dist-7.1.3.Final/jboss-a</p><p>s-7.1.3.Final/standalone/data/wsdl/JimmySoaTest2.war/JimmySoaTest.wsdl</p><p>17:19:31,105 INFO&#160; [org.jboss.as.osgi] (MSC service thread 1-14) JBAS011907: Reg</p><p>ister module: Module "deployment.JimmySoaTest2.war:main" from Service Module Loa</p><p>der</p><p>17:19:31,106 INFO&#160; [org.jboss.as.webservices] (MSC service thread 1-13) JBAS0155</p><p>39: Starting service jboss.ws.endpoint."JimmySoaTest2.war".SoaTestImpl</p><p>17:19:31,108 INFO&#160; [org.jboss.ws.common.management.DefaultEndpointRegistry] (MSC</p><p> service thread 1-13) register: jboss.ws:context=JimmySoaTest2,endpoint=SoaTestI</p><p>mpl</p><p>17:19:31,119 INFO&#160; [org.jboss.web] (MSC service thread 1-12) JBAS018210: Registe</p><p>ring web context: /JimmySoaTest2</p><p>17:19:31,146 INFO&#160; [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018</p><p>559: Deployed "JimmySoaTest2.war"</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>From IE 8, I enter this URL </span><a class="jive-link-external-small" href="http://localhost:8080/JimmySoaTest2/SoaTestTest?wsdl" target="_blank">http://localhost:8080/JimmySoaTest2/SoaTestTest?wsdl</a><span> and see the WSDL:</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="e"> [snip]</p><div class="c" style="text-indent: -2em; margin-left: 1em;"><a class="jive-link-external-small" href="#">-</a> <span class="m">&lt;</span><span class="t">wsdl:service</span><span class="t"> name</span><span class="m">="</span><strong>SoaTest</strong><span class="m">"</span><span class="m">&gt;</span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><div class="e"><div class="c" style="text-indent: -2em; margin-left: 1em;"><a class="jive-link-external-small" href="#">-</a> <span class="m">&lt;</span><span class="t">wsdl:port</span><span class="t"> binding</span><span class="m">="</span><strong>ns0:SoaTestSOAP11Binding</strong><span class="m">"</span><span class="t"> name</span><span class="m">="</span><strong>SoaTestSOAP11port_http</strong><span class="m">"</span><span class="m">&gt;</span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><div class="e"><div style="text-indent: -2em; margin-left: 1em;"><span class="b"> </span> <span class="m">&lt;</span><span class="t">soap:address</span> <span class="t">location</span><span class="m">="</span><strong><a class="jive-link-external-small" href="http://10.250.153.144:8080/SoaTest" target="_blank">http://10.250.153.144:8080/SoaTest</a></strong><span class="m">"</span><span class="m"> /&gt;</span> <p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></div><p><span class="b"> </span> <span class="m">&lt;/</span><span class="t">wsdl:port</span><span class="m">&gt;</span></p></div></div><p><span class="b"> </span> <span class="m">&lt;/</span><span class="t">wsdl:service</span><span class="m">&gt;</span></p></div></div><p><span class="b"> </span> <span class="m">&lt;/</span><span class="t">wsdl:definitions</span><span class="m">&gt;</span></p><p><span class="m"><br/></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>However when I enter </span><a class="jive-link-external-small" href="http://10.250.153.144:8080/JimmySoaTest2/SoaTestTest?wsdl" target="_blank">http://10.250.153.144:8080/JimmySoaTest2/SoaTestTest?wsdl</a></p><p>I don't see the WSDL.&#160; Instead I get this error:</p><table border="0" cellpadding="0" cellspacing="0" style="width: 730px;"><tbody><tr><td align="left" id="mainTitleAlign" style="border:0px solid black;" width="*"><h1 id="mainTitle">Internet Explorer cannot display the webpage</h1></td></tr><tr><td align="right" class="errorCodeAndDivider" id="errorCodeAlign" style="border:0px solid black;"><br/></td></tr></tbody></table><p>This problem can be caused by a variety of issues, including: </p><ul><li>Internet connectivity has been lost.</li><li>The website is temporarily unavailable.</li><li>The Domain Name Server (DNS) is not reachable.</li><li>The Domain Name Server (DNS) does not have a listing for the website's domain.</li><li>There might be a typing error in the address.</li><li>If this is an HTTPS (secure) address, click Tools, click Internet Options, click Advanced, and check to be sure the SSL and TLS protocols are enabled under the security section.</li><li></li></ul><p>Environment: JBoss AS 7.1.3 on Windows Enterprise 7.&#160; </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Note in standalone.xml, I set &lt;modify-wsdl-address&gt; to false:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;subsystem xmlns="urn:jboss:domain:webservices:1.1"&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;modify-wsdl-address&gt;false&lt;/modify-wsdl-address&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsdl-host&gt;${jboss.bind.address:127.0.0.1}&lt;/wsdl-host&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;endpoint-config name="Standard-Endpoint-Config"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;endpoint-config name="Recording-Endpoint-Config"&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;pre-handler-chain name="recording-handlers" protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM"&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;handler name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/pre-handler-chain&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/endpoint-config&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/subsystem&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Any ideas why I can't see my published WSDL when I enter either my IP address or DNS name?</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/775671#775671">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Web Services at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


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

</div>

</body>
</html>