You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-user@ws.apache.org by david2 <Da...@l-3comcept.com> on 2008/01/10 23:35:10 UTC
Logging SOAP messages to a separate log file
Can Muse logging be set up to generate a log file containing only the [SERVER
TRACE] SOAP messages sent to and from a resource?
i.e., log input & output SOAP messages, such as the following:
Jan 10, 2008 3:56:22 PM org.apache.muse.util.LoggingUtils logMessage
FINE: [SERVER TRACE] SOAP envelope contents (outgoing):
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header>
<wsa:To
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/08/addressing/role/anonymous</wsa:To>
<wsa:Action
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeResponse</wsa:Action>
<wsa:MessageID
xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:18121ca2-f72f-8f1b-1eac-72560d1b64c6</wsa:MessageID>
<wsa:RelatesTo xmlns:wsa="http://www.w3.org/2005/08/addressing"
RelationshipType="wsa:Reply">uuid:c03cab20-e7fd-a271-054d-8c77c2ccba72</wsa:RelatesTo>
<wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:Address>http://myServer:8080/myWebApp/services/MyResource</wsa:Address>
</wsa:From>
</soap:Header>
<soap:Body>
<wsnt:SubscribeResponse
xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
<wsnt:SubscriptionReference>
<wsa:Address
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://myServer:8080/myWebApp/services/SubscriptionManager</wsa:Address>
<wsa:ReferenceParameters
xmlns:wsa="http://www.w3.org/2005/08/addressing">
<muse-wsa:ResourceId
xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-1</muse-wsa:ResourceId>
</wsa:ReferenceParameters>
</wsnt:SubscriptionReference>
<wsnt:CurrentTime>2008-01-10T15:56:22-06:00</wsnt:CurrentTime>
</wsnt:SubscribeResponse>
</soap:Body>
</soap:Envelope>
...but, DO NOT log general information messages, such as the following:
Jan 10, 2008 3:56:22 PM org.apache.muse.core.SimpleResource
initializeCapabilities
FINE: [ID = 'CapabilityInitializationComplete'] The resource at
'SubscriptionManager' has completed initialization of capability
'http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadata.
Jan 10, 2008 3:56:22 PM org.apache.muse.core.SimpleResource
initializeCapabilities
FINE: [ID = 'CapabilityInitializationComplete'] The resource at
'SubscriptionManager' has completed initialization of capability
'http://docs.oasis-open.org/wsrf/rpw-2/Get.
Jan 10, 2008 3:56:22 PM org.apache.muse.core.SimpleResource
initializeCapabilities
FINE: [ID = 'CapabilityInitializationComplete'] The resource at
'SubscriptionManager' has completed initialization of capability
'http://docs.oasis-open.org/wsrf/rpw-2/Set.
Jan 10, 2008 3:56:22 PM org.apache.muse.core.SimpleResource
initializeCapabilities
FINE: [ID = 'CapabilityInitializationComplete'] The resource at
'SubscriptionManager' has completed initialization of capability
'http://docs.oasis-open.org/wsn/bw-2/SubscriptionManager.
Jan 10, 2008 3:56:22 PM org.apache.muse.core.SimpleResource
initializeCapabilities
FINE: [ID = 'CapabilityInitializationComplete'] The resource at
'SubscriptionManager' has completed initialization of capability
'http://docs.oasis-open.org/wsrf/rlw-2/ImmediateResourceTermination.
Jan 10, 2008 3:56:22 PM org.apache.muse.core.SimpleResource
initializeCapabilities
FINE: [ID = 'CapabilityInitializationComplete'] The resource at
'SubscriptionManager' has completed initialization of capability
'http://docs.oasis-open.org/wsrf/rlw-2/ScheduledResourceTermination.
Jan 10, 2008 3:56:22 PM org.apache.muse.core.SimpleResource initialize
INFO: [ID = 'ResourceInitialized'] The resource at 'SubscriptionManager' has
been initialized.
--
View this message in context: http://www.nabble.com/Logging-SOAP-messages-to-a-separate-log-file-tp14745498p14745498.html
Sent from the Muse User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org