R
russganz
I have wsdl structure that looks like this
<xsd:complexType name="ReportSpec">
<xsd:sequence>
<xsd:element name="ReportType" type="xsd:int" />
<xsd:element name="parameters" nillable="true"
type="impl:ArrayOf_xsd_string" />
<xsd:element name="fromDate" nillable="true"
type="xsd:dateTime" />
<xsd:element name="toDate" nillable="true"
type="xsd:dateTime" />
</xsd:sequence>
</xsd:complexType>
If I use this code
Dim myReportSpec as new ReportSpec
myReportSpec.parameters(0) = "X"
I am unable to set the parameters value as I always get a error
Object reference not set to an instance of an object.
Use the 'new' keyword
I see that myReportspec.parameters = nothing but I have been unable to
figure out how to initialize the array. How does one do this
<xsd:complexType name="ReportSpec">
<xsd:sequence>
<xsd:element name="ReportType" type="xsd:int" />
<xsd:element name="parameters" nillable="true"
type="impl:ArrayOf_xsd_string" />
<xsd:element name="fromDate" nillable="true"
type="xsd:dateTime" />
<xsd:element name="toDate" nillable="true"
type="xsd:dateTime" />
</xsd:sequence>
</xsd:complexType>
If I use this code
Dim myReportSpec as new ReportSpec
myReportSpec.parameters(0) = "X"
I am unable to set the parameters value as I always get a error
Object reference not set to an instance of an object.
Use the 'new' keyword
I see that myReportspec.parameters = nothing but I have been unable to
figure out how to initialize the array. How does one do this