Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 38106 invoked from network); 12 Jul 2005 21:09:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Jul 2005 21:09:52 -0000 Received: (qmail 39764 invoked by uid 500); 12 Jul 2005 21:09:44 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 39716 invoked by uid 500); 12 Jul 2005 21:09:43 -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 39663 invoked by uid 99); 12 Jul 2005 21:09:43 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jul 2005 14:09:43 -0700 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=FORGED_RCVD_HELO,NO_REAL_NAME,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [159.37.7.252] (HELO excalbia.wellsfargo.com) (159.37.7.252) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jul 2005 14:09:41 -0700 Received: from outback.wellsfargo.com (outback.wellsfargo.com [10.88.26.20]) by excalbia.wellsfargo.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id j6CL9fck013265 for ; Tue, 12 Jul 2005 14:09:41 -0700 (MST) Received: from outback.wellsfargo.com (localhost [127.0.0.1]) by outback.wellsfargo.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id j6CL9dAQ029801 for ; Tue, 12 Jul 2005 16:09:39 -0500 (CDT) Received: from MSGSPSIADSM01.ent.wfb.bank.corp (msgspsiadsm01.wellsfargo.com [10.30.15.242]) by outback.wellsfargo.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id j6CL9V1P029616 for ; Tue, 12 Jul 2005 16:09:38 -0500 (CDT) Received: from MSGSWBMNMSP34.ent.wfb.bank.corp ([10.88.230.232]) by MSGSPSIADSM01.ent.wfb.bank.corp with Microsoft SMTPSVC(5.0.2195.6713); Tue, 12 Jul 2005 16:09:37 -0500 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6556.0 Subject: RE: axis 1.2.1 fails to deserialize xs:date in responses Date: Tue, 12 Jul 2005 16:09:37 -0500 Message-ID: <3909DD5F2046C14687CC38B3C641FE450EF4D8@msgswbmnmsp34.wellsfargo.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: axis 1.2.1 fails to deserialize xs:date in responses Thread-Index: AcWHJK/jvPMs/19cRQOqwIwGaAmGlgAAQDew From: To: X-OriginalArrivalTime: 12 Jul 2005 21:09:37.0904 (UTC) FILETIME=[03042F00:01C58726] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I've created the issue as critical, we can work with the patch I've created for now.... http://issues.apache.org/jira/browse/AXIS-2115 -----Original Message----- From: Davanum Srinivas [mailto:davanum@gmail.com]=20 Sent: Tuesday, July 12, 2005 4:00 PM To: axis-dev@ws.apache.org Subject: Re: axis 1.2.1 fails to deserialize xs:date in responses Please open a bug report. thanks, dims On 7/12/05, Michael.S.Ward@wellsfargo.com wrote: > =20 > =20 > Axis 1.2.1, as a client, seems to be failing to deserialize responses=20 > properly and completely fails when parsing a date returned from an=20 > Axis 1.1 document/literal service. Listed below are 3 scenarios where > the same WSDL was used to generate the client and serverside bindings=20 > using WSDL2Java. I ended up making a change to one of the WSDL2Java=20 > classes to get this working. This may or may not need to be filed as=20 > a bug and I'm not sure if the change I made is safe or if it just=20 > solves my problem. > =20 > I found through debugging that during deserialization that axis 1.2.1=20 > would always end up stepping into lines 291-297 of the=20 > BeanDeserializer where the comment states that it is an error if the=20 > deserializer is not found at this point. After comparing the=20 > generated 1.1 and 1.2.1 binding classes I found that making the=20 > following change fixed my problem. I've also attached the WSDL used=20 > below. > =20 >=20 > $ diff=20 > ./axis-1_2_1/src/org/apache/axis/wsdl/toJava/JavaBeanHelperWriter.java > ./axis-1_2_1/src/org/apache/axis/wsdl/toJava/JavaBeanHelperWriter.java > .orig > 363,369c363 > < if (elemType !=3D null && > < elemType.getRefType() !=3D null && > < elemType.getRefType().getQName() !=3D = null) { > < pw.println(" elemField.setXmlType(" > < + > Utils.getNewQName(elemType.getRefType().getQName()) + ");"); > < } else { > < pw.println(" elemField.setXmlType(" > --- > > pw.println(" elemField.setXmlType(" > 371d364 > < }=20 > =20 > If someone could take a look and let me know if I should be doing=20 > something else I would appreciate it. Unfortunately having everyone=20 > upgrade to 1.2.1 is not an option right now so I really need this type > of interoperability to work. > =20 > thanks, > -mike > =20 > =20 > =20 >=20 > xmlns:soapbind=3D"http://schemas.xmlsoap.org/wsdl/soap/" > xmlns:wsdl=3D"http://schemas.xmlsoap.org/wsdl/" > xmlns:xs=3D"http://www.w3.org/2001/XMLSchema" > targetNamespace=3D"http://test.axis.com/wsdl2java/" name=3D"axisTest"> > > xmlns=3D"http://test.axis.com/wsdl2java/" > xmlns:xs=3D"http://www.w3.org/2001/XMLSchema" > elementFormDefault=3D"unqualified" = attributeFormDefault=3D"unqualified"> > > > > > maxOccurs=3D"1"/> > > > > > > > > > type=3D"WSDLTestResponse_Type"/> > > > > > > > element=3D"getWSDLTestResponse"/> > > > > message=3D"GetWSDLTestRequestMessage"/> > message=3D"GetWSDLTestResponseMessage"/> > > > > transport=3D"http://schemas.xmlsoap.org/soap/http"/> > > soapAction=3D"http://service.wellsfargo.com/provider/pcs/account/2004/"/>= > > > > > > > > > > binding=3D"GetWSDLTestSoapBinding"> > location=3D"http://localhost:7001/services/getWSDLTest/"/> > > > =20 > =20 > =20 > =20 > =20 > =20 > =20 > =20 > Axis 1.1 Client --> Axis 1.1 Service > Request: > > xmlns:soapenv=3D"http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"> > > > Test String > > > > =20 > Response: > > xmlns:soapenv=3D"http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"> > > > 2005-07-12 > > > > =20 > Result: works!! > =20 > =20 > =20 > Axis 1.2.1 Client --> Axis 1.1 Service > Request: > > xmlns:soapenv=3D"http://schemas.xmlsoap.org/soap/envelope/" > =20 > xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" > =20 > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"> > =20 > > > Test String > > > > =20 >=20 > Response: > > xmlns:soapenv=3D"http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"> > > > 2005-07-12 > > > > =20 > Result: Client fails to deserialize with > `java.lang.NumberFormatException: Invalid date/time` > =20 > =20 > =20 > Axis 1.2.1-fix Client --> Axis 1.1 Service > Request: > > xmlns:soapenv=3D"http://schemas.xmlsoap.org/soap/envelope/" > =20 > xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" > =20 > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"> > =20 > > > Test String > > > > =20 >=20 > Response: > > xmlns:soapenv=3D"http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"> > > > 2005-07-12 > > > > =20 > Result: works!! --=20 Davanum Srinivas -http://blogs.cocoondev.org/dims/