Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 97209 invoked from network); 29 Mar 2007 14:53:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Mar 2007 14:53:50 -0000 Received: (qmail 23516 invoked by uid 500); 29 Mar 2007 14:53:53 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 23462 invoked by uid 500); 29 Mar 2007 14:53:53 -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 23450 invoked by uid 99); 29 Mar 2007 14:53:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2007 07:53:53 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2007 07:53:45 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6DB47714065 for ; Thu, 29 Mar 2007 07:53:25 -0700 (PDT) Message-ID: <23051544.1175180005445.JavaMail.jira@brutus> Date: Thu, 29 Mar 2007 07:53:25 -0700 (PDT) From: "donald yang (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Resolved: (AXIS2-2253) AXIS2 can not correctly map some java data type to corresponding xml data type and can not marshall and unmarshall these object In-Reply-To: <7634338.1172251925852.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-2253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] donald yang resolved AXIS2-2253. -------------------------------- Resolution: Fixed I have fixed this issue. What I have done are as follows: To solve mapping from these data types to XML data type, I updated TypeTable.java and added these mapping into the method populateSimpleTypes() (from Line number 82 - 103) To solve the deserialized problem, I updated SimpleTypeMapper.java. 1) First I defined String variables for these data types (Line number 56 - 68) 2) I added some codes to return these type objects into the method getSimpleTypeObject (from Line number 117 - 146) 3) I added some codes to indicate these type objects are simpleTypeObject into the method isSimpleType. (from Line number 246 -261) > AXIS2 can not correctly map some java data type to corresponding xml data type and can not marshall and unmarshall these object > ------------------------------------------------------------------------------------------------------------------------------- > > Key: AXIS2-2253 > URL: https://issues.apache.org/jira/browse/AXIS2-2253 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Reporter: donald yang > Assigned To: Deepal Jayasinghe > Attachments: SimpleTypeMapper.java, SOAP message for echoDay function.txt, TestCaseService.java, TestCaseService.xml, TypeTable.java > > > I found the AXIS2 can not correctly map the following java data type to correpsonding xml data type in the generated WSDL. It considers them as complex type and further serializes their fields(see attachment wsdl). > java.math.BigDecimal; > java.math.BigInteger; > javax.xml.namespace.QName; > org.apache.axis.types.Day; > org.apache.axis.types.Duration; > org.apache.axis.types.Month; > org.apache.axis.types.MonthDay; > org.apache.axis.types.NegativeInteger; > org.apache.axis.types.NonNegativeInteger; > org.apache.axis.types.NonPositiveInteger; > org.apache.axis.types.PositiveInteger; > org.apache.axis.types.Time; > org.apache.axis.types.UnsignedByte; > org.apache.axis.types.UnsignedInt; > org.apache.axis.types.UnsignedLong; > org.apache.axis.types.UnsignedShort; > org.apache.axis.types.Year; > org.apache.axis.types.YearMonth; > If I still consider them as corresponding xml data type not a customized complex type, and send the value with corresponding format, for example, "---12" for Day, one exception will be thrown (see the attached file, "SOAP message for echoDay function.txt") . It seems that axis2 can not correctly marshall and unmarshall these objects. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org