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 put Person.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>

Reply via email to