PL/SQL Web Service Schema Validation
(Doc ID 756200.1)
Last updated on JULY 08, 2024
Applies to:
Web Services - Version 10.1.3.1.0 to 10.1.3.3.0 [Release Oracle10g]Information in this document applies to any platform.
Information in this document applies to any platform.
Goal
You have developed a web service from a PL/SQL package using JDeveloper 10.1.3.3.0
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 (10.1.3.1.0)
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"/>
</message>
<operation name="getXmltype" parameterOrder="BigDecimal_1">
<input message="tns:Echo_getXmltype"/>
<output message="tns:Echo_getXmltypeResponse"/>
</operation>
WebServicesAssembler generates a proxy that maps XML any to the Java type org.w3c.org.dom.Element. Therefore, a Java client accesses a SQL XMLType instance as an Element instance.
10g (10.1.3.1.0)
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"/>
</message>
<operation name="getXmltype" parameterOrder="BigDecimal_1">
<input message="tns:Echo_getXmltype"/>
<output message="tns:Echo_getXmltypeResponse"/>
</operation>
WebServicesAssembler generates a proxy that maps XML any to the Java type org.w3c.org.dom.Element. 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 ?
Solution
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
Goal |
Solution |