Thanks Obrand and i appreciate your time. I tried XMLSpy... albeit it generates the XSD, i cannot say it is 100% accurate.... It "Guessed" some of the datatypes incorrectly.... I had to review the XSD completely and make a lot of changes by hand.
One other problem with XMLSpy is that it complains about the SOAP-ENC prefix and also its presence in the generated XSD [even though the XSD was generated by XMLSpy in the first place] with a "name" attribute. Anyway, i am trying to get to know more about schema and might end up writing my own version of the schema. Thanks again, S. --- obrand <[EMAIL PROTECTED]> wrote: > This is something that software such as XML Spy do > well for you. > Personally I do not see Axis doing that for you and > it cannot be fully > automated since XSD contains constraints that cannot > be guessed by the > transformation process... XML to DTD will be easy > but a full blown XML > to Schema is impossible. The Microsoft tool might > just put everything as > Strings.... Try XML-Spy or some other XML editing > tools. > > Olivier > > Seidhi H wrote: > > >Thanks Glen. Really appreciate your time. > >I found one other utility in the .NET platform SDK > >that is interesting..... It is called XSD.exe and > >allows one to generate XSD from XML instances, > apart > >from various other operations. > >Is there a similar functionality in the AXIS/SOAP > >boundaries.... > >Any pointers will be very helpful. > > > >TIA, > >S. > >--- Glen Daniels <[EMAIL PROTECTED]> wrote: > > > >>Axis has an XML<->Java databinding framework which > >>is still evolving and > >>doesn't really support all that much yet. > >>Essentially we have metadata > >>associated with your Java class which tells the > >>runtime how to map fields to > >>and from XML elements and attributes. Eventually > >>I'd like to see us get to the > >>point where we can use the XML->Java and Java->XML > >>code outside the context of > >>SOAP invocations, and that would include tools > like > >>Java2XML and XML2Java. > >>There are other toolkits which do this kind of > thing > >>now, such as Castor, and > >>the upcoming JAXB specification from Sun is also > in > >>this space. > >> > >>--Glen > >> > >>----- Original Message ----- > >>From: "seidhi Help" <[EMAIL PROTECTED]> > >>To: "auser" <[EMAIL PROTECTED]>; "adev" > >><[EMAIL PROTECTED]> > >>Sent: Thursday, April 04, 2002 4:07 PM > >>Subject: Any JAVA2XSD or JAVA2Schema ???? > >> > >> > >>>Hi, > >>>How does the AXIS FW/tool validate the SOAP/XML > >>>payload that it receives from a client. I would > >>> > >>guess > >> > >>>there is some sort of "schema" or "DTD"[i doubt > >>> > >>so] > >> > >>>that is associated with the xml data that is sent > >>>across the wire. Or is it just the > >>> > >>"well-formed"ness > >> > >>>that would suffice. > >>> > >>>Is there a way to retrieve the schema information > >>> > >>for > >> > >>>the XML payload, if it is generated at all. > >>> > >>>If not, is there a JAVA2XSD or JAVA2Schema type > >>> > >>util > >> > >>>just like JAVA2WSDL.....??? > >>>Any input is greatly appreciated... > >>> > >>>Thank you very much, > >>>S. > >>> > >>>__________________________________________________ > >>>Do You Yahoo!? > >>>Yahoo! Tax Center - online filing with TurboTax > >>>http://taxes.yahoo.com/ > >>> > > > > > >__________________________________________________ > >Do You Yahoo!? > >Yahoo! Tax Center - online filing with TurboTax > >http://taxes.yahoo.com/ > > > > __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/