Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 75461 invoked from network); 16 Apr 2007 01:18:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Apr 2007 01:18:14 -0000 Received: (qmail 65243 invoked by uid 500); 16 Apr 2007 01:18:19 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 64575 invoked by uid 500); 16 Apr 2007 01:18:17 -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 64564 invoked by uid 99); 16 Apr 2007 01:18:17 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Apr 2007 18:18:17 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [202.86.116.164] (HELO mail2.avoga.com.au) (202.86.116.164) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Apr 2007 18:18:10 -0700 Received: from mail.avoga.com.au ([192.168.16.2]) by mail2.avoga.com.au with Microsoft SMTPSVC(6.0.3790.1830); Mon, 16 Apr 2007 11:21:19 +1000 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C77FC5.8911D7A2" Subject: Problems reading attributes Date: Mon, 16 Apr 2007 11:21:18 +1000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problems reading attributes Thread-Index: Acd/xYkMKaizDKkAQveg+3TVCYJCEQ== From: "Mark Badorrek" To: X-OriginalArrivalTime: 16 Apr 2007 01:21:19.0617 (UTC) FILETIME=[898A3710:01C77FC5] X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C77FC5.8911D7A2 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable =20 I have a soap request using axis2-1.1 to generate the client and server = bindings. The client seems to render the xml just fine, but the server side seems = to have a problem. =20 Specifically, here is a snippet of code that is generated from the = client: =20 100000100000 > =20 If I attempt to do an xmlText() on the element I get the following = string:=20 =20 100000 =20 This appears correct to me. This snippet is referred to in the generated = code as a "FieldType". =20 FieldType blah =3D fieldArr[i]; // OK String str =3D blah.getStringValue(); //OK String id =3D blah.getId(); //Fails - returns null =20 'str' will be set to '100000', whilst 'Id' will be set to null. I would = have expected 'Id' to be 'TOTALSUMINSURED'. Does anyone else have problems retrieving attributes with axis2 or am I = just doing something silly here? =20 BTW, where is snippet from the scheme: =20 =20 Cheers, =20 Mark B =20 =20 ------_=_NextPart_001_01C77FC5.8911D7A2 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
=0A=
I have a soap request using axis2-1.1 =  to =0A= generate the client and server bindings.
=0A=
The client seems to render the xml just = fine, but =0A= the server side seems to have a problem.
=0A=
 
=0A=
Specifically, here is a snippet of code = that is =0A= generated from the client:
=0A=
 
=0A=
<Field Id=3D"TOTALSUMINSURED" xmlns:ns0=3D"100000http://= ***********************">100000</Field>=0A=
 
=0A=
If I attempt to do an xmlText() on = the element =0A= I get the following string: 
=0A=
 
=0A= =0A=
 
=0A=
This appears correct to me. This = snippet is =0A= referred to in the generated code as a "FieldType".
=0A=
 
=0A=
=0A=

FieldType blah =3D fieldArr[i];    // = OK

=0A=

String str =3D blah.getStringValue();   = //OK

=0A=

String id =3D blah.getId();    //Fails - returns =0A= null

=0A=
 
=0A=
'str' will be set to '100000', whilst = 'Id' will be =0A= set to null. I would have expected 'Id' to be = 'TOTALSUMINSURED'.
=0A=
Does anyone else have problems = retrieving =0A= attributes with axis2 or am I just doing something silly = here?
=0A=
 
=0A=
BTW, where is snippet from the = scheme:
=0A=
 
=0A=
 <complexType =0A= name=3D"FieldType">
  <simpleContent>
 &nbs= p; <extension =0A= base=3D"string">
    <attribute name=3D"Id" =0A= type=3D"string" =0A= use=3D"required"/>
   </extension>
 &n= bsp;</simpleContent>
 </complexType>
=0A=
 
=0A=
Cheers,
=0A=
 
=0A=
Mark B
=0A=
 
=0A=
 
------_=_NextPart_001_01C77FC5.8911D7A2--