Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 32206 invoked from network); 16 Apr 2007 04:38:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Apr 2007 04:38:12 -0000 Received: (qmail 20546 invoked by uid 500); 16 Apr 2007 04:38:18 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 19884 invoked by uid 500); 16 Apr 2007 04:38: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 19873 invoked by uid 99); 16 Apr 2007 04:38:16 -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 21:38:16 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of amilasuriarachchi@gmail.com designates 66.249.92.172 as permitted sender) Received: from [66.249.92.172] (HELO ug-out-1314.google.com) (66.249.92.172) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Apr 2007 21:38:08 -0700 Received: by ug-out-1314.google.com with SMTP id j40so842173ugd for ; Sun, 15 Apr 2007 21:37:47 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=rafAxdFqdxsu7nMmnarAB/9XwwhoN8x/GYTiV7ac5pXpQPX2DI+EyLOlavb0H+P/1nWDJCxMIi5ncIYoUGBWfG1W5PCe3UoOqIA0/gXwGW/L/CWlcd9lPNaBr0i5TVPtu2SFXwBl57KxyP8TwXhQ2ZHkPr9dh3WkT6sPSpxduuk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=H1RuEfD+1ErwaEvqpFgyB8GS5IdmU5U0JKPszDHvkiKVqKvmYynNUf2ELbhUmy3fSI50YEe70ViTAHwia5ZMT7vy6HjtQdAG+xWkDFqpEeoK0x5uxFUORJQFTS7Xqc+Uz+zUx3JypgA9AiAXEDqsXXsasQtCZDFwheipxQRggp0= Received: by 10.82.185.12 with SMTP id i12mr34649buf.1176698267197; Sun, 15 Apr 2007 21:37:47 -0700 (PDT) Received: by 10.82.190.10 with HTTP; Sun, 15 Apr 2007 21:37:47 -0700 (PDT) Message-ID: <60708f4b0704152137u5d8e5ffcn7a39c5ea15936abf@mail.gmail.com> Date: Mon, 16 Apr 2007 10:07:47 +0530 From: "Amila Suriarachchi" To: axis-dev@ws.apache.org Subject: Re: Problems reading attributes In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_18484_10633532.1176698267154" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_18484_10633532.1176698267154 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline What is the databinding framwrok you use? Can you test this with a nightly build or RC2? On 4/16/07, Mark Badorrek wrote: > > > 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. > > Specifically, here is a snippet of code that is generated from the client: > > 100000 > > > > If I attempt to do an xmlText() on the element I get the following > string: > > 100000 > > > > This appears correct to me. This snippet is referred to in the generated > code as a "FieldType". > > > FieldType blah = fieldArr[i]; // OK > > String str = blah.getStringValue(); //OK > > String id = blah.getId(); //Fails - returns null > > '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? > > BTW, where is snippet from the scheme: > > > > > > > > > > Cheers, > > Mark B > > > -- Amila Suriarachchi, WSO2 Inc. ------=_Part_18484_10633532.1176698267154 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline What is the databinding framwrok you use?
Can you test this with a nightly build or RC2?

On 4/16/07, Mark Badorrek < mbadorrek@avoga.com.au> wrote:
 
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.
 
Specifically, here is a snippet of code that is generated from the client:
 
<Field Id="TOTALSUMINSURED" xmlns:ns0="http:// ***********************">100000</Field>
 
If I attempt to do an xmlText() on the element I get the following string: 
 
<xml-fragment Id="TOTALSUMINSURED" xmlns:ns0="http://*********************** " xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">100000</xml-fragment >
 
This appears correct to me. This snippet is referred to in the generated code as a "FieldType".
 

FieldType blah = fieldArr[i];    // OK

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

String id = blah.getId();    //Fails - returns null

 
'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?
 
BTW, where is snippet from the scheme:
 
 <complexType name="FieldType">
  <simpleContent>
   <extension base="string">
    <attribute name="Id" type="string" use="required"/>
   </extension>
  </simpleContent>
 </complexType>
 
Cheers,
 
Mark B
 
 



--
Amila Suriarachchi,
WSO2 Inc. ------=_Part_18484_10633532.1176698267154--