alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Apache CXF example source code file (anyschema.xsd)

This example Apache CXF source code file (anyschema.xsd) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Apache CXF tags/keywords

npe's, npe's, utf-8, utf-8, wsdl, wsdl, yes, yes

The Apache CXF anyschema.xsd source code

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	attributeFormDefault="qualified" elementFormDefault="qualified"
	targetNamespace="http://cxf.apache.org/xmlbeans">

    <!--
        Yes, this is a very obtuse type, the point is to have inner types
        without names - this caused NPE's on WSDL generation at one point
    -->
    <xsd:element name="trouble">
        <xsd:complexType>
            <xsd:all>
                <xsd:element name="inner">
                    <xsd:complexType>
                        <xsd:all>
                            <xsd:element name="wombat">
                                <xsd:simpleType>
                                    <xsd:restriction base="xsd:string">
                                        <xsd:enumeration value="joe"/>
                                        <xsd:enumeration value="bob"/>
                                    </xsd:restriction>
                                </xsd:simpleType>
                            </xsd:element>
                        </xsd:all>
                    </xsd:complexType>
                </xsd:element>
            </xsd:all>
        </xsd:complexType>
    </xsd:element>

    <xsd:element name="request">
		<xsd:complexType>
			<xsd:all>
				<xsd:element maxOccurs="1" minOccurs="1"
					name="sessionId" type="xsd:string" />
			</xsd:all>
		</xsd:complexType>
	</xsd:element>

	<xsd:element name="response">
		<xsd:complexType>
			<xsd:all>
				<xsd:element maxOccurs="1" minOccurs="1" name="form"
					type="xsd:anyType" />
			</xsd:all>
		</xsd:complexType>
	</xsd:element>
</xsd:schema>

Other Apache CXF examples (source code examples)

Here is a short list of links related to this Apache CXF anyschema.xsd source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.