You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Danny Lin <Li...@doc.state.sc.us> on 2006/12/27 18:36:44 UTC
FW: Needs help in writing WSDL
Please see the description of the error below. I got an
InvocationTargetException when using XMLBeans as the binding method. If
I change it to adb it passes. Could this be a bug in XMLBeans? Or in
wsdl2java?
Thanks.
Danny
-----Original Message-----
From: Danny Lin [mailto:Lin.Danny@doc.state.sc.us]
Sent: Wednesday, December 27, 2006 12:19 PM
To: axis-user@ws.apache.org
Subject: RE: Needs help in writing WSDL
Anne,
Thank you for responding to my question. Actually what I want to do is
returning a list of matching <j:ConvictionSubject> 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:
<wsdl:definitions xmlns:axis2="http://doc.state.sc.us/"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:scdc="http://doc.state.sc.us/xsd"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:j="http://www.it.ojp.gov/jxdm/3.0.3"
targetNamespace="http://doc.state.sc.us/">
<wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://doc.state.sc.us/xsd">
<xsd:import namespace="http://www.it.ojp.gov/jxdm/3.0.3"
schemaLocation="jxdm/3.0.3/jxdm.xsd" />
<xsd:element name="getInmateList">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="j:PersonSurName" minOccurs="0"
maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="getInmateListResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="return" nillable="true"
maxOccurs="unbounded"/>
<xsd:complexType>
<xsd:sequence>
<xsd:element
ref="j:ConvictionSubject"/>
</xsd:sequence>
</xsd:complexType>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
I am getting a java.lang.reflect.InvocationTargetException when I use
the wsdl2java tool. My ant task in build.xml is:
<target name="generate.skeleton" depends="init">
<taskdef name="wsdl2java"
classname="org.apache.axis2.tool.ant.AntCodegenTask"
classpathref="axis2.classpath"/>
<wsdl2java
wsdlFilename="${basedir}/web/META-INF/InmateMatchService.wsdl"
output="${build.dir}/service"
packageName="us.sc.state.doc.ws"
language="java"
databindingName="xmlbeans"
synconly="true"
serverside="true"
serverSideInterface="true"
namespaceToPackages="http://doc.state.sc.us/xsd=us.sc.state.doc.ws.xsd"
generateservicexml="true"/>
<copy todir="${src.dir}">
<fileset dir="${build.dir}/service/src"/>
</copy>
</target>
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]
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 <j:Person>? My assumption (based on this
document snipet) is that <j:Person> 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.:
<x:element name="Person" type="the-type-name">
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.:
<xs:element name="getNameList">
<xs:complexType>
<xs:sequence>
<xs:element ref="j:PersonSurName" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="getNameListResponse">
<xs:complexType>
<xs:sequence>
<xs:element name="return" nillable="true"
maxOccurs="unbounded"/>
<xs:complexType>
<xs:sequence>
<xs:element ref="j:Person" />
<!-- alternatively define return element as
same type as "Person" element-->
</xs:sequence>
</xs:complexType>
</xs:sequence>
</xs:complexType>
</xs:element>
Anne
On 12/26/06, Danny Lin <Li...@doc.state.sc.us> wrote:
>
>
> I have a schema that will validate something like this:
> <j:Person>
> <j:PersonName j:personNameCommentText="">
> <j:PersonGivenName>John</j:PersonGivenName>
> <j:PersonMiddleName>Middle</j:PersonMiddleName>
> <j:PersonSurName>Doe</j:PersonSurName>
> </j:PersonName>
> </j:Person>
>
> I want to be able to give a last name and receive a list of people
> with the same last name. Please see the part of WSDL below in defining
> the operations. Can I reference the <Person> type in my WSDL this way?
> How do I allow a list of <Person> to be returned? Am I heading the
right direction?
> Thanks.
>
> <xs:element name="getNameList">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="lastName" nillable="false"
type="xs:string" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="getNameListResponse">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="return" nillable="true" type="j:Person"
/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
>
>
>
>
---------------------------------------------------------------------
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
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
Re: FW: Needs help in writing WSDL
Posted by Anne Thomas Manes <at...@gmail.com>.
I'm thinking it must be a problem with xmlbeans.
On 12/27/06, Danny Lin <Li...@doc.state.sc.us> wrote:
> Please see the description of the error below. I got an
> InvocationTargetException when using XMLBeans as the binding method. If
> I change it to adb it passes. Could this be a bug in XMLBeans? Or in
> wsdl2java?
>
> Thanks.
>
> Danny
>
>
> -----Original Message-----
> From: Danny Lin [mailto:Lin.Danny@doc.state.sc.us]
> Sent: Wednesday, December 27, 2006 12:19 PM
> To: axis-user@ws.apache.org
> Subject: RE: Needs help in writing WSDL
>
> Anne,
>
> Thank you for responding to my question. Actually what I want to do is
> returning a list of matching <j:ConvictionSubject> 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:
>
> <wsdl:definitions xmlns:axis2="http://doc.state.sc.us/"
> xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
> xmlns:scdc="http://doc.state.sc.us/xsd"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:j="http://www.it.ojp.gov/jxdm/3.0.3"
> targetNamespace="http://doc.state.sc.us/">
> <wsdl:types>
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> attributeFormDefault="qualified" elementFormDefault="qualified"
> targetNamespace="http://doc.state.sc.us/xsd">
> <xsd:import namespace="http://www.it.ojp.gov/jxdm/3.0.3"
> schemaLocation="jxdm/3.0.3/jxdm.xsd" />
> <xsd:element name="getInmateList">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element ref="j:PersonSurName" minOccurs="0"
> maxOccurs="1"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="getInmateListResponse">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="return" nillable="true"
> maxOccurs="unbounded"/>
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element
> ref="j:ConvictionSubject"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> </xsd:schema>
> </wsdl:types>
>
> I am getting a java.lang.reflect.InvocationTargetException when I use
> the wsdl2java tool. My ant task in build.xml is:
>
> <target name="generate.skeleton" depends="init">
> <taskdef name="wsdl2java"
> classname="org.apache.axis2.tool.ant.AntCodegenTask"
> classpathref="axis2.classpath"/>
> <wsdl2java
> wsdlFilename="${basedir}/web/META-INF/InmateMatchService.wsdl"
> output="${build.dir}/service"
> packageName="us.sc.state.doc.ws"
> language="java"
> databindingName="xmlbeans"
> synconly="true"
> serverside="true"
> serverSideInterface="true"
>
> namespaceToPackages="http://doc.state.sc.us/xsd=us.sc.state.doc.ws.xsd"
> generateservicexml="true"/>
> <copy todir="${src.dir}">
> <fileset dir="${build.dir}/service/src"/>
> </copy>
> </target>
>
> 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]
> 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 <j:Person>? My assumption (based on this
> document snipet) is that <j:Person> 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.:
>
> <x:element name="Person" type="the-type-name">
>
> 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.:
>
> <xs:element name="getNameList">
> <xs:complexType>
> <xs:sequence>
> <xs:element ref="j:PersonSurName" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="getNameListResponse">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="return" nillable="true"
> maxOccurs="unbounded"/>
> <xs:complexType>
> <xs:sequence>
> <xs:element ref="j:Person" />
> <!-- alternatively define return element as
> same type as "Person" element-->
> </xs:sequence>
> </xs:complexType>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
>
> Anne
>
> On 12/26/06, Danny Lin <Li...@doc.state.sc.us> wrote:
> >
> >
> > I have a schema that will validate something like this:
> > <j:Person>
> > <j:PersonName j:personNameCommentText="">
> > <j:PersonGivenName>John</j:PersonGivenName>
> > <j:PersonMiddleName>Middle</j:PersonMiddleName>
> > <j:PersonSurName>Doe</j:PersonSurName>
> > </j:PersonName>
> > </j:Person>
> >
> > I want to be able to give a last name and receive a list of people
> > with the same last name. Please see the part of WSDL below in defining
>
> > the operations. Can I reference the <Person> type in my WSDL this way?
>
> > How do I allow a list of <Person> to be returned? Am I heading the
> right direction?
> > Thanks.
> >
> > <xs:element name="getNameList">
> > <xs:complexType>
> > <xs:sequence>
> > <xs:element name="lastName" nillable="false"
> type="xs:string" />
> > </xs:sequence>
> > </xs:complexType>
> > </xs:element>
> > <xs:element name="getNameListResponse">
> > <xs:complexType>
> > <xs:sequence>
> > <xs:element name="return" nillable="true" type="j:Person"
> />
> > </xs:sequence>
> > </xs:complexType>
> > </xs:element>
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> 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
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org