synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Upul Godage (JIRA)" <>
Subject [jira] Commented: (SYNAPSE-144) Can only add WS-Security to a message if it came in as SOAP, not POX - a workaround is a wrapper filter that adds SOAPAction
Date Thu, 18 Oct 2007 04:23:50 GMT


Upul Godage commented on SYNAPSE-144:

sample usage:
<definitions xmlns="">
	    <switch source="get-property('MESSAGE_FORMAT')">
		<case regex="pox">
			<header name="Action" expression="'urn:getQuote'" />
					    <address format="soap11" uri="http://localhost:9001/soap/SimpleStockQuoteService"/>
		<case regex="soap11">
					<address uri="http://localhost:9001/soap/SimpleStockQuoteService"/>
		<case regex="soap12">
			<drop />
			<drop />

> Can only add WS-Security to a message if it came in as SOAP, not POX - a workaround is
a wrapper filter that adds SOAPAction
> ----------------------------------------------------------------------------------------------------------------------------
>                 Key: SYNAPSE-144
>                 URL:
>             Project: Synapse
>          Issue Type: Bug
>    Affects Versions: 1.0
>         Environment: JDK6 on RHEL3
>            Reporter: Paul Anderson
>            Priority: Minor
>         Attachments: SYNAPSE-144-get_property_message_format.patch
> I define a filter that sends incoming messages out to an endpoint with WS-Security headers
> If I send SOAP into it, it passes messages on OK.
> But if I send POX input, it logs the stacktrace below.
> So as a workaround, I make my client code post POX to a first filter, which adds:
> <property name="SOAPAction" action="set" expression="'doIt'" scope="transport"/>
> and sends the message to the main filter.
> It would be simpler and more performant to define only one filter.
> Is there a better workaround, or better, can this be fixed?
>   6907 [HttpServerWorker-1] ERROR Axis2Sender ( - Unexpected error
during Sending message onwards
> java.util.MissingResourceException: Can't find resource for bundle org.apache.axis2.i18n.ProjectResourceBundle,
key outboundNoAction
>         at java.util.ResourceBundle.getObject(
>         at java.util.ResourceBundle.getString(
>         at org.apache.axis2.i18n.MessageBundle.getMessage(
>         at org.apache.axis2.i18n.MessageBundle.getMessage(
>         at org.apache.axis2.addressing.i18n.AddressingMessages.getMessage(
>         at org.apache.axis2.handlers.addressing.AddressingOutHandler$WSAHeaderWriter.processWSAAction(
>         at org.apache.axis2.handlers.addressing.AddressingOutHandler$WSAHeaderWriter.writeHeaders(
>         at org.apache.axis2.handlers.addressing.AddressingOutHandler.invoke(
>         at org.apache.axis2.engine.Phase.invoke(
>         at org.apache.axis2.engine.AxisEngine.invoke(
>         at org.apache.axis2.engine.AxisEngine.send(
>         at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.send(
>         at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.execute(
>         at org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(
>         at org.apache.synapse.core.axis2.Axis2Sender.sendOn(
>         at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(
>         at org.apache.synapse.endpoints.AddressEndpoint.send(
>         at org.apache.synapse.mediators.builtin.SendMediator.mediate(
>         at org.apache.synapse.mediators.AbstractListMediator.mediate(
>         at org.apache.synapse.mediators.filters.FilterMediator.mediate(
>         at org.apache.synapse.mediators.AbstractListMediator.mediate(
>         at org.apache.synapse.mediators.base.SequenceMediator.mediate(
>         at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(
>         at org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(
>         at org.apache.axis2.engine.AxisEngine.receive(
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(
>         at org.apache.axis2.transport.nhttp.ServerWorker.processPost(
>         at
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
>         at java.util.concurrent.ThreadPoolExecutor$
>         at

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message