Which type definition can be used to define an array of longs?

A developer needs to define an array of long integers in their Basic Profile compliant Web service and is given the following code fragment for analysis:
<Schema targetNamespace="http://sun.cert/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas/xmlsoap.org/wsdl">
<!– insert code here –>
</schema>
Assume all XML fragments are well-formed.According to the WS-I Basic Profile 1.1, which type definition can be used to define an array of longs?
A. <xsd:complexType name="longArray">
<xsd:array>
<xsd:element name="item" type="xsd:long"/>
</xsd:array>
</xsd:complexType>
B. <xsd:complexType name="longArray">
<xsd:sequence>
<element name="item" type="xsd:long"/>
</xsd:sequence>
</xsd:complexType>
C. <xsd:complexType name="longArray">
<xsd:array>
<xsd:element name="item" type="xsd:long" minOccurs="0" maxOccurs="unbounded"/> </xsd:array>
</xsd:complexType>
D. <xsd:complexType name="longArray">
<xsd:sequence>
<xsd:element name="item" minOccurs="0" maxOccurs="5" type="xsd:long"/> </xsd:sequence>
</xsd:complexType>
E. <xsd:complexType name="longArray">
<xsd:sequence>
<xsd:element name="item" minOccurs="0" maxOccurs="5" type="xsd:integer"/> </xsd:sequence>
</xsd:complexType>

Download Printable PDF. VALID exam to help you PASS.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.