log4j.category.org.apache.synapse=DEBUG log attached. Thanks, Garth
On Fri, May 2, 2008 at 10:37 AM, Ruwan Linton <[EMAIL PROTECTED]> wrote: > Hi Garth, > > Thanks for the information, could you please send us the synapse DEBUG log > as well. You can change the log level by editing the lib/log4j.properties > file to enable DEBUG logs. > > Thanks, > Ruwan > > > > On Fri, May 2, 2008 at 10:56 PM, Garth Patil <[EMAIL PROTECTED]> wrote: > > > The request and response from the actual service is not SOAP. It is > > just XML. While I understand that synapse is very SOAP-centric, in > > this case, I want to use synapse to proxy the request for logging. > > The request to synapse looks like this: > > > > <?xml version="1.0" ?> > > <request> > > <message> > > <recipient>abc1234</recipient> > > <text>Test message.</text> > > </message> > > </request> > > > > Synapse passes the request on to the actual service without changing > > the XML. The request to the actual service looks exactly the same > > The response from the actual service looks like this: > > > > <?xml version="1.0" ?> > > <response> > > <requestId>F81D4FAE-7DEC-11D0-A765-00A0C91E6BF6</requestId> > > <status>1status> > > </response> > > > > But the response returned by synapse adds the soapenv:Body and > > soapenv:Envelope tags to the response: > > > > <?xml version="1.0" ?> > > <soapenv:Envelope> > > <soapenv:Body> > > <response> > > <requestId>F81D4FAE-7DEC-11D0-A765-00A0C91E6BF6</requestId> > > <status>1status> > > </response> > > </soapenv:Body> > > </soapenv:Envelope> > > > > Thanks to everyone for the help. > > Best, > > Garth > > > > On Thu, May 1, 2008 at 10:11 PM, Asankha C. Perera <[EMAIL PROTECTED]> > > wrote: > > > Garth > > > > > > Could you post a sample request sent to Synapse? I think the problem > > here > > > is that Synapse "detects" your original request as SOAP. Probably this > > is > > > due to the content type of the message. Is there a possibility for you > > to > > > use the TCPMon to capture an input message and post it here? > > > > > > asankha > > > > > > > > > > > > > > > Ruwan Linton wrote: > > > > > > > Hi Garth, > > > > > > > > Is it the actual web service which returns SOAP as the response for > > POX > > > > (XML/HTTP) request, or Synapse. If it is the former you need to ask > > this > > > > question from the web service container guys... > > > > > > > > If the request you send to synapse is POX then synapse will respond to > > you > > > > as POX regardless of whether it receives a SOAP or POX.. > > > > > > > > Could you please clarify the problem a little bit more? > > > > > > > > Thanks, > > > > Ruwan > > > > > > > > On Fri, May 2, 2008 at 3:04 AM, Garth Patil <[EMAIL PROTECTED]> > > wrote: > > > > > > > > > > > > > > > > > Hi All, > > > > > I'm using synapse to proxy a web service that uses XML over HTTP. My > > > > > configuration looks like this: > > > > > <definitions xmlns= "http://ws.apache.org/ns/synapse"> > > > > > <proxy name="TestProxy"> > > > > > <target> > > > > > <endpoint> > > > > > <address uri="http://someremoteservice.com/msg" format="pox" > > /> > > > > > </endpoint> > > > > > <inSequence> > > > > > <log level= "full" /> > > > > > </inSequence> > > > > > <outSequence> > > > > > <log level= "full" /> > > > > > <send /> > > > > > </outSequence> > > > > > </target> > > > > > </proxy> > > > > > </definitions> > > > > > > > > > > I post XML to localhost:8080/soap/TestProxy, and synapse passes it > > to > > > > > the specified endpoint without changing it. The remote service > > returns > > > > > XML which is wrapped in soapenv:Body and soapenv:Envelope tags. Is > > > > > there a way to specify that the response (like the request) remain > > > > > unadulterated by SOAP tags? > > > > > Thanks, > > > > > Garth > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > Ruwan Linton > http://www.wso2.org - "Oxygenating the Web Services Platform" >
2008-05-02 10:45:38,126 [XXXXX] [I/O dispatcher 5] INFO PipeImpl Using native OS Pipes for event-driven to stream IO bridging 2008-05-02 10:45:38,255 [XXXXX] [HttpServerWorker-1] DEBUG ProxyServiceMessageReceiver Proxy Service TestProxy received a new message from : 172.22.1.144 2008-05-02 10:45:38,255 [XXXXX] [HttpServerWorker-1] DEBUG ProxyServiceMessageReceiver Message To: /soap/TestProxy 2008-05-02 10:45:38,256 [XXXXX] [HttpServerWorker-1] DEBUG ProxyServiceMessageReceiver SOAPAction: null 2008-05-02 10:45:38,256 [XXXXX] [HttpServerWorker-1] DEBUG ProxyServiceMessageReceiver WSA-Action: null 2008-05-02 10:45:38,269 [XXXXX] [HttpServerWorker-1] DEBUG ProxyServiceMessageReceiver Using the anonymous in-sequence of the proxy service for mediation 2008-05-02 10:45:38,270 [XXXXX] [HttpServerWorker-1] DEBUG SequenceMediator Start : Sequence <anonymous> 2008-05-02 10:45:38,271 [XXXXX] [HttpServerWorker-1] DEBUG SequenceMediator Sequence <SequenceMediator> :: mediate() 2008-05-02 10:45:38,271 [XXXXX] [HttpServerWorker-1] DEBUG LogMediator Start : Log mediator 2008-05-02 10:45:38,321 [XXXXX] [HttpServerWorker-1] INFO LogMediator To: /soap/TestProxy, MessageID: urn:uuid:C7B871889F360BD5BA1209750338182, Direction: request, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><request> <message> <recipient>abc1234</recipient> <text>Test message.</text> </message> </request></soapenv:Body></soapenv:Envelope> 2008-05-02 10:45:38,322 [XXXXX] [HttpServerWorker-1] DEBUG LogMediator End : Log mediator 2008-05-02 10:45:38,322 [XXXXX] [HttpServerWorker-1] DEBUG SequenceMediator End : Sequence <anonymous> 2008-05-02 10:45:38,326 [XXXXX] [HttpServerWorker-1] DEBUG ProxyServiceMessageReceiver Forwarding the message to the anonymous endpoint of the proxy service 2008-05-02 10:45:38,327 [XXXXX] [HttpServerWorker-1] DEBUG AddressEndpoint Start : Address Endpoint 2008-05-02 10:45:38,327 [XXXXX] [HttpServerWorker-1] DEBUG AddressEndpoint Sending message to endpoint : AnonymousEndpoint resolves to address = http://someremoteservice.com/msg 2008-05-02 10:45:38,327 [XXXXX] [HttpServerWorker-1] DEBUG AddressEndpoint SOAPAction: null 2008-05-02 10:45:38,328 [XXXXX] [HttpServerWorker-1] DEBUG AddressEndpoint WSA-Action: null 2008-05-02 10:45:38,337 [XXXXX] [HttpServerWorker-1] DEBUG Axis2FlexibleMEPClient Sending [add = false] [sec = false] [rm = false] [ mtom = false] [ swa = false] [ format = pox] [ force soap11=false] [ force soap12=false] [ pox=true] [ get=true] [ to Address: /soap/TestProxy] 2008-05-02 10:45:38,386 [XXXXX] [HttpServerWorker-1] INFO TimeoutHandler This engine will expire all callbacks after : 86400 seconds, irrespective of the timeout action, after the specified or optional timeout 2008-05-02 10:45:38,457 [XXXXX] [HttpClientWorker-1] DEBUG SynapseCallbackReceiver Synapse received an asynchronous response message 2008-05-02 10:45:38,457 [XXXXX] [HttpClientWorker-1] DEBUG SynapseCallbackReceiver Received To: null 2008-05-02 10:45:38,457 [XXXXX] [HttpClientWorker-1] DEBUG SynapseCallbackReceiver SOAPAction: null 2008-05-02 10:45:38,458 [XXXXX] [HttpClientWorker-1] DEBUG SynapseCallbackReceiver WSA-Action: null 2008-05-02 10:45:38,459 [XXXXX] [HttpClientWorker-1] DEBUG SynapseCallbackReceiver Body : <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><response> <requestId>19a4264e-a7aa-4e19-9a4e-a9d4dc2274a8</requestId> <status>1</status> </response></soapenv:Body></soapenv:Envelope> 2008-05-02 10:45:38,463 [XXXXX] [HttpClientWorker-1] DEBUG Axis2SynapseEnvironment Injecting MessageContext 2008-05-02 10:45:38,464 [XXXXX] [HttpClientWorker-1] DEBUG Axis2SynapseEnvironment Using the anonymous out-sequence specified in the proxy service TestProxy for outgoing message mediation 2008-05-02 10:45:38,464 [XXXXX] [HttpClientWorker-1] DEBUG SequenceMediator Start : Sequence <anonymous> 2008-05-02 10:45:38,464 [XXXXX] [HttpClientWorker-1] DEBUG SequenceMediator Sequence <SequenceMediator> :: mediate() 2008-05-02 10:45:38,465 [XXXXX] [HttpClientWorker-1] DEBUG LogMediator Start : Log mediator 2008-05-02 10:45:38,465 [XXXXX] [HttpClientWorker-1] INFO LogMediator To: http://www.w3.org/2005/08/addressing/anonymous, MessageID: urn:uuid:4A64A7731713A53D7B1209750338350334001-1851865299, Direction: response, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><response> <requestId>19a4264e-a7aa-4e19-9a4e-a9d4dc2274a8</requestId> <status>1</status> </response></soapenv:Body></soapenv:Envelope> 2008-05-02 10:45:38,466 [XXXXX] [HttpClientWorker-1] DEBUG LogMediator End : Log mediator 2008-05-02 10:45:38,466 [XXXXX] [HttpClientWorker-1] DEBUG SendMediator Start : Send mediator 2008-05-02 10:45:38,469 [XXXXX] [HttpClientWorker-1] DEBUG SendMediator Sending response message using implicit message properties.. Sending To: http://www.w3.org/2005/08/addressing/anonymous SOAPAction: null 2008-05-02 10:45:38,476 [XXXXX] [HttpClientWorker-1] DEBUG SendMediator End : Send mediator 2008-05-02 10:45:38,476 [XXXXX] [HttpClientWorker-1] DEBUG SequenceMediator End : Sequence <anonymous>
