?? Then why do we bother to list them .. is there any way to change the
defaults? (Not a likely case I agree but still.)
I'm unclear why we wouldn't do these like xports .. you get what you list
in axis2.xml or add dynamically via the AxisConfig object.
Sanjiva.
Thilina Gunarathne wrote:
Yes... The default builders & formatters will be available at the run
time even if not given in the axis2.xml
~Thilina
On 3/2/07, Saminda Abeyruwan <[EMAIL PROTECTED]> wrote:
Hi Keith,
If the given default message formatters or message builders not given
in the
axis2.xml, would it still be available at runtime.
Thank you
Saminda
On 3/1/07, keith chapman <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have implemented messageformatters and messageBuilders for REST. The
following message formatters have been set in the default axis2.xml.
>
> <messageFormatter
contentType="application/x-www-form-urlencoded"
>
class="org.apache.axis2.transport.http.XFormURLEncodedFormatter"/>
> <messageFormatter contentType="multipart/form-data"
>
class="org.apache.axis2.transport.http.MultipartFormDataFormatter
"/>
> <messageFormatter contentType="application/xml"
>
class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>
>
> I have added builders for the respective content Types as well. I
have not
added the MultipartFormDataBuilder to the default axis2.xml because all
modules using the default axis2.xml will have to add the dependancy of
servlet-api. But I have added it to the default axis2.xml of the war.
>
> <messageBuilder contentType="application/xml"
>
class="org.apache.axis2.builder.ApplicationXMLBuilder"/>
> <messageBuilder
contentType="application/x-www-form-urlencoded"
>
class="org.apache.axis2.builder.XFormURLEncodedBuilder "/>
> <messageBuilder contentType="multipart/form-data">
>
<class="org.apache.axis2.builder.MultipartFormDataBuilder"/>
>
> Thanks,
> Keith
> --
> Keith Chapman
> WSO2 Inc.
> Oxygen for Web Services Developers.
> http://wso2.org/
--
Saminda Abeyruwan
Software Engineer
WSO2 Inc. - www.wso2.org
--
Sanjiva Weerawarana, Ph.D.
Founder & Director; Lanka Software Foundation; http://www.opensource.lk/
Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
Director; Open Source Initiative; http://www.opensource.org/
Member; Apache Software Foundation; http://www.apache.org/
Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]