<!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;">
Where is my soap-envelope?
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/fredand44">Fredrik Andersson</a> in <i>JBoss Web Services</i> - <a href="https://community.jboss.org/message/735146#735146">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hello Guys!</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Right now I'm in a project were we uppgrading a java-ee-app from jboss 4 to jboss 5.1.2.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>This app is making a webservice call to an other server in a IIS.</p><p>The infrastructure looks something like</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Jboss -> black_box_of_firewalls -> Microsoft IIS.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Right now the IIS is down, and that is ok for now.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>How ever my intention is that the old-app and the new-app should work in the same way.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>We generate the webservice client from the wsdl-file, with maven.</p><p>We have not changed the code in any way. To generate the webservice client we use the jboss-ws-tools.</p><p>The only changes should be that we uses jar from 5.1.2 instead of 4. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>But we get different response for the same call.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I have asked the firewall-guys to sniff the traffic after the firewall.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>From the old-app we caught this call and response:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>POST /xxx/ws_xxx.asmx HTTP/1.1</p><p>SOAPAction: "<a class="jive-link-external-small" href="http://www.xxx.xx/xxx/aQuestion%22" target="_blank">http://www.xxx.xx/ (...)</a></p><p>Content-Type: text/xml; charset=UTF-8</p><p>JBoss-Remoting-Version: 22</p><p>User-Agent: JBossRemoting - 2.2.2.SP10</p><p>Host: 1.2.3.4:1234</p><p>Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2</p><p>Content-Length: 264</p><p>Connection: Keep-Alive</p><p>X-BlueCoat-Via: 80AF669A73FA896C</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><env:Envelope>bla bla bla</env:Envelope></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>HTTP/1.1 500 Internal Server Error</p><p>Date: Fri, 11 May 2012 10:38:45 GMT</p><p>Server: Microsoft-IIS/6.0</p><p>X-Powered-By: ASP.NET</p><p>X-AspNet-Version: 2.0.50727</p><p>Cache-Control: private</p><p>Content-Type: application/soap+xml; charset=utf-8</p><p>Content-Length: 493</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><?xml version="1.0" encoding="utf-8"?> bla bla bla<soap:Envelope></soap:Envelope></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>To me I can see the soap-envelop we sent and that the IIS responded.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>But from the new-app we caught this call and response:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>POST /xxx/ws_xxx.asmx HTTP/1.1</p><p>SOAPAction: "<a class="jive-link-external-small" href="http://www.xxx.xx/xxx/aQuestion%22" target="_blank">http://www.xxx.xx/ (...)</a></p><p>Content-Type: text/xml; charset=UTF-8</p><p>JBoss-Remoting-Version: 22</p><p>User-Agent: JBossRemoting - 2.5.4.SP3 (Flounder)</p><p>remotingContentType: remotingContentTypeNonString</p><p>Host: 1.2.3.4:1234</p><p>Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2</p><p>Transfer-Encoding: chunked</p><p>Connection: Keep-Alive</p><p>X-BlueCoat-Via: 80AF669A73FA896C</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>HTTP/1.1 400 Bad Request</p><p>Content-Type: text/html</p><p>Date: Fri, 11 May 2012 10:34:37 GMT</p><p>Connection: close</p><p>Content-Length: 20</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><h1>Bad Request</h1></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>As you can se there seems to be no soap-envelop in the request, and there are some different other header like: Transfer-Encoding: chunked, and remotingContentType.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>In the response I see nothing about IIS either. So even if my firewall-guys say that I'm wrong I do have some doubt's that the response in fact came from the IIS.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>What do you think guys, could this be because of:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>1) Bug in new-app because of wrong way of generating the webservice client? (example is most welcome)</p><p>2) Misstake in sniffing, the sniffer missed the envelop in some strange way?</p><p>3) Something in firewall is removing the sending saop-envelope?</p><p>4) The response is from something else, perhaps in our black box of fire walls.</p><p>...or something else?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>All guesses and suggestions are most welcome.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Best regards</p><p>Fredrik</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/735146#735146">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>