Thanks Upul, Your solution of using clone works perfectly -- thanks so much!
jeff On Wed, Nov 12, 2008 at 8:45 PM, Upul Godage <[EMAIL PROTECTED]> wrote: > Hi, > > Oops. That's because the file was just saved to a directory but a response > never comes out from that. You could try clone[1] the message in the > inSequence itself and send one to vfs endpoint so that it gets saved to > disk > and, for the other change the body and make it the reply message with > <property name="RESPONSE" value="true"/>. That is both in the inSequence > itself. > Otherwise you could log or save the message in the inSequence itself using > may be scripting. > > Upul > > > [1] http://synapse.apache.org/Synapse_Samples.html#Splitter > > On Thu, Nov 13, 2008 at 8:28 AM, Jeff Davis <[EMAIL PROTECTED]> wrote: > > > I had tried that as well, but to no avail. The response still hangs. > > jeff > > > > On Wed, Nov 12, 2008 at 7:48 PM, Upul Godage <[EMAIL PROTECTED]> > wrote: > > > > > Hi Jeff, > > > > > > Remove, <property action="set" name="OUT_ONLY" value="true"/> > > > (This line says there will be no response expected.) > > > > > > Upul > > > > > > On Thu, Nov 13, 2008 at 3:48 AM, Jeff Davis <[EMAIL PROTECTED]> > wrote: > > > > > > > Hi, > > > > > > > > I've got a pretty simple proxy definition whereby I just want to > > capture > > > > the > > > > inbound request, write it to a file, and return back with a canned > > > > response. > > > > The writing to a file works fine, but the response never comes back, > > and > > > it > > > > seems to just hang, with no reply coming back to the client. It > doesn't > > > > appear as though the outSequence is never invoked. I'm sure it's > > > something > > > > stupid on my part, but I can't see to spot what it is. Here's the > proxy > > > > definition: > > > > > > > > <proxy name="Tester" transports="http, https" trace="enable"> > > > > <target> > > > > <inSequence> > > > > <property action="set" name="OUT_ONLY" value="true"/> > > > > <log level="custom"> > > > > <property name="Text" value="In Tester > InSequence"/> > > > > </log> > > > > <log level="full"/> > > > > > > > > <property name="transport.vfs.ReplyFileName" > > > > > > > > expression="fn:concat(fn:substring-after(get-property('MessageID'), > > > > 'urn:uuid:'), '.xml')" scope="transport"/> > > > > > > > > <send> > > > > <endpoint> > > > > <address uri="vfs:file:///tmp"/> > > > > </endpoint> > > > > </send> > > > > </inSequence> > > > > > > > > <outSequence> > > > > <!-- this printout never occurs --> > > > > <log level="custom"> > > > > <property name="Text" value="In OutSequence"/> > > > > </log> > > > > > > > > <property name="RESPONSE" value="true"/> > > > > <script language="js"> > > > > <![CDATA[ > > > > mc.setPayloadXML( > > > > <status:SuccessStatus > > > > > > xmlns:status="urn:types:ws:hr:test:com">SUCCESS</status:SuccessStatus>); > > > > ]]> > > > > </script> > > > > <send/> > > > > </outSequence> > > > > > > > > </target> > > > > </proxy> > > > > > > > > Any help would be most appreciated. > > > > > > > > jeff > > > > > > > > > >
