Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 25454 invoked from network); 3 Oct 2007 18:27:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Oct 2007 18:27:04 -0000 Received: (qmail 7102 invoked by uid 500); 3 Oct 2007 18:26:48 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 6193 invoked by uid 500); 3 Oct 2007 18:26:46 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 6182 invoked by uid 99); 3 Oct 2007 18:26:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2007 11:26:46 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of csethil@gmail.com designates 64.233.162.237 as permitted sender) Received: from [64.233.162.237] (HELO nz-out-0506.google.com) (64.233.162.237) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2007 18:26:46 +0000 Received: by nz-out-0506.google.com with SMTP id l1so1107619nzf for ; Wed, 03 Oct 2007 11:26:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=QoKb7VsoCGktXEzEienKFp7TqNgHBuC0LbQ48kgQ/Mk=; b=jJ9qcrVT+mQwsVO0gNjpAiYC8xkPpWREgtqFq99Ucr/SpQgOpDc01X42F9MZKYkzfV4AVnLgVGypa4M8eBMufZXI66Knifq/Yv/53vJ4wXY/TsohdWadw9nkhulSJCCCmYIkwi35rA5ShbsxNliCJT6I3QIvYHQY4nmD5OUUwkA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Hr37I9vB24Z/AaMRZvI5NjjuEo8XEqHmumh7f9/yt2qQSW6O74J4BKia4IUmZN7a4e6cPrL8zn1/iApAkLfjMHM3obONx/K/RyDexUULs+ObR0GnPWwnDw+aG58MCh6R9yMXJc4m3E4dgOGYMP4N97Ju4T0SZl+gbujMvxt2gfk= Received: by 10.114.173.15 with SMTP id v15mr4195461wae.1191435967250; Wed, 03 Oct 2007 11:26:07 -0700 (PDT) Received: by 10.115.93.8 with HTTP; Wed, 3 Oct 2007 11:26:07 -0700 (PDT) Message-ID: Date: Wed, 3 Oct 2007 14:26:07 -0400 From: "Thilina Gunarathne" To: axis-user@ws.apache.org Subject: Re: Web Service REST + JSON In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org AFAIK POJO support by defualt generates namespaces. But you can try specifying nameapce to package mapping pointing to the defualt namespace... Not sure whether it'll work.. If not you will have to either create your service using Axiom or using a code generation... These are the results of impedence mismatch's between JSON and XML.. Also wat's the error you are getting with badgerfish. Thanks, Thilina On 10/3/07, Karina Pereyra wrote: > i'd like to use mapped service not badgerfish but when i try to use > mapped i have this error > Mapped formatted JSON with namespaces are not supported in Axis2. > Make sure that your request doesn't include namespaces or use the > Badgerfish convention. > > do you know how i can remove namespaces? > > > > On 10/3/07, keith chapman wrote: > > Sorry Karina I'm not very familiar with Badgerfish. Did you have a look at > > http://wso2.org/library/768 ? > > > > Thanks, > > Keith. > > > > > > On 10/3/07, Karina Pereyra wrote: > > > > > > I'm nearby of success. > > > I have now my pojo services with this method, but i have the last problem. > > > When i use Badgerfish response comes to client (response is difficult > > > to parse in javascript), > > > But when i use Mapped i have the next error: > > > > > > Mapped formatted JSON with namespaces are not supported in Axis2. > > > Make sure that your request doesn't include namespaces or use the > > > Badgerfish convention. > > > > > > How i could use mapped formatter in axis2 with pojo? > > > > > > public User UserInfo(String username ) throws AxisFault{ > > > MessageContext msgContext = > > > > > org.apache.axis2.context.MessageContext.getCurrentMessageContext().getCurrentMessageContext().getOperationContext().getMessageContext( > > WSDLConstants.MESSAGE_LABEL_OUT_VALUE > > > ); > > > > > msgContext.setProperty(Constants.Configuration.MESSAGE_TYPE,"application/json"); > > > return (User)entries.get(username); > > > } > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: > > axis-user-unsubscribe@ws.apache.org > > > For additional commands, e-mail: axis-user-help@ws.apache.org > > > > > > > > > > > > > > -- > > Keith Chapman > > WSO2 Inc. > > Oxygen for Web Services Developers. > > http://wso2.org/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-user-help@ws.apache.org > > -- Thilina Gunarathne - http://thilinag.blogspot.com --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org