Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 85532 invoked from network); 12 May 2009 18:40:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 May 2009 18:40:11 -0000 Received: (qmail 93794 invoked by uid 500); 12 May 2009 18:40:08 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 93692 invoked by uid 500); 12 May 2009 18:40:07 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 93683 invoked by uid 99); 12 May 2009 18:40:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 May 2009 18:40:07 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of andreas.veithen@gmail.com designates 74.125.78.145 as permitted sender) Received: from [74.125.78.145] (HELO ey-out-1920.google.com) (74.125.78.145) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 May 2009 18:39:54 +0000 Received: by ey-out-1920.google.com with SMTP id 13so60761eye.28 for ; Tue, 12 May 2009 11:39:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Rm9B6vCOAkqKa3jClWgxAYBjWJ/SUveBAMuTg722MyI=; b=vRf4bp20VLscZ8YI1LsChHwQWZuAZhoQUDOdHR2JSm1CiWd8IXEQvaZsptG/7maE6R Seq3NY+8Vil8mI8OJq+Fm8YSnHNvE6fcYlCZJuPaHtks5fwWyBoQGMtLPfxfXMrwflfR K2yPR1IX2Z2TAvlUCJVc0ycotmbYECsjHk4d0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=BF430z6G3F2DHzUvewG2K6230zPvmveK8Hpv/hZr5AOQi+R6yzUphNzPW64svUaPv5 I7JQ8QvvFtpRAqtcgP20D5zxfRWFempH+gPvuA1OfVGRv2vfdnJCrB2paZAAi/l6lC4q ZGSchlCm/I1CvIGgNoMeN3GPRj7UMJc1muH5U= MIME-Version: 1.0 Received: by 10.216.20.83 with SMTP id o61mr4159019weo.206.1242153574127; Tue, 12 May 2009 11:39:34 -0700 (PDT) In-Reply-To: <1645196766.9804151242152940401.JavaMail.root@amundsen.cs.athabascau.ca> References: <750548742.9803171242152729145.JavaMail.root@amundsen.cs.athabascau.ca> <1645196766.9804151242152940401.JavaMail.root@amundsen.cs.athabascau.ca> Date: Tue, 12 May 2009 20:39:34 +0200 Message-ID: Subject: Re: axis 2 unexpected Subelement (BUG???) From: Andreas Veithen To: "Trenton D. Adams" Cc: axis-user@ws.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org The namespace of GetHostInstitutionResult doesn't depend on its type. Since it appears in a sequence and elementFormDefault=3D"qualified", it must have the namespace of the schema in which it is declared, i.e. "http://APASProxy.ServiceContracts/2007/04", exactly as the generated code expects it. Andreas On Tue, May 12, 2009 at 20:29, Trenton D. Adams wrot= e: > Okay, thanks Andreas. =A0I'm not sure I understand completely. =A0The Get= HostInstitutionResult is supposed to be of the schema type "http://APASProx= y.DataTypes/2007/04", no??? > > Anyhow, here's the items you mentioned... > =A0 > =A0 > > If the WSDL is wrong, I'm then wondering if this was an axis1 bug, as acc= ording to the wsdl comment, it was generated by axis 1.4. > > Thanks. > > Trenton D. Adams > Systems Analyst/Web Software Engineer > Navy Penguins at your service! > Athabasca University > (780) 675-6195 > :wq! > > ----- "Andreas Veithen" wrote: > >> From: "Andreas Veithen" >> To: axis-user@ws.apache.org, "Trenton D. Adams" >> Sent: Tuesday, May 12, 2009 12:07:21 PM GMT -07:00 US/Canada Mountain >> Subject: Re: axis 2 unexpected Subelement (BUG???) >> >> It is not. The fact that GetHostInstitutionResult is of type >> tns1:RegisteredEducationalInstitution doesn't tell anything about the >> namespace of GetHostInstitutionResult. This depends on the >> targetNamespace and elementFormDefault of the schema, which you don't >> show in your post. >> >> Andreas >> >> On Tue, May 12, 2009 at 19:55, Trenton D. Adams >> wrote: >> > Okay, I figured out what is happening. =A0Is this an axis bug? >> > >> > It is putting the incorrect schema into the stub code... >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0if (reader.isStartElement() && >> new >> javax.xml.namespace.QName("http://APASProxy.ServiceContracts/2007/04","G= etHostInstitutionResult").equals(reader.getName())){ >> > >> > >> =A0object.setGetHostInstitutionResult(RegisteredEducationalInstitution.F= actory.parse(reader)); >> > >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0reader.next(); >> > >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0} =A0// End= of if for expected property >> start element >> > >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0else { >> > >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0} >> > >> > That "ServiceContracts" should read "DataTypes". =A0The wsdl says >> this... >> > >> > > targetNamespace=3D"http://APASProxy.ServiceContracts/2007/04" >> xmlns:apachesoap=3D"http://xml.apache.org/xml-soap" >> xmlns:impl=3D"http://APASProxy.ServiceContracts/2007/04" >> xmlns:intf=3D"http://APASProxy.ServiceContracts/2007/04" >> xmlns:tns1=3D"http://APASProxy.DataTypes/2007/04" >> xmlns:tns2=3D"http://_04._2007.APASProxy.DataTypes" >> xmlns:wsdl=3D"http://schemas.xmlsoap.org/wsdl/" >> xmlns:wsdlsoap=3D"http://schemas.xmlsoap.org/wsdl/soap/" >> xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema"> >> >