Thks Isuru.

With the Axis2 JSON jar [1] and the Jettison jar[2]
in repository/components/dropins, and repository/conf/axis2.xml with :

<messageFormatter contentType="application/json"
class="org.apache.axis2.json.JSONMessageFormatter"/>
<messageFormatter contentType="application/json/badgerfish"
class="org.apache.axis2.json.JSONBadgerfishMessageFormatter"/>
<messageFormatter contentType="text/javascript"
class="org.apache.axis2.json.JSONMessageFormatter"/>

and

<messageBuilder contentType="application/json"
class="org.apache.axis2.json.JSONOMBuilder"/>
<messageBuilder contentType="application/json/badgerfish"
class="org.apache.axis2.json.JSONBadgerfishOMBuilder"/>
<messageBuilder contentType="text/javascript"
class="org.apache.axis2.json.JSONOMBuilder"/>

Stoped the server and started again, No errors found :)

But i'm i requesting it wrong ? The webservice call i'm making simple adds
response=aplication/json

http://entitas-d.corp.turismodeportugal.pt:9763/services/Entity.EntityHttpSoap12Endpoint/getCAE?id=A&agent=f28c4324-0dc3-531b-98f1-d3c00cc6a36c&response=text/json

But the result still came in xml ( in Firefox and Chrome ). Any help ?




[1]
http://dist.wso2.org/maven2/org/apache/axis2/wso2/axis2-json/1.6.0-wso2v1/
[2]
http://dist.wso2.org/maven2/org/codehaus/jettison/wso2/jettison/1.0.1.wso2v1/

2010/10/14 Isuru Suriarachchi <is...@wso2.com>

>
>
> On Wed, Oct 13, 2010 at 10:36 PM, Hiranya Jayathilaka <hira...@wso2.com>wrote:
>
>> Hi Victor,
>>
>> The jettison OSGi bundle can be downloaded from [1]. You can deploy it
>> into repository/components/dropins directory. Axis2 JSON jar can be
>> downloaded from [2]. This however is not an OSGi bundle. So you should copy
>> it into repository/components/lib.
>>
>
> It's even better if you can get [3] instead of above [2]. Because it is
> already an OSGi bundle and you can directly copy it into
> repository/components/dropins.
>
> Thanks,
> ~Isuru
>
> [3]
> http://dist.wso2.org/maven2/org/apache/axis2/wso2/axis2-json/1.6.0-wso2v1/
>
>
>>
>> Thanks,
>> Hiranya
>>
>> [1] -
>> http://dist.wso2.org/maven2/org/codehaus/jettison/wso2/jettison/1.0.1.wso2v1/
>> [2] - http://dist.wso2.org/maven2/org/apache/axis2/axis2-json/
>>
>> On Wed, Oct 13, 2010 at 9:21 PM, Vitor Rodrigues <
>> vitor.rodrig...@pessoaseprocessos.com> wrote:
>>
>>> Hi all,
>>>
>>> I use WSO2 WSAS for my Web services for a long time but today my boss
>>> wants the response of the webservices to be in JSON. I look up in google and
>>> your post:
>>> http://wso2.org/library/knowledge-base/add-json-support-wso2-wsas come
>>> up.
>>> But where are the OSGI bundles of the jars? I log in and didn't saw them
>>> attached to the post. Can someone provide them to me please?
>>>
>>>
>>>
>>> _______________________________________________
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> Hiranya Jayathilaka
>> Senior Software Engineer;
>> WSO2 Inc.;  http://wso2.org
>> E-mail: hira...@wso2.com;  Mobile: +94 77 633 3491
>> Blog: http://techfeast-hiranya.blogspot.com
>>
>> _______________________________________________
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> Isuru Suriarachchi
> Technical Lead & Product Manager, WSO2 Web Services Application Server
>
> WSO2 Inc. http://wso2.com
> email : is...@wso2.com
> blog : http://isurues.wordpress.com/
>
> lean . enterprise . middleware
>
>
> _______________________________________________
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev


 <https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev>
<https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev>
_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to