i logged some rather large HL7 segments with Log4j RollingFileAppender http://logging.apache.org/log4j/1.2/apidocs/index.html
download at http://logging.apache.org/log4j/1.2/ hth Martin Gainty ______________________________________________ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: [email protected] To: [email protected] Subject: Re: Logging service call response Date: Wed, 28 Apr 2010 06:50:12 -0500 Try using soapui or tcpmon to view the envelopes. On Apr 28, 2010, at 6:24, "Chris Hopkins" <[email protected]> wrote: Hi – I’m using Axis2 v1.5.1 to compile a WSDL and then make calls to the service methods defined in the WSDL from my Java (v1.5) application. I’m trying to figure out how to log the response that the call gets prior to it attempting to process it. I have turned on debug logging via a log4j.properties file but perhaps I’m not logging the right things. I’ve added this to my log4.properties log4j.logger.org.apache=debug log4j.logger.org.apache.axis2=debug and this is the error org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '"' (code 34) in DOCTYPE declaration; expected a space between public and system identifiers at [row,col {unknown-source}]: [1,62] I just need to be able to see what the actual response from the web service call contains. Thanks, Chris THIS MESSAGE IS INTENDED FOR THE USE OF THE PERSON TO WHOM IT IS ADDRESSED. IT MAY CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM DISCLOSURE UNDER APPLICABLE LAW. If you are not the intended recipient, your use of this message for any purpose is strictly prohibited. If you have received this communication in error, please delete the message and notify the sender so that we may correct our records. _________________________________________________________________ The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4
