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 9494A8B06 for ; Wed, 7 Sep 2011 13:34:38 +0000 (UTC) Received: (qmail 98367 invoked by uid 500); 7 Sep 2011 13:34:35 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 97623 invoked by uid 500); 7 Sep 2011 13:34: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 97585 invoked by uid 99); 7 Sep 2011 13:34:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2011 13:34:34 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2011 13:34:31 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 3EC6D85DF0 for ; Wed, 7 Sep 2011 13:34:10 +0000 (UTC) Date: Wed, 7 Sep 2011 13:34:10 +0000 (UTC) From: "Sagara Gunathunga (JIRA)" To: java-dev@axis.apache.org Message-ID: <1537427549.25624.1315402450253.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (AXIS2-3364) RESTFul serivce problem when parameters are short MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-3364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13098939#comment-13098939 ] Sagara Gunathunga commented on AXIS2-3364: ------------------------------------------- As Amila commented that this fix is available on trunk on 09/May/10, this should work on 1.6.0. > RESTFul serivce problem when parameters are short > ------------------------------------------------- > > Key: AXIS2-3364 > URL: https://issues.apache.org/jira/browse/AXIS2-3364 > Project: Axis2 > Issue Type: Bug > Components: adb > Affects Versions: 1.3 > Reporter: takanori > Fix For: 1.6.0 > > Attachments: axis2_3364.patch > > > If I develop a RESTFul web service, there is a case that service paramters are not correctly set. > The service class is : > ------------------------------------------------------------ > public class RESTfulEcho { > public EchoDto echo(Integer id, String message) { > EchoDto dto = new EchoDto(); > dto.setId(id); > dto.setMessage(message); > return dto; > } > } > I've tried to call the service like this : > ------------------------------------------------------------ > http://localhost:8080/axis2/services/RESTfulEcho/echo?message=123 > The parameter "id" is not explicitly set. > Then the service parameters are : > id ---> 123 > message ---> null > When the parameters are explicitly set, > the service works correctly. > ------------------------------------------------------------ > http://localhost:8080/axis2/services/RESTfulEcho/echo?id=&message=123 > But, I hope that when the parameters is not explicitly set, > the parameter is set null or throw a exception. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org