Return-Path: X-Original-To: apmail-axis-java-dev-archive@www.apache.org Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 41948CFE5 for ; Sat, 5 May 2012 06:01:40 +0000 (UTC) Received: (qmail 39487 invoked by uid 500); 5 May 2012 06:01:39 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 39074 invoked by uid 500); 5 May 2012 06:01:35 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 39037 invoked by uid 99); 5 May 2012 06:01:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 May 2012 06:01:33 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=HTML_FONT_FACE_BAD,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of shameerainfo@gmail.com designates 209.85.210.48 as permitted sender) Received: from [209.85.210.48] (HELO mail-pz0-f48.google.com) (209.85.210.48) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 May 2012 06:01:28 +0000 Received: by dadz8 with SMTP id z8so1081588dad.35 for ; Fri, 04 May 2012 23:01:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=egnR7rb4pQ1wYVmZOPXbAufHaCydgdFL6UXscwLSKic=; b=iqf/mhaMTWvZEboIIgEe48JcMKrpG9QOwatP84cVEnupT7j7Oaplj3nwMAsGkfMxKm xdXLpzCfh5Y9Jxrn8dkriW23k4QEeAt8wdUV+rRDEgI1MSmadKxZCeOWKzpKTJcPquHI 9M7F06kSX4vK2o7LPxjZBDSuIPjzPZJGwFIujOQXg6BlrttfiymoMFjSpa0vmTmEGSbl epv6AcIUhOj1FiZBuV8QV7/BrXX5uBuond0QWP1c2BVORDyUSgT/QWL0Rt1h16l00TPM kSS2PjqpSTMTHTRUVs1ybEOGoLe32BbtG//oiyGZz1yi182+tn7QNn/RuWnnns+7SVzI UoJw== Received: by 10.68.213.9 with SMTP id no9mr25782381pbc.91.1336197668245; Fri, 04 May 2012 23:01:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.233.131 with HTTP; Fri, 4 May 2012 23:00:47 -0700 (PDT) In-Reply-To: References: From: Shameera Rathnayaka Date: Sat, 5 May 2012 11:30:47 +0530 Message-ID: Subject: Re: [GSOC 2012] Improve Json support in Axis2 with google-gson, [Part-2] To: java-dev@axis.apache.org Cc: Amila Suriarachchi Content-Type: multipart/alternative; boundary=e89a8ff1c4445d91ea04bf43c3ef X-Virus-Checked: Checked by ClamAV on apache.org --e89a8ff1c4445d91ea04bf43c3ef Content-Type: text/plain; charset=ISO-8859-1 Hi devs , According to my second approach, I need to map json elements in request to relevant XML tags/text and vice versa. When i am working on this, there is a problem arises that which convention should i expect for this. So i need to clarify whether the following convention is correct or are there any suggestions for it. json message { "alise": { "bob": { "x": "valueX", "y": "valueY", "z": ["valueU","valueV","valueW"], "l": { "name": "john", "age": 23 }, "m": [ { "a": ["A","B","C" ] }, { "b": ["D","E","F" ] } ] } } } Relevant,expected xml message from this json request (actually, it is not converted to xml) valueX valueY valueU valueV valueW john 23 A B C D E F Thanks Shameera. On Tue, Apr 24, 2012 at 7:12 PM, Shameera Rathnayaka wrote: > Hi devs, > > As this project is accepted for GSoC 2012, I would like > to continue my work and looking forward to finish my project > as a success in this summer. According to my mentor (Amila Suriarachchi) > it is better to improve my knowledge further about Axis2 architecture > in this community bounding period. Therefore I'll start to read the > Documentation and Apache Axis2 book. > > Andreas, as you mentioned in the previous mail thread[1] could you > please point out some of the code samples in synapse which do > a similar work as i do in my 2nd approach of the project?. > > I will use this thread for future discussion about the project. > And I'll keep update my implementation patches to AXIS2-5270too. > > > [1] > http://axis.markmail.org/thread/4lg7xefplv7o65z6#query:page:1+mid:u7zauh37nj4mje6n+state:results > > Thanks > Shameera. > > -- > Shameera Rathnayaka > Undergraduate > Department of Computer Science and Engineering > University of Moratuwa. > Sri Lanka. > > Blog : http://shameerarathnayaka.blogspot.com/ > > -- Shameera Rathnayaka Undergraduate Department of Computer Science and Engineering University of Moratuwa. Sri Lanka. Blog : http://shameerarathnayaka.blogspot.com/ --e89a8ff1c4445d91ea04bf43c3ef Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi devs ,

According to my second approach, I need to map json eleme= nts in request to relevant XML tags/text and vice versa. When i am working = on this, there is a=A0 problem arises that which convention should i expect= for this. So i need to clarify whether the following convention is correct= or are there any suggestions for it.

json message

{=A0=A0=A0 "alise": {
=A0=A0=A0=A0=A0= =A0=A0 "bob": {
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 "x"= ;: "valueX",
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 "y": = "valueY",
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 "z": [&q= uot;valueU","valueV","valueW"],
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 "l": { "name": "= john",=A0 "age": 23 },
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = "m": [ { "a": ["A","B","C"= ; ]=A0 }, { "b": ["D","E","F" ]=A0 = }=A0 ]
=A0=A0=A0=A0=A0=A0=A0 }
=A0=A0=A0 }
}

Relevant,expected xml me= ssage from this json request (actually, it is not converted to xml)

= =A0=A0=A0 <json>
=A0=A0=A0 =A0=A0=A0 <alise>
=A0=A0=A0 = =A0=A0=A0 =A0=A0=A0 <bob>
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 = <x>valueX</x>
=A0=A0=A0 =A0=A0=A0 =A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2012 at 7:12 PM, Shameera Rathnayak= a <shameerainfo@gmail.com> wrote:
Hi devs,

As this project is accepted = for GSoC 2012, I would like
to continue my work and looking forward to = finish my project
as a success in this summer. According to my mentor (Amila Suriarachchi) it is better to improve my knowledge further about Axis2 architecture in this community bounding period. Therefore I'll start to read the
= Documentation and Apache Axis2 book.

Andreas, as you mentioned in t= he previous mail thread[1] could you
please point out some of the code = samples in synapse which do
a similar work as i do in my 2nd approach of the project?.

I will u= se this thread for future discussion about the project.
And I'll kee= p update my implementation patches to=A0 AXIS2-5270 too.


[1]
http://axis.markmail.o= rg/thread/4lg7xefplv7o65z6#query:page:1+mid:u7zauh37nj4mje6n+state:results<= /a>

Thanks
Shameera.

= --
Shameera Rathna= yaka
Undergraduate
Department of Computer= Science and Engineering
University of M= oratuwa.
Sri Lanka.

Blog :
http://shameerarathnayaka.blogspot.com/




--
Shameera Rathnayaka
Undergraduate
Department of Computer= Science and Engineering
University of M= oratuwa.
Sri Lanka.

Blog : http://shameerarathnayaka.blogspot.com/

--e89a8ff1c4445d91ea04bf43c3ef--