On 16 Aug 2007, at 04:43, Ruwan Linton wrote:

Or else you can do the following to get it dispatched to the proxy, rather
than injecting the message:

(new SendMediator()).mediate(newCtx);



- I now have hit another problem.

The above works until I enable security.

So I use the SendMediator to send the new message through a locally defined proxy (at http://localhost:8080/soap/processMessage)

With proxy inSequence defined as:

        <inSequence>
                <log level="full"/>
                <send>
                        <endpoint>
                                <address 
uri="http://localhost:9100/soap/processMessage"/>
                        </endpoint>
                </send>
        </inSequence>

The exchange works and, using tcpmon, I see a HTTP 202 from the other side.

However, when I enable security as follows:

        <inSequence>
                <log level="full"/>
                <send>
                        <endpoint>
                                <address 
uri="http://localhost:9100/soap/processMessage";>
                                        <enableSec policy="sec_policy"/>
                                </address>
                        </endpoint>
                </send>
        </inSequence>

I still see the HTTP 202 response in tcpmon but now I get the appended exception, which appears to happen before the response gets to synapse.

I have tried the above programmatically with an EndpointDefinition and using the SendMediator to send directly to http://localhost:9100/ soap/processMessage from within my mediator but I get the same behaviour. It works without security enabled but not when security is enabled. Also, it is not a problem with WS-Security signature processing etc, that is working fine.

Any ideas what I am doing wrong?


Also

Nick

--
Exception in thread "I/O reactor worker thread 2" org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted. at org.apache.axiom.om.impl.dom.ParentNode.insertBefore (ParentNode.java:195) at org.apache.axiom.om.impl.dom.NodeImpl.appendChild (NodeImpl.java:235) at org.apache.axiom.soap.impl.dom.SOAPEnvelopeImpl.<init> (SOAPEnvelopeImpl.java:65) at org.apache.axiom.soap.impl.dom.soap12.SOAP12Factory.getDefaultEnvelope (SOAP12Factory.java:222) at org.apache.axis2.transport.nhttp.ClientHandler.responseReceived (ClientHandler.java:313) at org.apache.axis2.transport.nhttp.LoggingNHttpClientHandler.responseRecei ved(LoggingNHttpClientHandler.java:96) at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput (DefaultNHttpClientConnection.java:94) at org.apache.axis2.transport.nhttp.PlainClientIOEventDispatch.inputReady (PlainClientIOEventDispatch.java:69) at org.apache.http.impl.nio.reactor.BaseIOReactor.readable (BaseIOReactor.java:68) at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent (AbstractIOReactor.java:160) at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents (AbstractIOReactor.java:145) at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute (AbstractIOReactor.java:127) at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor $Worker.run(AbstractMultiworkerIOReactor.java:153)
        at java.lang.Thread.run(Thread.java:613)




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to