axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Seifert <eseif...@waca.com>
Subject RE: Another question
Date Wed, 25 Feb 2004 22:45:21 GMT
Oops... Sorry about that. Will do. Thanks.

-----Original Message-----
From: Eric.D.Friedman@wellsfargo.com
[mailto:Eric.D.Friedman@wellsfargo.com]
Sent: Wednesday, February 25, 2004 5:36 PM
To: axis-dev@ws.apache.org
Subject: RE: Another question


Could you please move this to the axis-user list.  This list is for
development issues only.

Thanks,
Eric Friedman

-----Original Message-----
From: Eric Seifert [mailto:eseifert@waca.com]
Sent: Wednesday, February 25, 2004 2:33 PM
To: 'axis-dev@ws.apache.org'
Subject: RE: Another question


One last question,
why doesn't the WSDL2Java emitter know when there can be multiple
occurrences of an element in the xsd? For instance I have an xsd as listed
below. The CUSTOMER tag has the maxoccurs set to unbounded. Does the emitter
not know what that means or is there a different setting that needs to be
there? The class that was generated to handle the ENVELOPE type has the
ability to only handle one occurance of CUSTOMER. Seems like the customer
type in the envelope class should've been an array with an iterater to walk
through the customer elements but it's not that way. Any help is
appreciated. Thanks.

<?xml version="1.0" encoding="utf-8"?>
<xs:schema targetNamespace="http://tempuri.org/WSData.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:mstns="http://tempuri.org/WSData.xsd"
xmlns="http://tempuri.org/WSData.xsd"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
elementFormDefault="qualified" id="WSData">
	<xs:element name="ENVELOPE" msdata:IsDataSet="true">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="CUSTOMER"
maxOccurs="unbounded">
					<xs:complexType>
						<xs:sequence>
							<xs:element
name="FIRSTNAME" type="xs:string"/>
							<xs:element
name="LASTNAME" type="xs:string"/>
							<xs:element
name="ADDRESS1" type="xs:string"/>
							<xs:element
name="ADDRESS2" type="xs:string"/>
							<xs:element
name="ADDRESS3" type="xs:string"/>
							<xs:element
name="CITY" type="xs:string"/>
							<xs:element
name="STATE" type="xs:string"/>
							<xs:element
name="ZIPCODE" type="xs:string"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>

-----Original Message-----
From: Barbara Samson [mailto:bsamson@cisco.com]
Sent: Wednesday, February 25, 2004 3:46 PM
To: axis-dev@ws.apache.org
Subject: RE: Another question


Eric:

You would need to import the xsd into a wsdl file. The Java
stub/skeleton and other supporting classes get generated from the wsdl.
To import the schema into the wsdl, you could (for example) have it in
the same directory as the wsdl. Then use
<import namespace="schema-target-namespace"
location="schema-file-name"/>.

Then you need an Ant build file set up to call wsdl2java with the
appropriate arguments. There are many great examples of how to do this
in $AXIS_HOME/test/wsdl. I have been working on it for the past few
days, using test/wsdl/wrapped_inout as a template.

Barbara

-----Original Message-----
From: Eric Seifert [mailto:eseifert@waca.com] 
Sent: Wednesday, February 25, 2004 12:02 PM
To: axis-dev@ws.apache.org
Subject: Another question


How would I take an xsd and create a java stub class with it?

Mime
View raw message