So, I am pretty new to XML in general, and am confused about the whole style sheet concept. First, I have been using 'RPC::XML::Client' to send XML requests, but have been given specific XML classes/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:

<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefa +ult="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="Req +uestHeaderType"/> <xs:element name="RequestBody"> <xs:complexType> <xs:sequence> <xs:element name="CreateCriter +ia"> <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="Re +sponseHeaderType"/> <xs:element name="ResponseBody" minOccurs= +"0"> <xs:complexType> <xs:sequence> <xs:element name="TicketId" ty +pe="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.

In reply to XML xds To RPC::XML::Client call by true_atlantis

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.