I am not 100% sure whether our code generator can generate code from XML schema since it does not have the binding. Because, having a schema simply means a collection of data types. Thus, there should be a way to associate them (such as WSDL binding). Best approach would be to create a WSDL and generate code.
On 11/13/2011 6:15 PM, S P wrote: > I want to generate a web service. What I have at the moment is an XML > Schema (Person.xsd). > Using the web service user should able to upload their information as > described in XML Schema to the Server. > > I want to take your advice how can I develop such a web service using > Axis2. > > I have following technologies available: > Axis2. > Java. > Eclipse. > Code generation Plugin. > Service Archiver Plugin. > > I have just putPerson.xsd at the end of this e-mail. > > Regards, > Peter > > <?xml version="1.0" encoding="UTF-8"?> > <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" > elementFormDefault="qualified"> > <xs:element name="Person"> > <xs:complexType> > <xs:sequence> > <xs:element name="Student"> > <xs:complexType> > <xs:sequence> > <xs:element name="FirstName" > type="xs:string"/> > <xs:element name="DateOfBirth" > type="xs:date"/> > </xs:sequence> > <xs:attribute name="surname" type="xs:string"/> > </xs:complexType> > </xs:element> > <xs:element name="Employed"> > <xs:complexType> > <xs:attribute name="surname" type="xs:string"/> > </xs:complexType> > </xs:element> > <xs:element name="Unemployed"> > <xs:complexType> > <xs:attribute name="surname" type="xs:string"/> > </xs:complexType> > </xs:element> > </xs:sequence> > </xs:complexType> > </xs:element> > </xs:schema> -- Blog - http://blogs.deepal.org/