Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 56866 invoked from network); 19 Nov 2006 02:29:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Nov 2006 02:29:36 -0000 Received: (qmail 42520 invoked by uid 500); 19 Nov 2006 02:29:27 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 42495 invoked by uid 500); 19 Nov 2006 02:29:27 -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 42473 invoked by uid 99); 19 Nov 2006 02:29:26 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Nov 2006 18:29:26 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of davanum@gmail.com designates 66.249.82.237 as permitted sender) Received: from [66.249.82.237] (HELO wx-out-0506.google.com) (66.249.82.237) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Nov 2006 18:29:13 -0800 Received: by wx-out-0506.google.com with SMTP id h28so1222695wxd for ; Sat, 18 Nov 2006 18:28:52 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cVb7jFvrxJdCjx7RvGzFfDPKhMv0EXCvE+C7RprU0lp0ak6yLDsAtXvon2JgyWLET5zS1Yf0IzgFsQR2Ilq441uk3TFPhm1vq9dZzvVgYu5rh7ovylhMSFtA/98Ub5gCcNxT6gk9ba1l9kmUQidRXfvNCdQx0tBf7XSm34df4Po= Received: by 10.90.31.19 with SMTP id e19mr2677323age.1163903331182; Sat, 18 Nov 2006 18:28:51 -0800 (PST) Received: by 10.90.55.1 with HTTP; Sat, 18 Nov 2006 18:28:51 -0800 (PST) Message-ID: <19e0530f0611181828q690b345dtdc3228d6d79390bd@mail.gmail.com> Date: Sat, 18 Nov 2006 21:28:51 -0500 From: "Davanum Srinivas" Reply-To: dims@apache.org To: axis-user@ws.apache.org Subject: Re: [AXIS2] issue converting REST request to XML In-Reply-To: <20061118071924.36789.qmail@web35613.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061118071924.36789.qmail@web35613.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org Christopher, This is a bug. Please log a JIRA issue with your complete wsdl/schema and soap request / sample code. thanks, dims On 11/18/06, Christopher Bare wrote: > > I'm having a problem with the REST feature of Axis2. I hacked up a WSDL which specifies a "findAuthors" method. I use RawXMLINOutMessageReceiver so, on the Java side, the method looks like this: > > public OMElement findAuthors(OMElement parameters); > > This method works fine when I call it from SOAP. It gets a SOAP body that looks like this: > > > Bob > Smith > > > Totally cool... But, calling it through the REST method with the URL: > > http://localhost:8080/axis2/rest/books/findAuthors?firstName=Bob&lastName=Smith > > Results in this OMElement: > > > Bob > Smith > > > This fails because the firstName and lastName elements are in the wrong namespace. They need to be in the "http://cbare.org/books-ws/" namespace and they're not. > > I guess calling a RawXML method using REST might be a nutty thing to want to do. But leaving that aside, is there a problem with the way the framework generates XML from a REST request? Or am I using it wrong? The REST binding for that method looks like this: > > > > > > > > > > > > > ... > > > Is there something I need to tweak in here to let clue it in about the namespaces? > > Finally, for good measure, the WSDL type definition looks like this: > > > elementFormDefault="qualified"> > > > > > > > > > > ... > > I'm using: Apache Axis2 1.1-SNAPSHOT build (October 31 2006), just in case that matters. Thanks for any hints, > > - Chris > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-user-help@ws.apache.org > > -- Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers) --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org