No subject


Tue Jul 6 21:55:15 PDT 2010


http://lh6.ggpht.com/_9W-bLvZvQUQ/TLggrD41F7I/AAAAAAAAAjs/sipIWzBHKUQ/s800/=
ds1.jpg

http://lh4.ggpht.com/_9W-bLvZvQUQ/TLggrXSmXAI/AAAAAAAAAjw/lrzTqzP23RQ/s800/=
ds2.jpg

http://lh4.ggpht.com/_9W-bLvZvQUQ/TLggrq7d5-I/AAAAAAAAAj0/7RuFYmdPFn4/s800/=
ds3.jpg


@Lahiru Gunathilake
Sorry if i mistake it wrong but you want me to have a xml with the "query",
on the server. Where is the flexiablity on that ? for example :

<getCAE>
<id>A</id>
<agent>f28c4324-0dc3-531b-98f1-d3c00cc6a36c</agent>
</getCAE>

The id field can have up to 9000 distinct values. Do i have to create 9000
xml's ? Sorry if i understood it wrong. :(

@Sanjiva Weerawarana
"To get it working with GET you should have to send the HTTP header "Accept=
:
application/json", just like with POST."

You mean "curl -X GET -H 'Accept: application/json' -d @post.xml
http://entitas-.
corp.turismodeportugal.pt:9763/services/Entity.EntityHttpSoap12Endpoint " ?

If the solution passes by having multiple xml's on the server with the
possible query's, that will not be my way.

Why can WSO2 WSAS have JSON response, like the Youtube GData API , Google
Social Graph API , GeoNames webservice , etc ?

For some information related here :

http://www.gwtsite.com/how-to-access-web-services-with-gwt/

http://java.dzone.com/articles/efective-json-google-web?utm_source=3Dfeedbu=
rner&utm_medium=3Dfeed&utm_campaign=3DFeed:+javalobby/frontpage+(Javalobby+=
/+Java+Zone)

http://www.javacodegeeks.com/2010/07/add-json-gwt-application.html

http://www.gwtapps.com/?p=3D42

http://eclipse.dzone.com/news/making-gwt-remote-procedure-ca



2010/10/15 Sanjiva Weerawarana <sanjiva at wso2.com>

> To get it working with GET you should have to send the HTTP header "Accep=
t:
> application/json", just like with POST.
>
> Sanjiva.
>
>
> On Thu, Oct 14, 2010 at 11:05 PM, Hiranya Jayathilaka <hiranya at wso2.com>w=
rote:
>
>> Hi Victor,
>>
>> On Thu, Oct 14, 2010 at 2:21 PM, Vitor Rodrigues <
>> vitor.rodrigues at pessoaseprocessos.com> wrote:
>>
>>> Sorry, copied it wrong :
>>>
>>> "
>>>
>>> But i'm i requesting it wrong ? The webservice call i'm making simple
>>> adds *response=3Dapplication/json*
>>>
>>>
>>> http://entitas-d.corp.turismodeportugal.pt:9763/services/Entity.EntityH=
ttpSoap12Endpoint/getCAE?id=3DA&agent=3Df28c4324-0dc3-531b-98f1-d3c00cc6a36=
c&response=3D<http://entitas-d.corp.turismodeportugal.pt:9763/services/Enti=
ty.EntityHttpSoap12Endpoint/getCAE?id=3DA&agent=3Df28c4324-0dc3-531b-98f1-d=
3c00cc6a36c&response=3Dtext/json>
>>> *application/json*
>>>
>>> "
>>>
>>
>> So it seems you are making a GET request with some query parameters. I
>> don't think WSAS can send you back JSON just because you have  *response=
=3Dapplication/json
>> *as a query parameter. But with your current settings if you POST a JSON
>> payload to WSAS with the content-type set to application/json it will se=
nd
>> you a JSON response back.
>>
>> May be Isuru has an idea how to get this working with GET.
>>
>> Thanks,
>> Hiranya
>>
>>
>>>
>>> Still doesn't work :S
>>>
>>>
>>>
>>> 2010/10/14 Vitor Rodrigues <vitor.rodrigues at pessoaseprocessos.com>
>>>
>>> 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=3D"application/json"
>>>> class=3D"org.apache.axis2.json.JSONMessageFormatter"/>
>>>> <messageFormatter contentType=3D"application/json/badgerfish"
>>>> class=3D"org.apache.axis2.json.JSONBadgerfishMessageFormatter"/>
>>>> <messageFormatter contentType=3D"text/javascript"
>>>> class=3D"org.apache.axis2.json.JSONMessageFormatter"/>
>>>>
>>>> and
>>>>
>>>> <messageBuilder contentType=3D"application/json"
>>>> class=3D"org.apache.axis2.json.JSONOMBuilder"/>
>>>> <messageBuilder contentType=3D"application/json/badgerfish"
>>>> class=3D"org.apache.axis2.json.JSONBadgerfishOMBuilder"/>
>>>> <messageBuilder contentType=3D"text/javascript"
>>>> class=3D"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=3Daplication/json
>>>>
>>>>
>>>> http://entitas-d.corp.turismodeportugal.pt:9763/services/Entity.Entity=
HttpSoap12Endpoint/getCAE?id=3DA&agent=3Df28c4324-0dc3-531b-98f1-d3c00cc6a3=
6c&response=3Dtext/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-wso=
2v1/
>>>> [2]
>>>> http://dist.wso2.org/maven2/org/codehaus/jettison/wso2/jettison/1.0.1.=
wso2v1/
>>>>
>>>> 2010/10/14 Isuru Suriarachchi <isuru at wso2.com>
>>>>
>>>>
>>>>>
>>>>> On Wed, Oct 13, 2010 at 10:36 PM, Hiranya Jayathilaka <
>>>>> hiranya at 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 shou=
ld 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-ws=
o2v1/
>>>>>
>>>>>
>>>>>>
>>>>>> 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.rodrigues at pessoaseprocessos.com> wrote:
>>>>>>
>>>>>>> Hi all,
>>>>>>>
>>>>>>> I use WSO2 WSAS for my Web services for a long time but today my bo=
ss
>>>>>>> wants the response of the webservices to be in JSON. I look up in g=
oogle and
>>>>>>> your post:
>>>>>>> http://wso2.org/library/knowledge-base/add-json-support-wso2-wsas c=
ome
>>>>>>> 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 at wso2.org
>>>>>>> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Hiranya Jayathilaka
>>>>>> Senior Software Engineer;
>>>>>> WSO2 Inc.;  http://wso2.org
>>>>>> E-mail: hiranya at wso2.com;  Mobile: +94 77 633 3491
>>>>>> Blog: http://techfeast-hiranya.blogspot.com
>>>>>>
>>>>>> _______________________________________________
>>>>>> Carbon-dev mailing list
>>>>>> Carbon-dev at wso2.org
>>>>>> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Isuru Suriarachchi
>>>>> Technical Lead & Product Manager, WSO2 Web Services Application Serve=
r
>>>>>
>>>>> WSO2 Inc. http://wso2.com
>>>>> email : isuru at wso2.com
>>>>> blog : http://isurues.wordpress.com/
>>>>>
>>>>> lean . enterprise . middleware
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Carbon-dev mailing list
>>>>> Carbon-dev at 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 at wso2.org
>>> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> Hiranya Jayathilaka
>> Senior Software Engineer;
>> WSO2 Inc.;  http://wso2.org
>> E-mail: hiranya at wso2.com;  Mobile: +94 77 633 3491
>> Blog: http://techfeast-hiranya.blogspot.com
>>
>> _______________________________________________
>> Carbon-dev mailing list
>> Carbon-dev at wso2.org
>> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> Sanjiva Weerawarana, Ph.D.
> Founder, Chairman & CEO; WSO2, Inc.;  http://wso2.com/
> email: sanjiva at wso2.com; phone: +1 408 754 7388 x51726; cell: +94 77 787
> 6880 | +1 650 265 8311
> blog: http://sanjiva.weerawarana.org/
>
> Lean . Enterprise . Middleware
>
> _______________________________________________
> Carbon-dev mailing list
> Carbon-dev at wso2.org
> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev


 <https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev>

--001485f6cc327061500492a4e52a
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div>First of thks Lahiru Gunathilake and Sanjiva Weerawarana for the answe=
rs ;)</div><div><br></div><div>I will explain the why i want a JSON respons=
e &quot;in the browser&quot;. Are you all familiar with GWT =C2=A0( <a href=
=3D"http://code.google.com/intl/pt-PT/webtoolkit/">http://code.google.com/i=
ntl/pt-PT/webtoolkit/</a> ) ?</div>
<div><br></div><div>My boss is a very very very straight forward person in =
Open Source solutions and bigger now because of the economics problem there=
 are in our country Portugal.</div><div><br></div><div>We have the function=
s for a normal application , like insert , update, delete, undelete, search=
 all provided by the Web Services that we made using Java and deployed=C2=
=A0in WSO2 WSAS ( great tool ).</div>
<div>So we have .NET and Outsystems (<a href=3D"http://www.outsystems.com/"=
>http://www.outsystems.com/</a>) applications feeding of our web services. =
But all the applications have a big cost of license and personel.</div><div=
>
So, how can we work-around this ? Build are own interface solution and grad=
uly substitute that non-free applications ( and putting some companies with=
out work...evil smile...just kidding :P ).</div><div><br></div><div>I &quot=
;discovered&quot; GWT, because of is potencial and the Java to Javascript/A=
jax. But here comes the &quot;problem&quot;. Because of the Same-Origin Pol=
icy, the work-around is=C2=A0to have the Web Services returning JSON. GWT c=
an work with XML but is very very , sorry for the bad words, a pain in the =
ass. :P</div>
<div><br></div><div>Does anyone worked with GWT and WSO2 WSAS Web services =
? Well, googling it, it seems that i&#39;m re-inventing the wheel.</div><di=
v><br></div><div>I have made Gadgets, for the Gadget Server ( based on Web =
services of WSAS or from WSO2 Data Services ) , using HighCharts and Google=
 ( <a href=3D"http://code.google.com/apis/ajax/playground/?exp=3Dlibraries#=
pie_chart">http://code.google.com/apis/ajax/playground/?exp=3Dlibraries#pie=
_chart</a>) like :</div>
<div><br></div><div>From WSAS:</div><div><br></div><div><a href=3D"http://l=
h4.ggpht.com/_9W-bLvZvQUQ/TH4auUYkAiI/AAAAAAAAAIg/HQLZjZuE7yI/s800/Impresso=
es%20Custo%20de%20um%20determinado%20utilizador%20num%20determinado%20ano.p=
ng">http://lh4.ggpht.com/_9W-bLvZvQUQ/TH4auUYkAiI/AAAAAAAAAIg/HQLZjZuE7yI/s=
800/Impressoes%20Custo%20de%20um%20determinado%20utilizador%20num%20determi=
nado%20ano.png</a></div>
<div><br></div><div><a href=3D"http://lh5.ggpht.com/_9W-bLvZvQUQ/TH0vB9Gcx6=
I/AAAAAAAAAIc/ZMWGGdz1AYs/s800/Top%20n%20localiza%C3%A7%C3%A3o%20por%20cust=
o%20em%20determinado%20m%C3%AAs%20de%20determinado%20ano.png">http://lh5.gg=
pht.com/_9W-bLvZvQUQ/TH0vB9Gcx6I/AAAAAAAAAIc/ZMWGGdz1AYs/s800/Top%20n%20loc=
aliza%C3%A7%C3%A3o%20por%20custo%20em%20determinado%20m%C3%AAs%20de%20deter=
minado%20ano.png</a></div>
<div><br></div><div><a href=3D"http://lh5.ggpht.com/_9W-bLvZvQUQ/TH5s88H3lz=
I/AAAAAAAAAI0/o3QVBTjm6Tk/s800/Impress%C3%B5es%20de%20determinada%20m%C3%A1=
quina%20%28origem%29%20mensalmente%20em%20determinado%20ano.png">http://lh5=
.ggpht.com/_9W-bLvZvQUQ/TH5s88H3lzI/AAAAAAAAAI0/o3QVBTjm6Tk/s800/Impress%C3=
%B5es%20de%20determinada%20m%C3%A1quina%20%28origem%29%20mensalmente%20em%2=
0determinado%20ano.png</a></div>
<div><br></div><div>From Data Services:</div><div><br></div><div><a href=3D=
"http://lh6.ggpht.com/_9W-bLvZvQUQ/TLggrD41F7I/AAAAAAAAAjs/sipIWzBHKUQ/s800=
/ds1.jpg">http://lh6.ggpht.com/_9W-bLvZvQUQ/TLggrD41F7I/AAAAAAAAAjs/sipIWzB=
HKUQ/s800/ds1.jpg</a></div>
<div><br></div><div><a href=3D"http://lh4.ggpht.com/_9W-bLvZvQUQ/TLggrXSmXA=
I/AAAAAAAAAjw/lrzTqzP23RQ/s800/ds2.jpg">http://lh4.ggpht.com/_9W-bLvZvQUQ/T=
LggrXSmXAI/AAAAAAAAAjw/lrzTqzP23RQ/s800/ds2.jpg</a></div><div><br></div><di=
v>
<a href=3D"http://lh4.ggpht.com/_9W-bLvZvQUQ/TLggrq7d5-I/AAAAAAAAAj0/7RuFYm=
dPFn4/s800/ds3.jpg">http://lh4.ggpht.com/_9W-bLvZvQUQ/TLggrq7d5-I/AAAAAAAAA=
j0/7RuFYmdPFn4/s800/ds3.jpg</a></div><div><br></div><div><br></div><div>@La=
hiru Gunathilake</div>
<div>Sorry if i mistake it wrong but you want me to have a xml with the &qu=
ot;query&quot;, on the server. Where is the flexiablity on that ? for examp=
le :</div><div><br></div><div>&lt;getCAE&gt;</div><div>&lt;id&gt;A&lt;/id&g=
t;</div>
<div>&lt;agent&gt;f28c4324-0dc3-531b-98f1-d3c00cc6a36c&lt;/agent&gt;</div><=
div>&lt;/getCAE&gt;</div><div><br></div><div>The id field can have up to 90=
00 distinct values. Do i have to create 9000 xml&#39;s ? Sorry if i underst=
ood it wrong. :( =C2=A0</div>
<div><br></div><div>@Sanjiva Weerawarana</div><div>&quot;To get it working =
with GET you should have to send the HTTP header &quot;Accept: application/=
json&quot;, just like with POST.&quot;</div><div><br></div><div>You mean &q=
uot;curl -X GET -H &#39;Accept: application/json&#39; -d @post.xml <a href=
=3D"http://entitas-">http://entitas-</a>.<a href=3D"http://corp.turismodepo=
rtugal.pt:9763/services/Entity.EntityHttpSoap12Endpoint">corp.turismodeport=
ugal.pt:9763/services/Entity.EntityHttpSoap12Endpoint</a> &quot; ?</div>
<div><br></div><div>If the solution passes by having multiple xml&#39;s on =
the server with the possible query&#39;s, that will not be my way.</div><di=
v><br></div><div>Why can WSO2 WSAS have JSON response, like the Youtube GDa=
ta API , Google Social Graph API , GeoNames webservice , etc ?=C2=A0</div>
<div><br></div><div>For some information related here :</div><div><br></div=
><div><a href=3D"http://www.gwtsite.com/how-to-access-web-services-with-gwt=
/">http://www.gwtsite.com/how-to-access-web-services-with-gwt/</a></div><di=
v>
<br></div><div><a href=3D"http://java.dzone.com/articles/efective-json-goog=
le-web?utm_source=3Dfeedburner&amp;utm_medium=3Dfeed&amp;utm_campaign=3DFee=
d:+javalobby/frontpage+(Javalobby+/+Java+Zone)">http://java.dzone.com/artic=
les/efective-json-google-web?utm_source=3Dfeedburner&amp;utm_medium=3Dfeed&=
amp;utm_campaign=3DFeed:+javalobby/frontpage+(Javalobby+/+Java+Zone)</a></d=
iv>
<div><br></div><div><a href=3D"http://www.javacodegeeks.com/2010/07/add-jso=
n-gwt-application.html">http://www.javacodegeeks.com/2010/07/add-json-gwt-a=
pplication.html</a></div><div><br></div><div><a href=3D"http://www.gwtapps.=
com/?p=3D42">http://www.gwtapps.com/?p=3D42</a></div>
<div><br></div><div><a href=3D"http://eclipse.dzone.com/news/making-gwt-rem=
ote-procedure-ca">http://eclipse.dzone.com/news/making-gwt-remote-procedure=
-ca</a></div><br><div id=3D"WISESTAMP_SIG_2113"></div><br><br><div class=3D=
"gmail_quote">
2010/10/15 Sanjiva Weerawarana <span dir=3D"ltr">&lt;<a href=3D"mailto:sanj=
iva at wso2.com">sanjiva at wso2.com</a>&gt;</span><br><blockquote class=3D"gmail=
_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:=
1ex;">
To get it working with GET you should have to send the HTTP header &quot;Ac=
cept: application/json&quot;, just like with POST.<div><br></div><div>Sanji=
va.<div><div></div><div class=3D"h5"><br><br><div class=3D"gmail_quote">On =
Thu, Oct 14, 2010 at 11:05 PM, Hiranya Jayathilaka <span dir=3D"ltr">&lt;<a=
 href=3D"mailto:hiranya at wso2.com" target=3D"_blank">hiranya at wso2.com</a>&gt=
;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Hi Victor,<br><br><div class=3D"gmail_quote"=
><div>On Thu, Oct 14, 2010 at 2:21 PM, Vitor Rodrigues <span dir=3D"ltr">&l=
t;<a href=3D"mailto:vitor.rodrigues at pessoaseprocessos.com" target=3D"_blank=
">vitor.rodrigues at pessoaseprocessos.com</a>&gt;</span> wrote:<br>


<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Sorry, copied it wrong :<div><br></div><div>=
&quot;</div><div><br></div><div><div>But i&#39;m i requesting it wrong ? Th=
e webservice call i&#39;m making simple adds <b>response=3Dapplication/json=
</b></div>


<div><br></div><div>
<a href=3D"http://entitas-d.corp.turismodeportugal.pt:9763/services/Entity.=
EntityHttpSoap12Endpoint/getCAE?id=3DA&amp;agent=3Df28c4324-0dc3-531b-98f1-=
d3c00cc6a36c&amp;response=3Dtext/json" target=3D"_blank">http://entitas-d.c=
orp.turismodeportugal.pt:9763/services/Entity.EntityHttpSoap12Endpoint/getC=
AE?id=3DA&amp;agent=3Df28c4324-0dc3-531b-98f1-d3c00cc6a36c&amp;response=3D<=
/a><b>application/json</b></div>



<div><br></div><div>&quot;</div></div></blockquote><div><br></div></div><di=
v>So it seems you are making a GET request with some query parameters. I do=
n&#39;t think WSAS can send you back JSON just because you have =C2=A0<b>re=
sponse=3Dapplication/json </b>as a query parameter. But with your current s=
ettings if you POST a JSON payload to WSAS with the content-type set to app=
lication/json it will send you a JSON response back.</div>


<div><br></div><div>May be Isuru has an idea how to get this working with G=
ET.</div><div><br></div><div>Thanks,</div><div>Hiranya</div><div><div></div=
><div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0 =
0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div><br></div><div>Still doesn&#39;t work :S</div><br><div></div><br>=
<br><div class=3D"gmail_quote">2010/10/14 Vitor Rodrigues <span dir=3D"ltr"=
>&lt;<a href=3D"mailto:vitor.rodrigues at pessoaseprocessos.com" target=3D"_bl=
ank">vitor.rodrigues at pessoaseprocessos.com</a>&gt;</span><div>


<div></div><div><br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Thks=C2=A0Isuru.<div><br></div><div>With the=
 Axis2 JSON jar [1] and the=C2=A0Jettison jar[2] in=C2=A0repository/compone=
nts/dropins, and=C2=A0repository/conf/axis2.xml with :</div>



<div><div><br></div><div><div>&lt;messageFormatter contentType=3D&quot;appl=
ication/json&quot; class=3D&quot;org.apache.axis2.json.JSONMessageFormatter=
&quot;/&gt;</div>
<div>&lt;messageFormatter contentType=3D&quot;application/json/badgerfish&q=
uot; class=3D&quot;org.apache.axis2.json.JSONBadgerfishMessageFormatter&quo=
t;/&gt;</div><div>&lt;messageFormatter contentType=3D&quot;text/javascript&=
quot; class=3D&quot;org.apache.axis2.json.JSONMessageFormatter&quot;/&gt;</=
div>




</div><div><br></div></div><div>and</div><div><div><br></div><div><div>&lt;=
messageBuilder contentType=3D&quot;application/json&quot; class=3D&quot;org=
.apache.axis2.json.JSONOMBuilder&quot;/&gt;</div><div>&lt;messageBuilder co=
ntentType=3D&quot;application/json/badgerfish&quot; class=3D&quot;org.apach=
e.axis2.json.JSONBadgerfishOMBuilder&quot;/&gt;</div>




<div>&lt;messageBuilder contentType=3D&quot;text/javascript&quot; class=3D&=
quot;org.apache.axis2.json.JSONOMBuilder&quot;/&gt;</div></div><div><br></d=
iv></div><div>Stoped the server and started again,=C2=A0No errors found :)<=
/div>



<div><br>
</div><div>But i&#39;m i requesting it wrong ? The webservice call i&#39;m =
making simple adds response=3Daplication/json</div><div><br></div><div><a h=
ref=3D"http://entitas-d.corp.turismodeportugal.pt:9763/services/Entity.Enti=
tyHttpSoap12Endpoint/getCAE?id=3DA&amp;agent=3Df28c4324-0dc3-531b-98f1-d3c0=
0cc6a36c&amp;response=3Dtext/json" target=3D"_blank">http://entitas-d.corp.=
turismodeportugal.pt:9763/services/Entity.EntityHttpSoap12Endpoint/getCAE?i=
d=3DA&amp;agent=3Df28c4324-0dc3-531b-98f1-d3c00cc6a36c&amp;response=3Dtext/=
json</a></div>




<div><br></div><div>But the result still came in xml ( in Firefox and Chrom=
e ). Any help ?</div><div><br></div><div><br></div><div><br></div><div><br>=
<div></div>[1]=C2=A0<a href=3D"http://dist.wso2.org/maven2/org/apache/axis2=
/wso2/axis2-json/1.6.0-wso2v1/" target=3D"_blank">http://dist.wso2.org/mave=
n2/org/apache/axis2/wso2/axis2-json/1.6.0-wso2v1/</a></div>




<div>[2]=C2=A0<a href=3D"http://dist.wso2.org/maven2/org/codehaus/jettison/=
wso2/jettison/1.0.1.wso2v1/" target=3D"_blank">http://dist.wso2.org/maven2/=
org/codehaus/jettison/wso2/jettison/1.0.1.wso2v1/</a><br><br><div class=3D"=
gmail_quote">



2010/10/14 Isuru Suriarachchi <span dir=3D"ltr">&lt;<a href=3D"mailto:isuru=
@wso2.com" target=3D"_blank">isuru at wso2.com</a>&gt;</span><div><div></div><=
div><br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><br><br><div class=3D"gmail_quote"><div>On W=
ed, Oct 13, 2010 at 10:36 PM, Hiranya Jayathilaka <span dir=3D"ltr">&lt;<a =
href=3D"mailto:hiranya at wso2.com" target=3D"_blank">hiranya at wso2.com</a>&gt;=
</span> wrote:<br>




<blockquote class=3D"gmail_quote" style=3D"border-left:1px solid rgb(204, 2=
04, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
Hi Victor,<div><br></div><div>The jettison OSGi bundle can be downloaded fr=
om [1]. You can deploy it into repository/components/dropins directory. Axi=
s2 JSON jar can be downloaded from [2]. This however is not an OSGi bundle.=
 So you should copy it into repository/components/lib.</div>





</blockquote></div><div><br>It&#39;s even better if you can get [3] instead=
 of above [2]. Because it is already an OSGi bundle and you can directly co=
py it into repository/components/dropins.<br><br>Thanks,<br>~Isuru<br>




<br>[3] <a href=3D"http://dist.wso2.org/maven2/org/apache/axis2/wso2/axis2-=
json/1.6.0-wso2v1/" target=3D"_blank">http://dist.wso2.org/maven2/org/apach=
e/axis2/wso2/axis2-json/1.6.0-wso2v1/</a><br>
=C2=A0</div><div><blockquote class=3D"gmail_quote" style=3D"border-left:1px=
 solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
<div><br></div><div>Thanks,</div><div>Hiranya</div><div><br></div><div>[1] =
-=C2=A0<a href=3D"http://dist.wso2.org/maven2/org/codehaus/jettison/wso2/je=
ttison/1.0.1.wso2v1/" target=3D"_blank">http://dist.wso2.org/maven2/org/cod=
ehaus/jettison/wso2/jettison/1.0.1.wso2v1/</a></div>






<div>[2] -=C2=A0<a href=3D"http://dist.wso2.org/maven2/org/apache/axis2/axi=
s2-json/" target=3D"_blank">http://dist.wso2.org/maven2/org/apache/axis2/ax=
is2-json/</a><br><br><div class=3D"gmail_quote"><div><div></div><div>On Wed=
, Oct 13, 2010 at 9:21 PM, Vitor Rodrigues <span dir=3D"ltr">&lt;<a href=3D=
"mailto:vitor.rodrigues at pessoaseprocessos.com" target=3D"_blank">vitor.rodr=
igues at pessoaseprocessos.com</a>&gt;</span> wrote:<br>






</div></div><blockquote class=3D"gmail_quote" style=3D"border-left:1px soli=
d rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"><div><div><=
/div><div><span style=3D"font-family:arial,sans-serif;font-size:13px;border=
-collapse:collapse"><div>





Hi all,</div><div><br></div><div>
I=C2=A0use 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 an=
d your post:</div>
<div><a href=3D"http://wso2.org/library/knowledge-base/add-json-support-wso=
2-wsas" style=3D"color:rgb(6, 88, 181)" target=3D"_blank">http://wso2.org/l=
ibrary/knowledge-base/add-json-support-wso2-wsas</a>=C2=A0come up.</div><di=
v>But where are the OSGI bundles of the jars? I log in and didn&#39;t saw t=
hem attached to the post. Can someone provide them to me please?</div>







<div><br></div></span>
<br><div></div>
<br></div></div>_______________________________________________<br>
Carbon-dev mailing list<br>
<a href=3D"mailto:Carbon-dev at wso2.org" target=3D"_blank">Carbon-dev at wso2.or=
g</a><br>
<a href=3D"https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev" target=3D"=
_blank">https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev</a><br>
<br></blockquote></div><br><br clear=3D"all"><br>-- <br>Hiranya Jayathilaka=
<br>Senior Software Engineer;<br>WSO2 Inc.;=C2=A0 <a href=3D"http://wso2.or=
g" target=3D"_blank">http://wso2.org</a><br>E-mail: <a href=3D"mailto:hiran=
ya at wso2.com" target=3D"_blank">hiranya at wso2.com</a>;=C2=A0 Mobile: +94 77 6=
33 3491<br>






Blog: <a href=3D"http://techfeast-hiranya.blogspot.com" target=3D"_blank">h=
ttp://techfeast-hiranya.blogspot.com</a><br>
</div>
<br>_______________________________________________<br>
Carbon-dev mailing list<br>
<a href=3D"mailto:Carbon-dev at wso2.org" target=3D"_blank">Carbon-dev at wso2.or=
g</a><br>
<a href=3D"https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev" target=3D"=
_blank">https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev</a><br>
<br></blockquote></div></div><br><br clear=3D"all"><br>-- <br><span style=
=3D"font-family:verdana,sans-serif">Isuru Suriarachchi</span><br style=3D"f=
ont-family:verdana,sans-serif"><span style=3D"font-family:verdana,sans-seri=
f">Technical Lead &amp; Product Manager, WSO2 Web Services Application Serv=
er</span><div>




<br style=3D"font-family:verdana,sans-serif">
<span style=3D"font-family:verdana,sans-serif">WSO2 Inc. </span><a style=3D=
"font-family:verdana,sans-serif" href=3D"http://wso2.com" target=3D"_blank"=
>http://wso2.com</a><br style=3D"font-family:verdana,sans-serif"></div><spa=
n style=3D"font-family:verdana,sans-serif">email : </span><a style=3D"font-=
family:verdana,sans-serif" href=3D"mailto:isuru at wso2.com" target=3D"_blank"=
>isuru at wso2.com</a><br style=3D"font-family:verdana,sans-serif">





<span style=3D"font-family:verdana,sans-serif">blog : </span><a style=3D"fo=
nt-family:verdana,sans-serif" href=3D"http://isurues.wordpress.com/" target=
=3D"_blank">http://isurues.wordpress.com/</a><br style=3D"font-family:verda=
na,sans-serif">





<br style=3D"font-family:verdana,sans-serif"><span style=3D"font-family:ver=
dana,sans-serif">lean . enterprise . middleware</span><br><br>
<br>_______________________________________________<br>
Carbon-dev mailing list<br>
<a href=3D"mailto:Carbon-dev at wso2.org" target=3D"_blank">Carbon-dev at wso2.or=
g</a><br>
<a href=3D"https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev" target=3D"=
_blank">https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev</a></blockquot=
e></div><a href=3D"https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev" ta=
rget=3D"_blank"><br>




</a></div><a href=3D"https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev" =
target=3D"_blank"></a></div></div></blockquote></div></div></div></div>
<br>_______________________________________________<br>
Carbon-dev mailing list<br>
<a href=3D"mailto:Carbon-dev at wso2.org" target=3D"_blank">Carbon-dev at wso2.or=
g</a><br>
<a href=3D"https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev" target=3D"=
_blank">https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev</a><br>
<br></blockquote></div></div></div><div><div></div><div><br><br clear=3D"al=
l"><br>-- <br>Hiranya Jayathilaka<br>Senior Software Engineer;<br>WSO2 Inc.=
;=C2=A0 <a href=3D"http://wso2.org" target=3D"_blank">http://wso2.org</a><b=
r>
E-mail: <a href=3D"mailto:hiranya at wso2.com" target=3D"_blank">hiranya at wso2.=
com</a>;=C2=A0 Mobile: +94 77 633 3491<br>
Blog: <a href=3D"http://techfeast-hiranya.blogspot.com" target=3D"_blank">h=
ttp://techfeast-hiranya.blogspot.com</a><br>
</div></div><br>_______________________________________________<br>
Carbon-dev mailing list<br>
<a href=3D"mailto:Carbon-dev at wso2.org" target=3D"_blank">Carbon-dev at wso2.or=
g</a><br>
<a href=3D"https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev" target=3D"=
_blank">https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev</a><br>
<br></blockquote></div><br><br clear=3D"all"><br>-- <br></div></div>Sanjiva=
 Weerawarana, Ph.D.<br>Founder, Chairman &amp; CEO; WSO2, Inc.;=C2=A0 <a hr=
ef=3D"http://wso2.com/" target=3D"_blank">http://wso2.com/</a><br>email: <a=
 href=3D"mailto:sanjiva at wso2.com" target=3D"_blank">sanjiva at wso2.com</a>; p=
hone: +1 408 754 7388 x51726; cell: +94 77 787 6880 | +1 650 265 8311<br>

blog: <a href=3D"http://sanjiva.weerawarana.org/" target=3D"_blank">http://=
sanjiva.weerawarana.org/</a><br><br>Lean . Enterprise . Middleware<br>
</div>
<br>_______________________________________________<br>
Carbon-dev mailing list<br>
<a href=3D"mailto:Carbon-dev at wso2.org">Carbon-dev at wso2.org</a><br>
<a href=3D"https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev" target=3D"=
_blank">https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev</a></blockquot=
e></div><a href=3D"https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev" ta=
rget=3D"_blank"><br>

</a>

--001485f6cc327061500492a4e52a--



More information about the Carbon-dev mailing list