Service XSD
A service XSD schema has the following basic structure:
-
Namespace declarations
-
Imports and includes the specifications of XSDs on which this schema definition has dependencies
-
Definition of the elements of the request and response payloads for synchronous and asynchronous versions of all the service operationsNote: The element names start with the operation names. The suffix determines whether the payload is a request or a response, and whether the payload elements are synchronous or asynchronous.
SalesLeadService.xsd
.<?xml version="1.0" encoding="UTF-8" ?>
<schema elementFormDefault="qualified"
targetNamespace="http://xmlns.oracle.com/apps/marketing/leadMgmt/leads/leadService/types/"
xmlns:ns0="http://xmlns.oracle.com/apps/sales/leadMgmt/leads/leadService/"
xmlns:ns1="http://xmlns.oracle.com/apps/apps/marketing/leadMgmt/leads/leadService/"
xmlns:ns2="http://xmlns.oracle.com/adf/svc/types/"
xmlns:tns="http://xmlns.oracle.com/apps/marketing/leadMgmt/leads/leadService/types/"
xmlns="http://www.w3.org/2001/XMLSchema"
<import namespace="http://xmlns.oracle.com/adf/svc/types/"
schemaLocation="https://crm-your-cloud-hostname:port/mklLeads/SalesLeadService?XSD=/META-INF/wsdl/BC4JService.xsd"/>
<import namespace="http://xmlns.oracle.com/oracle/apps/marketing/leadMgmt/leads/leadService/"
schemaLocation="https://crm-your-cloud-hostname:port/mklLeads/SalesLeadService?XSD=/oracle/apps/marketing/leadMgmt/leads/leadService/MklLead.xsd"/>
<import namespace="http://xmlns.oracle.com/apps/marketing/leadMgmt/leads/leadService/"
schemaLocation="https://crm-your-cloud-hostname:port/mklLeads/SalesLeadService?XSD=/oracle/apps/marketing/leadMgmt/leads/leadService/MklLeadResources.xsd"/>
<import namespace="http://xmlns.oracle.com/apps/marketing/leadMgmt/leads/leadService/"
schemaLocation="https://crm-your-cloud-hostname:port/mklLeads/SalesLeadService?XSD=/oracle/apps/marketing/leadMgmt/leads/leadService/MklProdAssoc.xsd"/>
<import namespace="http://xmlns.oracle.com/apps/marketing/leadMgmt/leads/leadService/"
schemaLocation="https://crm-your-cloud-hostname:port/mklLeads/SalesLeadService?XSD=/oracle/apps/marketing/leadMgmt/leads/leadService/MklLeadTcMembers.xsd"/>
...
<element name="getSalesLead">
<complexType>
<sequence>
<element name="leadId" type="long"/>
</sequence>
</complexType>
</element>
<element name="getSalesLeadResponse">
<complexType>
<sequence>
<element name="result" type="ns1:MlkLead"/>
</sequence>
</complexType>
</element>
...
<element name="getSalesLeadAsync">
<complexType>
<sequence>
<element name="LeadId" type="long"/>
</sequence>
</complexType>
</element>
<element name="getSalesLeadAsyncResponse">
<complexType>
<sequence>
<element name="result" type="ns1:MklLead"/>
</sequence>
</complexType>
</element>
...
</schema>
For more information about XML Schema specification, refer to http://www.w3.org/XML/Schema.html.