So, I am pretty new to XML in general, and am confused about the whole style sheet concept. First, I have been using 'org.apache.xmlrpc.client.XmlRpcClient' to send XML requests, but have been given specific XML functions with the arguments that the XML functions are expecting. Now, all I have are many XML style sheets and am trying to get a feel for how to understand the format of the xsd. For example, I have:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="archer.xsd"/>
<xs:element name="CreateNDTicket">
<xs:complexType>
<xs:sequence>
<xs:element name="Request">
<xs:complexType>
<xs:sequence>
<xs:element name="RequestHeader" type="RequestHeaderType"/>
<xs:element name="RequestBody">
<xs:complexType>
<xs:sequence>
<xs:element name="CreateCriteria">
<xs:complexType>
<xs:sequence>
<xs:element name="SystemId" type="xs:string"/>
<xs:element name="IndicatorCity" type="xs:string"/>
<xs:element name="IndicatorState" type="xs:string"/>
<xs:element name="AlarmStart" type="DateTimeType"/>
<xs:element name="AttributeList" type="AttributeListType"/>
<xs:element name="ContactInformation" type="ContactInformationType"/>
<xs:element name="NextAction" type="xs:string" minOccurs="0"/>
<xs:element name="ProblemCode" type="xs:string"/>
<xs:element name="Source" type="xs:string"/>
<xs:element name="SourceReference" type="xs:string"/>
<xs:element name="ServiceAffected" type="xs:boolean"/>
<xs:element name="Worklog" type="WorklogType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Response" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="ResponseHeader" type="ResponseHeaderType"/>
<xs:element name="ResponseBody" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="TicketId" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Does this mean there is a function called CreateNDTicket that is expecting the arguments SystemId, IndicatorCity, ... , Worklog (variable types defined by xs:string/boolean etc)? Or does it mean there is a function called CreateNDTicket that is expecting an array that starts with 'Request' and contains another array with 'RequestHeader' which contains another array 'RequestBody' etc? Or, am I way off?
I know that types like 'DateTimeType' are defined in the included archer.xsd file.
Thanks.