Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 99158 invoked from network); 22 Jun 2009 10:08:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Jun 2009 10:08:31 -0000 Received: (qmail 54439 invoked by uid 500); 22 Jun 2009 10:08:41 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 54363 invoked by uid 500); 22 Jun 2009 10:08:41 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 54354 invoked by uid 99); 22 Jun 2009 10:08:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jun 2009 10:08:41 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jun 2009 10:08:29 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7792A234C046 for ; Mon, 22 Jun 2009 03:08:07 -0700 (PDT) Message-ID: <1374583784.1245665287488.JavaMail.jira@brutus> Date: Mon, 22 Jun 2009 03:08:07 -0700 (PDT) From: =?utf-8?Q?P=C3=A9tur_Run=C3=B3lfsson_=28JIRA=29?= To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-4401) xsi:type attribute should be generated for elements declared as xs:anyType when the actual value is a simple type In-Reply-To: <1463562445.1245664927446.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-4401?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1272= 2545#action_12722545 ]=20 P=C3=A9tur Run=C3=B3lfsson commented on AXIS2-4401: ----------------------------------------- Here is a request and response where the xs:anyType is a property of the re= turn value: true Response: Hello > xsi:type attribute should be generated for elements declared as xs:anyTyp= e when the actual value is a simple type > -------------------------------------------------------------------------= ---------------------------------------- > > Key: AXIS2-4401 > URL: https://issues.apache.org/jira/browse/AXIS2-4401 > Project: Axis 2.0 (Axis2) > Issue Type: Improvement > Components: adb > Affects Versions: 1.5 > Reporter: P=C3=A9tur Run=C3=B3lfsson > Priority: Minor > Attachments: Server.java, services.xml, Value.java > > > Currently, the xsi:type attribute is only declared for complex types. Thi= s means that if a method that returns xs:anyType returns an object of simpl= e type (for example xs:string or xs:date), the client gets no type informat= ion with the object. xsi:type attributes should always be declared for retu= rn values for methods that have xs:anyType return types. The same applies w= hen a method returns a complex type that contains a xs:anyType property. > Example response when xs:string is returned: > > > > Hello > > > > Response from same method when a complex type is returned: > > > > > > > > > --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.