My Oracle Support Banner

PL/SQL Web Service Schema Validation (Doc ID 756200.1)

Last updated on JUNE 29, 2023

Applies to:

Web Services - Version to [Release Oracle10g]
Information in this document applies to any platform.
Information in this document applies to any platform.


You have developed a web service from a PL/SQL package using JDeveloper
The generated method has an input XMLType parameter.  The generated java class has a method which has a parameter of type 'org.w3c.dom.Element'.  The following documents this process:  

Oracle® Application Server Web Services Developer's Guide
10g (
Part Number B28974-01

How to Access SQL XMLType Types from Client Code
The SQL XMLType in Example 10-1 is mapped into the XML any type. The getXmltype operation in the WSDL fragment in Example 10-6 illustrates this mapping.

Example 10-6 WSDL Fragment, Illustrating the Mapping of SQL XMLType into text_xml

<message name="Echo_getXmltypeResponse">
<part name="result" type="ns2:any"/>
<operation name="getXmltype" parameterOrder="BigDecimal_1">
<input message="tns:Echo_getXmltype"/>
<output message="tns:Echo_getXmltypeResponse"/>

WebServicesAssembler generates a proxy that maps XML any to the Java type Therefore, a Java client accesses a SQL XMLType instance as an Element instance. 

You would like to perform schema validation of the SOAP XML message against the XSD schema.

 Can this be done at runtime ?


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.