Apparently I can't send the schema to you via an attachment. Is there another way I can send or upload the schema?
Susan Anderson/Denver/[EMAIL PROTECTED] 07/05/2005 03:20 PM Please respond to user To [email protected] cc Subject Re: AW: [castor-user] [XML] Missing methods in generated class Werner, We call the source generator using: $(JDKDIR)/java -cp $(CLASSPATH) org.exolab.castor.builder.SourceGenerator -i $(SCHEMA) -package sentry.config -f I have tried this using our old version of xerces (xerces.jar version 1.4.4) and the newer xerces (xml-apis.jar and xercesImpl.jar version 2.6.2) with the same result. Since the schema hasn't changed, the only other variable is castor. Perhaps I missed a configuration step somewhere? Here is my schema. I very much appreciate your time in trying to help me. Susan Werner Guttmann <[EMAIL PROTECTED]> 07/02/2005 03:44 AM Please respond to user To [email protected] cc Subject Re: AW: [castor-user] [XML] Missing methods in generated class Susan, as the XML Schema fragment you posted didn't include type definitions for any of the types references in your element definition below, I changed them to be of type "xsd:string". But I am almost 100% sure that this should not have any impact wrt your problem. How are you actually calling the source code generator ? Are you using the (recently added) Ant task definition from within Ant ? Other than this, I can only offer that you send me your complete XML Schema instance (if that's an option to you), and I'll have a look. Regards Werner Susan Anderson wrote: > Thanks, Werner. I appreciate your looking at this. Is there any chance > that the slight modification you made changed the behavior? I guess I'm > just looking for anything that will help me figure out why this isn't > working for me. > > Susan > > > > > > "Werner Guttmann" <[EMAIL PROTECTED]> > 07/01/2005 01:48 AM > Please respond to > user > > > To > <[email protected]> > cc > > Subject > AW: [castor-user] [XML] Missing methods in generated class > > > > > > > Susan, > > I just ran a slightly modified version of your XML Schema instance > fragment through the source generator, and the WebServiceMonitor class > generated carried the following methods: > > public org.exolab.castor.test.WebServiceMonitorChoice > getWebServiceMonitorChoice() > { > return this._webServiceMonitorChoice; > } //-- org.exolab.castor.test.WebServiceMonitorChoice > getWebServiceMonitorChoice() > > > and > > public void > setWebServiceMonitorChoice(org.exolab.castor.test.WebServiceMonitorChoice > webServiceMonitorChoice) > { > this._webServiceMonitorChoice = webServiceMonitorChoice; > } //-- void > setWebServiceMonitorChoice(org.exolab.castor.test.WebServiceMonitorChoice) > > > In other words, I am not able to reproduce your problems. > > Werner > > -----Ursprüngliche Nachricht----- > Von: Susan Anderson [mailto:[EMAIL PROTECTED] > Gesendet: Do 30.06.2005 23:29 > An: [email protected] > Cc: > Betreff: [castor-user] [XML] Missing methods in generated > class > > > > I am trying to upgrade from castor 0.9.3 to 0.9.6 (or > 9.7). I am finding > that castor is not creating all of the methods in the > generated java > classes in 0.9.6 that it generated in 0.9.3. > > My schema contains: > > <xsd:element name="web-service-monitor"> > <xsd:complexType> > <xsd:complexContent> > <xsd:extension base="task"> > <xsd:sequence> > <xsd:choice > > <xsd:element name="direct" type="url" > maxOccurs="unbounded" /> > <xsd:element name="uddi" > > <xsd:complexType> > <xsd:sequence> > <xsd:element name="url" type="url"/> > <xsd:element name="business-key" > type="xsd:string"/> > <xsd:element name="service-name" > type="xsd:string"/> > </xsd:sequence> > </xsd:complexType> > </xsd:element> > </xsd:choice> > <xsd:element name="proxy" minOccurs="0"> > <xsd:complexType> > <xsd:sequence> > <xsd:element name="host" > type="xsd:string"/> > <xsd:element name="port" > type="xsd:positiveInteger"/> > </xsd:sequence> > </xsd:complexType> > </xsd:element> > <xsd:element name="soap-action" > type="xsd:string" > minOccurs="0"/> > <xsd:element name="soap-request" > type="xsd:string" > minOccurs="0"/> > <xsd:element name="pattern" > type="regex-pattern" minOccurs="0"/> > <xsd:element name="timeout" type="timeout" > minOccurs="0" > default="10"/> > <xsd:element ref="credentials" minOccurs="0"/> > <xsd:element name="custom-request-header" > type="xsd:string" > minOccurs="0" maxOccurs="unbounded"/> > </xsd:sequence> > </xsd:extension> > </xsd:complexContent> > </xsd:complexType> > </xsd:element> > > From this castor creates a class called WebServiceMonitor > that should > contain a method called getWebServiceMonitorChoice(). > This method is not > created in 0.9.6 or 0.9.7. There should also be a > setWebServiceMonitorChoice(x) method. > > Any ideas on what I am missing? > > Thanks! > > Susan > > > > ------------------------------------------------- > If you wish to unsubscribe from this list, please > send an empty message to the following address: > > [EMAIL PROTECTED] > ------------------------------------------------- > > > > ------------------------------------------------- > If you wish to unsubscribe from this list, please > send an empty message to the following address: > > [EMAIL PROTECTED] > ------------------------------------------------- > > > ------------------------------------------------- > If you wish to unsubscribe from this list, please > send an empty message to the following address: > > [EMAIL PROTECTED] > ------------------------------------------------- > > ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] ------------------------------------------------- ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] ------------------------------------------------- ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] -------------------------------------------------

