Return-Path: X-Original-To: apmail-axis-java-user-archive@www.apache.org Delivered-To: apmail-axis-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C58C910045 for ; Tue, 11 Mar 2014 06:46:17 +0000 (UTC) Received: (qmail 65348 invoked by uid 500); 11 Mar 2014 06:46:16 -0000 Delivered-To: apmail-axis-java-user-archive@axis.apache.org Received: (qmail 64880 invoked by uid 500); 11 Mar 2014 06:46:10 -0000 Mailing-List: contact java-user-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@axis.apache.org Delivered-To: mailing list java-user@axis.apache.org Received: (qmail 64871 invoked by uid 99); 11 Mar 2014 06:46:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Mar 2014 06:46:07 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jasinthad@gmail.com designates 209.85.219.53 as permitted sender) Received: from [209.85.219.53] (HELO mail-oa0-f53.google.com) (209.85.219.53) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Mar 2014 06:46:00 +0000 Received: by mail-oa0-f53.google.com with SMTP id j17so7880558oag.26 for ; Mon, 10 Mar 2014 23:45:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=/vgL2QFF6iUD+v2/6GglPuktaDqequ/OY2SjGKBze/U=; b=mGrVLuxsqqS0xpFv6tqrJgFOUeERFR8bp/j6bbaz1O8ukDTKQoCQSuS72T1Fu7Owbq iZo08aQJHy3JaCHe6aqbAgLPwsRpGrAkw2O7OvLsrL/2CH5pFPBX4Utwj7GgbXyFg6kV t5sOY4kHRAXyicea7yldfrYa7GPsRC13cfZcoBuoZq8z1DlnL7anP3z9b8ixZVD5ydPB w0IVfoZSDIuCVygTG8N6JBiKlRu74LWoEeXOP3+IKgNO+YNDoaOdUbq36WeSR2qrQLvW Hc2qWQIhjohGW0SvIU8vgVMldaWCRaaolbrrQQkVHiAUq6ghePiclGU1j/qiFX+lnKqX 7CPg== MIME-Version: 1.0 X-Received: by 10.60.54.202 with SMTP id l10mr27253641oep.29.1394520339392; Mon, 10 Mar 2014 23:45:39 -0700 (PDT) Received: by 10.76.112.139 with HTTP; Mon, 10 Mar 2014 23:45:39 -0700 (PDT) In-Reply-To: References: Date: Tue, 11 Mar 2014 12:15:39 +0530 Message-ID: Subject: Re: WSDL2 JAVA , generated code has an error when schema has "xsd:anySimpleType" From: Jasintha Dasanayaka To: java-user@axis.apache.org Content-Type: multipart/alternative; boundary=089e011606f0762e4704f44f11e4 X-Virus-Checked: Checked by ClamAV on apache.org --089e011606f0762e4704f44f11e4 Content-Type: text/plain; charset=ISO-8859-1 I am using .latest released 1.6.2 in 2012-04-17, but i noticed this fix come with 1.6.3 but not yet release, But within two years no any release , does this mean axis2 going to dead.? or am I looking wrong info Thanks /Jasintha On Tue, Mar 11, 2014 at 11:30 AM, Kishanthan Thangarajah < kshanth2101@gmail.com> wrote: > What is the axis2 version you are using? > This has been fixed for upcoming releases. See : > https://issues.apache.org/jira/browse/AXIS2-5319 > > > On Tue, Mar 11, 2014 at 10:13 AM, Jasintha Dasanayaka > wrote: > >> I am trying to generate java code(using wsdl2java tool) by pointing a >> WSDL file. That WSDL file contains a schema import, that schema has >> following complex element . >> >> ------------------------------------------------- >> >> >> >> A Sample result. >> >> >> > maxOccurs="unbounded" > >> >> A value in a row. >> >> >> >> >> ------------------------------------------------- >> >> There is a compilation error in the generate code. I came across that is >> due to "xsd:anySimpleType" element , If use "xsd:string" instead of >> having this "xsd:anySimpleType" there are no errors in the generated >> codes , But unfortunately i cannot modify the schema . Can you please >> suggest a way to do this without changing the schema. >> >> >> Thanks and Regards >> /Jasintha >> >> -- >> >> >> >> *Thanks & Regards Jasintha Dasanayake* >> >> mobile +94 (0)71 624 1368 , >> >> > -- *Thanks & RegardsJasintha Dasanayake* *WSO2 Inc* mobile +94 (0)71 624 1368 , --089e011606f0762e4704f44f11e4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I am using=A0.latest rele= ased 1.6.2 in 2012-04-17, =A0but i noticed this fix come with 1.6.3 but not= yet release, =A0
But within two years no any release , does this mean =A0axis2= going to dead.? =A0or am I looking wrong info=A0

=
Thanks
/Jasintha


On Tue,= Mar 11, 2014 at 11:30 AM, Kishanthan Thangarajah <kshanth2101@gmail.c= om> wrote:
What is the axis2 version y= ou are using?=A0
This has been fixed for upcoming releases. See : h= ttps://issues.apache.org/jira/browse/AXIS2-5319

On Tue, Mar 11, 2014 at 10:13 AM, Jasintha= Dasanayaka <jasinthad@gmail.com> wrote:
=A0I am trying to gene= rate java code(using wsdl2java tool) by pointing =A0a WSDL file. That WSDL = file contains a schema import, that schema has following complex element .<= /div>

-------------------------------------------------
<xsd:element name=3D"QuerySampleResultRow" type=3D"t= ns:QueryResultRowType"/>
=A0 <xsd:complexType name=3D&= quot;QuerySampleResultRowType">
=A0 =A0 <xsd:annotatio= n>
=A0 =A0 =A0 <xsd:documentation>A Sample=A0result.</xsd:docume= ntation>
=A0 =A0 </xsd:annotation>
=A0 =A0 <= ;xsd:sequence>
=A0 =A0 =A0 <xsd:element name=3D"value&= quot; type=3D"xsd:anyS= impleType" nillable=3D"true" maxOccurs=3D"unboun= ded" >
=A0 =A0 =A0 =A0 <xsd:annotation>
=A0 =A0 =A0 =A0 =A0 &= lt;xsd:documentation>A value in a row. </xsd:documentation>
<= div>=A0 =A0 =A0 =A0 </xsd:annotation>
=A0 =A0 =A0 </xsd:= element>
=A0 =A0 </xsd:sequence>
=A0 </xsd:complexType>
-------------------------------= ------------------

There is a compilation error in= the generate code. I came across that is due to =A0"xsd:anySimpleType" element , If = use "xsd:string= " instead of having this "xsd:anySimpleType" there are no errors in the generate= d codes , But unfortunately i cannot modify the schema . Can you please sug= gest a way to =A0do this without changing the schema. =A0


Thanks and Regards
/Jasintha

--
Thanks & Regards

Jasintha Dasanayake




--
=
Thanks & Rega= rds

Jasintha Dasanayake
WSO2 Inc

mobile +94 (0)71 624 1368 ,

--089e011606f0762e4704f44f11e4--