axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcin Markiewicz (JIRA)" <>
Subject [jira] Commented: (AXIS2-4905) CommonsHTTPTransportSender does not allow to use other Formatter than OMOutputFormat.
Date Mon, 06 Dec 2010 07:34:12 GMT


Marcin Markiewicz commented on AXIS2-4905:

Yes, it should work this way, but it doesn't. I tried to configure the Formatter in the axis2
configuration in 
        <messageFormatter contentType="application/x-www-form-urlencoded"
        <messageFormatter contentType="multipart/form-data"
        <messageFormatter contentType="application/xml"
        <messageFormatter contentType="text/xml"
        <messageFormatter contentType="application/soap+xml"
But no matter what I added there it didn't work. Only this on OMFormatter has been used.
I changed the last two Formatters to my own one - I do SOAP messages so I thought it is the
right way to make Axis2 use my formatter...

But if there is an other way, configuration would be the best one, I would be glad to learn

I solved my problem by copying the CommonsHTTPTransportSender, changing the one line containing
"OMOutputFormat format = new OMOutputFormat();" to use my formatter and then... it works.
But it isn't nice...

> CommonsHTTPTransportSender does not allow to use other Formatter than OMOutputFormat.
> -------------------------------------------------------------------------------------
>                 Key: AXIS2-4905
>                 URL:
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: all - found on a Windows Vista machine with Java 1.6
>            Reporter: Marcin Markiewicz
> I have a little compatibility problem with our older software using MIME-messages. A
could solve this problem if I could use my own Output formatter, based on the OMOutputFormat.
(I use it this way to generate messages send by my own MQ-Transport). It would be very usefull
for me if i could tell the CommonsHTTPTransport which OMOutputFormat implementation it should
use. Something like 
> OMOutputFormat = getOutputFormatFromContext(msgContext) 
> instead of
> OMOutputFormat format = new OMOutputFormat();
> (it is the first line in the "invoke" method)
> And only if the context does not contain the Formatter value the "default" one - OMOutputFormat
- should be used.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message