Hello,
I am having another issue with the way servicemix
handles all the soap fault message return by my web
services,
With the current version of servicemix, my soap
message is replace by the following HTTP error message
:
------
<html>
<head>
<title>Error 500 Unknown Error</title>
</head>
<body>
<h2>HTTP ERROR: 500</h2>
<pre>Unknown Error</pre>
<p>RequestURI=/Service/</p>
<p>
<i>
<small>
<a
href="http://jetty.mortbay.org">Powered by
Jetty://</a>
</small>
</i>
</p>
</body>
</html>
----
because of this message, my generated stubs cannot
properly handle the soap message.
I was wondering if it's not possible to have an
attribut that specifies on a provider endpoint that we
do not want servicemix to error message from the web
service and just return them as is to the client.
PS : when I put the block of code that handls the
error message in comment it works fine :
Here is the black of code from ProviderProcessor that
is commented out :
------------
if (response != HttpStatus.SC_OK) {
if (exchange instanceof InOnly ==
false) {
Fault fault =
exchange.createFault();
SoapReader reader =
soapMarshaler.createReader();
Header contentType =
method.getResponseHeader("Content-Type");
soapMessage =
reader.read(method.getResponseBodyAsStream(),
contentType != null ? contentType.getValue() : null);
fault.setProperty(JbiConstants.PROTOCOL_HEADERS,
getHeaders(method));
jbiMarshaler.toNMS(fault,
soapMessage);
exchange.setFault(fault);
exchange.setStatus(ExchangeStatus.ERROR);
channel.send(exchange);
return;
} else {
throw new Exception("Invalid
status response: " + response);
}
}
------------
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com