Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 37483 invoked from network); 27 Dec 2006 17:19:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Dec 2006 17:19:15 -0000 Received: (qmail 85483 invoked by uid 500); 27 Dec 2006 17:19:12 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 85466 invoked by uid 500); 27 Dec 2006 17:19:11 -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 85454 invoked by uid 99); 27 Dec 2006 17:19:11 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Dec 2006 09:19:11 -0800 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [167.7.29.7] (HELO barracuda.doc.state.sc.us) (167.7.29.7) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Dec 2006 09:19:02 -0800 X-ASG-Debug-ID: 1167239920-089800490000-MyY4CN X-Barracuda-URL: http://10.88.2.4:8000/cgi-bin/mark.cgi X-Barracuda-Connect: unknown[10.88.3.5] X-Barracuda-Start-Time: 1167239920 X-ASG-Whitelist: Client Received: from mail.doc.state.sc.us (unknown [10.88.3.5]) by barracuda.doc.state.sc.us (Spam Firewall) with ESMTP id D9A0714C81 for ; Wed, 27 Dec 2006 12:18:40 -0500 (EST) X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-ASG-Orig-Subj: RE: Needs help in writing WSDL Subject: RE: Needs help in writing WSDL Date: Wed, 27 Dec 2006 12:18:40 -0500 Message-ID: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Needs help in writing WSDL Thread-Index: AccpwWGPpymvLQq+RzKyhSKb9lvNWAAF/mMg From: "Danny Lin" To: X-Barracuda-Virus-Scanned: by Barracuda Spam Firewall at doc.state.sc.us X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=0.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=1.5 X-Virus-Checked: Checked by ClamAV on apache.org Anne, Thank you for responding to my question. Actually what I want to do is returning a list of matching objects. The schema was generated with a ojp.gov online tool. I used "person" in my previous message just to make it more understandable. I am getting an exception when running wsdl2java. Please see below. What can I do to address the InvocationTargetException? Thank you for your help again. Here is my WSDL snipet based on your suggestion: I am getting a java.lang.reflect.InvocationTargetException when I use the wsdl2java tool. My ant task in build.xml is: Here is the list of trace: Buildfile: C:\workspace\scdc-ws\build.xml init: generate.skeleton: [wsdl2java] Retrieving schema at 'jxdm/3.0.3/jxdm.xsd', relative to 'file:/C:/workspace/scdc-ws/web/META-INF/'. [wsdl2java] Retrieving schema at 'proxy/xsd/1.0/xsd.xsd', relative to 'file:/C:/workspace/scdc-ws/web/META-INF/jxdm/3.0.3/jxdm.xsd'. [wsdl2java] Retrieving schema at '../../../jxdm.xsd', relative to 'file:/C:/workspace/scdc-ws/web/META-INF/jxdm/3.0.3/proxy/xsd/1.0/xsd.xs d'. [wsdl2java] Retrieving schema at 'proxy/census/1.0/census.xsd', relative to 'file:/C:/workspace/scdc-ws/web/META-INF/jxdm/3.0.3/jxdm.xsd'. [wsdl2java] Retrieving schema at '../../../../census/1.0/census.xsd', relative to 'file:/C:/workspace/scdc-ws/web/META-INF/jxdm/3.0.3/proxy/census/1.0/cen sus.xsd'. [wsdl2java] Retrieving schema at '../../../jxdm.xsd', relative to 'file:/C:/workspace/scdc-ws/web/META-INF/jxdm/3.0.3/proxy/census/1.0/cen sus.xsd'. [wsdl2java] Retrieving schema at 'proxy/nibrs_misc/1.0.1/nibrs_misc.xsd', relative to 'file:/C:/workspace/scdc-ws/web/META-INF/jxdm/3.0.3/jxdm.xsd'. [wsdl2java] Retrieving schema at '../../../../nibrs_misc/1.0.1/nibrs_misc.xsd', relative to 'file:/C:/workspace/scdc-ws/web/META-INF/jxdm/3.0.3/proxy/nibrs_misc/1.0 .1/nibrs_misc.xsd'. [wsdl2java] Retrieving schema at '../../../jxdm.xsd', relative to 'file:/C:/workspace/scdc-ws/web/META-INF/jxdm/3.0.3/proxy/nibrs_misc/1.0 .1/nibrs_misc.xsd'. [wsdl2java] Retrieving schema at 'proxy/ncic_2000/1.0.2/ncic_2000.xsd', relative to 'file:/C:/workspace/scdc-ws/web/META-INF/jxdm/3.0.3/jxdm.xsd'. [wsdl2java] Retrieving schema at '../../../../ncic_2000/1.0.2/ncic_2000.xsd', relative to 'file:/C:/workspace/scdc-ws/web/META-INF/jxdm/3.0.3/proxy/ncic_2000/1.0. 2/ncic_2000.xsd'. [wsdl2java] Retrieving schema at '../../../jxdm.xsd', relative to 'file:/C:/workspace/scdc-ws/web/META-INF/jxdm/3.0.3/proxy/ncic_2000/1.0. 2/ncic_2000.xsd'. [wsdl2java] Dec 27, 2006 12:03:26 PM org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity [wsdl2java] INFO: Resolving schema with publicId [http://www.it.ojp.gov/jxdm/3.0.3] and systemId [jxdm/3.0.3/jxdm.xsd] [wsdl2java] Dec 27, 2006 12:03:26 PM org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity [wsdl2java] INFO: Resolving schema with publicId [http://www.it.ojp.gov/jxdm/3.0.3/proxy/nibrs_misc/1.0.1] and systemId [jxdm/3.0.3/proxy/nibrs_misc/1.0.1/nibrs_misc.xsd] [wsdl2java] Dec 27, 2006 12:03:26 PM org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity [wsdl2java] INFO: Resolving schema with publicId [http://www.it.ojp.gov/jxdm/3.0.3/proxy/xsd/1.0] and systemId [jxdm/3.0.3/proxy/xsd/1.0/xsd.xsd] [wsdl2java] Dec 27, 2006 12:03:26 PM org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity [wsdl2java] INFO: Resolving schema with publicId [http://www.it.ojp.gov/jxdm/3.0.3/proxy/ncic_2000/1.0.2] and systemId [jxdm/3.0.3/proxy/ncic_2000/1.0.2/ncic_2000.xsd] [wsdl2java] Dec 27, 2006 12:03:26 PM org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity [wsdl2java] INFO: Resolving schema with publicId [http://www.it.ojp.gov/jxdm/3.0.3/proxy/census/1.0] and systemId [jxdm/3.0.3/proxy/census/1.0/census.xsd] [wsdl2java] Dec 27, 2006 12:03:26 PM org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity [wsdl2java] INFO: Resolving schema with publicId [http://www.it.ojp.gov/jxdm/nibrs_misc/1.0.1] and systemId [jxdm/nibrs_misc/1.0.1/nibrs_misc.xsd] [wsdl2java] Dec 27, 2006 12:03:26 PM org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity [wsdl2java] INFO: Resolving schema with publicId [http://www.it.ojp.gov/jxdm/3.0.3] and systemId [jxdm/3.0.3/jxdm.xsd] [wsdl2java] Dec 27, 2006 12:03:27 PM org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity [wsdl2java] INFO: Resolving schema with publicId [http://www.it.ojp.gov/jxdm/ncic_2000/1.0.2] and systemId [jxdm/ncic_2000/1.0.2/ncic_2000.xsd] [wsdl2java] Dec 27, 2006 12:03:27 PM org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity [wsdl2java] INFO: Resolving schema with publicId [http://www.it.ojp.gov/jxdm/census/1.0] and systemId [jxdm/census/1.0/census.xsd] BUILD FAILED C:\workspace\scdc-ws\build.xml:40: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException -----Original Message----- From: Anne Thomas Manes [mailto:atmanes@gmail.com]=20 Sent: Wednesday, December 27, 2006 9:14 AM To: axis-user@ws.apache.org Subject: Re: Needs help in writing WSDL Danny, Can you provide the schema for ? My assumption (based on this document snipet) is that is defined as an element rather than a type. You need to look into the schema to find out what type you should be returning. e.g.: But given that you have the schema already defined, I recommend that you use the schema elements and types rather than trying to define new ones, e.g.: Anne On 12/26/06, Danny Lin wrote: > > > I have a schema that will validate something like this: > > > John > Middle > Doe > > > > I want to be able to give a last name and receive a list of people=20 > with the same last name. Please see the part of WSDL below in defining > the operations. Can I reference the type in my WSDL this way? > How do I allow a list of to be returned? Am I heading the right direction? > Thanks. > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org