On Tue, Nov 15, 2011 at 09:10, Andreas Brunner <brunne...@gmx.at> wrote:
> Thank you very much for the example, that was exactly what I was looking for. 
> I tried it and it works much better than invoking toString() on the 
> SOAPEnvelope directly. The performance is still not very good (about 10 
> seconds for a SOAP Message with a 120MB attachment), but I only need this for 
> debugging reasons, so I can live with the solution.
>
> But why is the invocation still slow, even the attached file will not be 
> serialized? I tried both examples and there were no performance differences.

If it takes 10 seconds, then you should be able to connect a debugger
and suspend the running thread to determine where it is spending that
time. Any chance you could do that and post the stack trace?

> Greetings,
> Andreas
>
>
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Andreas Veithen [mailto:andreas.veit...@gmail.com]
>> Gesendet: Montag, 14. November 2011 22:57
>> An: java-user@axis.apache.org
>> Betreff: Re: Efficient SOAP Logging
>>
>> That question actually inspired me to add another sample to Axiom:
>>
>> https://builds.apache.org/job/ws-axiom-trunk/site/quickstart-samples.html
>>
>> The code should work with recent versions (starting with 1.2.9 or
>> 1.2.10) of Axiom.
>>
>> Andreas
>>
>> On Mon, Nov 14, 2011 at 10:43, Andreas Brunner <brunne...@gmx.at> wrote:
>> > Hi all,
>> >
>> > I am using the SOAP Logging Module in my Application shown at
>> http://axis.apache.org/axis2/java/core/docs/modules.html
>> >
>> > The module works fine except if the SOAP message contains large
>> attachments. In this case the invocation of 
>> "msgContext.getEnvelope().toString()"
>> is very slow and memory usage increases, because the attachment is
>> serialized to the resulting string in Base64 Encoding.
>> >
>> > So my questions is, is there is a more efficient way to log SOAP
>> messages containing attachments? It would also be no problem if the 
>> attachment
>> does not appear in the logs.
>> >
>> > Nice greetings,
>> > Andreas Brunner
>> > --
>> > NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!
>> > Jetzt informieren: http://www.gmx.net/de/go/freephone
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
>> > For additional commands, e-mail: java-user-h...@axis.apache.org
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
>> For additional commands, e-mail: java-user-h...@axis.apache.org
>>
>
> --
> NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!
> Jetzt informieren: http://www.gmx.net/de/go/freephone
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
> For additional commands, e-mail: java-user-h...@axis.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org

Reply via email to