Hi Eric,

Please find the configuration attached to be used with the above give build :-) I forgot to attach the config.

Ruwan
Ruwan Linton wrote:
Hi Eric,

Here is the build [1] which fixes all the issue you have currently reported. This build is capable of forwarding the 500 Internal Server Error as it is (i.e. as a text/html message) back to the client with the attached configuration, also I have fixed the issue with the Hessian Fault (not having the startReply and completeReply sections).

Further, if you want to change the 500 Internal Server Error comes as text/html (or any html error) to synapse from Hessian service to a standard Hessian Fault for the client, that also can be done with a change in the configuration, to remove the contentType and messageType properties and adding a property named HTTP_SC with value 200 under the axis2 scope.

You should be able to pass your special cases with this. Please let me know any issues of this build if there are any....

[1] - http://ww2.wso2.org/~ruwan/jamba/v4/wso2-esb-java-SNAPSHOT-bin.zip

Thanks,
Ruwan

_______________________________________________
Esb-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev


<!--
  ~  Licensed to the Apache Software Foundation (ASF) under one
  ~  or more contributor license agreements.  See the NOTICE file
  ~  distributed with this work for additional information
  ~  regarding copyright ownership.  The ASF licenses this file
  ~  to you under the Apache License, Version 2.0 (the
  ~  "License"); you may not use this file except in compliance
  ~  with the License.  You may obtain a copy of the License at
  ~
  ~   http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~  Unless required by applicable law or agreed to in writing,
  ~  software distributed under the License is distributed on an
  ~   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  ~  KIND, either express or implied.  See the License for the
  ~  specific language governing permissions and limitations
  ~  under the License.
  -->

<!-- Simple content based routing (CBR) of messages -->
<definitions xmlns="http://ws.apache.org/ns/synapse";>
    <!-- filtering of messages with XPath and regex matches -->
    <filter source="get-property('To')" regex=".*/Hessian.*">
        <send>
            <endpoint>
                <address uri="http://localhost:8082/HessianSample/hessian/hello/"/>
            </endpoint>
        </send>
        <drop/>
    </filter>
    <!--<property name="HTTP_SC" value="200" scope="axis2"/>-->
    <filter xpath="//html">
    	<property name="messageType" value="text/html" scope="axis2"/>
    	<property name="ContentType" value="text/html" scope="axis2"/>
    </filter>
    <send/>
</definitions> 
_______________________________________________
Esb-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev

Reply via email to