title: WebLogic server rejecting certain web service requests - seemingly based on SOAP headers
body: <p>I am developing a simple web service client. I am having issues receiving responses from the server. Since the folks who support the remote server are not cooperative, I would like to learn as much about the problem as possible and hopefully point them in the correct direction.</p>
  
  <p>Given the following details, is it possible to get an idea of what's going on? Are there specific SOAP protocol settings that should be looked at?</p>
  
  <p>I used TcpTrace to capture outbound and inbound traffic. </p>
  
  <p>When I send a request from soapUI, this is the generated SOAP header. This message <strong>succeeds</strong> - I get a valid response.</p>
  
  <pre><code>POST /l2/k2/AddressLookup HTTP/1.1 
  Accept-Encoding: gzip,deflate
  Content-Type: text/xml;charset=UTF-8
  SOAPAction: "http://xmlns.test2.com/k2/addressLookup"
  User-Agent: Jakarta Commons-HttpClient/3.1
  Host: localhost:7003
  Content-Length: 434
  </code></pre>
  
  <p>When I send a request from TIBCO BusinessWorks, this is the generated SOAP header. This message <strong>fails</strong> - I get an <em>HTTP 500 internal server error</em>.</p>
  
  <pre><code>POST /l2/k2/AddressLookup HTTP/1.1
  content-type: text/xml; charset="utf-8"
  SoapAction: "http://xmlns.test2.com/k2/addressLookup"
  Connection: close
  User-Agent: Jakarta Commons-HttpClient/3.0.1
  Host: localhost:7003
  Content-Length: 368
  </code></pre>
  
  <p>When I send a request from a very basic, no-frills JAX-WS client, this is the generated SOAP header. This message also <strong>fails</strong> - I get an <em>HTTP 500 internal server error</em>.</p>
  
  <pre><code>POST /l2/k2/AddressLookup HTTP/1.1
  Content-type: text/xml;charset="utf-8"
  Soapaction: "http://xmlns.test2.com/k2/addressLookup"
  Accept: text/xml, multipart/related, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
  User-Agent: JAX-WS RI 2.1.6 in JDK 6
  Host: localhost:7003
  Connection: keep-alive
  Content-Length: 389
  </code></pre>
  
  <p>I should note that the Soapaction property was not initially present in the JAX-WS client's SOAP header. Because I thought that might be related to the issue, I added the property via the following code:</p>
  
  <pre><code>        dispatch.getRequestContext().put(
              BindingProvider.SOAPACTION_USE_PROPERTY, true);
  
          dispatch.getRequestContext().put(
              BindingProvider.SOAPACTION_URI_PROPERTY,
              "http://xmlns.test2.com/k2/addressLookup");
  </code></pre>
  
  <p>And finally, here is the error response I receive from the server for both the JAX-WS and TIBCO BusinessWorks requests:</p>
  
  <pre><code>HTTP/1.1 500 Internal Server Error
  Connection: close
  Date: Thu, 19 Jul 2012 14:25:07 GMT
  Content-Length: 883
  Content-Type: text/html
  Content-Encoding: identity
  X-Compressed-By: com.planetj.servlet.filter.compression.CompressingFilter/1.7
  SOAPAction: ""
  X-Powered-By: Servlet/2.5 JSP/2.1
  
  &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Draft//EN"&gt;
  &lt;HTML&gt;
  &lt;HEAD&gt;
  &lt;TITLE&gt;Error 500--Internal Server Error&lt;/TITLE&gt;
  &lt;META NAME="GENERATOR" CONTENT="WebLogic Server"&gt;
  &lt;/HEAD&gt;
  &lt;BODY bgcolor="white"&gt;
  &lt;FONT FACE=Helvetica&gt;&lt;BR CLEAR=all&gt;
  &lt;TABLE border=0 cellspacing=5&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR CLEAR=all&gt;
  &lt;FONT FACE="Helvetica" COLOR="black" SIZE="3"&gt;&lt;H2&gt;Error 500--Internal Server Error&lt;/H2&gt;
  &lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;
  &lt;/TABLE&gt;
  &lt;TABLE border=0 width=100% cellpadding=10&gt;&lt;TR&gt;&lt;TD VALIGN=top WIDTH=100% BGCOLOR=white&gt;&lt;FONT FACE="Courier New"&gt;&lt;FONT FACE="Helvetica" SIZE="3"&gt;&lt;H3&gt;From RFC 2068 &lt;i&gt;Hypertext Transfer Protocol -- HTTP/1.1&lt;/i&gt;:&lt;/H3&gt;
  &lt;/FONT&gt;&lt;FONT FACE="Helvetica" SIZE="3"&gt;&lt;H4&gt;10.5.1 500 Internal Server Error&lt;/H4&gt;
  &lt;/FONT&gt;&lt;P&gt;&lt;FONT FACE="Courier New"&gt;The server encountered an unexpected condition which prevented it from fulfilling the request.&lt;/FONT&gt;&lt;/P&gt;
  &lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;
  &lt;/TABLE&gt;
  
  &lt;/BODY&gt;
  &lt;/HTML&gt;
  </code></pre>
  
  <p>Absolutely any help or insight is greatly appreciated! Thanks!</p>