具体描述请访问地:http://www.cnblogs.com/dreamof/archive/2010/08/31/1813534.html
最近,由于业务需求,项目需要调用其他单位提供的接口来同步数据,对方提供的接口是java开发的WebService,返回的数据是二维数组。我们的项目是05年开发的.net1.1版本,在调用对方接口获取返回的二维数组数据时,提示“XML 文档(1, 378)中有错误”。经测试无论在哪个框架下添加引用对方服务时,生成的CS文件返回的都是一维数组,而并非二维数组,在.net2.0以上版本,强制性修改CS文件的方法来返回二维数组可以得到对方的数据,但在.net1.1版本,强制性修改CS文件的方法来返回二维数组时就提示“XML 文档(1, 378)中有错误”。上google搜索该问题,部分网友说.net1.1调用WebService不支持二维数组,不知道是否真是这样,如果支持二维数组,请问各位园友这个问题如何解决?期待园友的解答,谢谢!
具体描述请访问地址:http://www.cnblogs.com/dreamof/archive/2010/08/31/1813534.html
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://register.webservice.hnisi.com.cn" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://register.webservice.hnisi.com.cn" xmlns:intf="http://register.webservice.hnisi.com.cn" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)-->
<wsdl:types>
<schema targetNamespace="http://register.webservice.hnisi.com.cn" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="ArrayOfString2D">
<complexContent>
<restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[][]"/>
</restriction>
</complexContent>
</complexType>
</schema>
</wsdl:types>
<wsdl:message name="registerRequest">
<wsdl:part name="userID" type="soapenc:string"/>
<wsdl:part name="password" type="soapenc:string"/>
<wsdl:part name="citizenInfos" type="impl:ArrayOfString2D"/>
</wsdl:message>
<wsdl:message name="findRegisterQuotaResponse">
<wsdl:part name="FindRegisterQuotaReturn" type="impl:ArrayOfString2D"/>
</wsdl:message>
<wsdl:message name="findRegisterQuotaRequest">
<wsdl:part name="userID" type="soapenc:string"/>
<wsdl:part name="password" type="soapenc:string"/>
<wsdl:part name="annual" type="soapenc:string"/>
<wsdl:part name="departmentCode" type="soapenc:string"/>
</wsdl:message>
<wsdl:message name="registerResponse">
<wsdl:part name="RegisterReturn" type="impl:ArrayOfString2D"/>
</wsdl:message>
<wsdl:portType name="RegisterService">
<wsdl:operation name="register" parameterOrder="userID password citizenInfos">
<wsdl:input message="impl:registerRequest" name="registerRequest"/>
<wsdl:output message="impl:registerResponse" name="registerResponse"/>
</wsdl:operation>
<wsdl:operation name="findRegisterQuota" parameterOrder="userID password annual departmentCode">
<wsdl:input message="impl:findRegisterQuotaRequest" name="findRegisterQuotaRequest"/>
<wsdl:output message="impl:findRegisterQuotaResponse" name="findRegisterQuotaResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="RegisterServiceSoapBinding" type="impl:RegisterService">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="register">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="registerRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://register.webservice.hnisi.com.cn" use="encoded"/>
</wsdl:input>
<wsdl:output name="registerResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://register.webservice.hnisi.com.cn" use="encoded"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="findRegisterQuota">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="findRegisterQuotaRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://register.webservice.hnisi.com.cn" use="encoded"/>
</wsdl:input>
<wsdl:output name="findRegisterQuotaResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://register.webservice.hnisi.com.cn" use="encoded"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="RegisterService">
<wsdl:port binding="impl:RegisterServiceSoapBinding" name="RegisterService">
<wsdlsoap:address location="http://172.16.70.40:7001/rhsh/services/RegisterService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
修改后的代码如下:
//string uri = "http://172.16.70.40:7001/rhsh/services/RegisterService"; //修改前,原因:此地址无法访问
string uri = "http://172.16.70.40:7001/rhsh/services/RegisterService?wsdl"; //修改后
HttpWebRequest hwRequest = (HttpWebRequest)WebRequest.Create(uri);
// 下面这些的参数,以及不包括在这里的参数,也就是
// HTTP Headers 中包含的参数的具体值需要根据对方
// 服务器的设置而定。
hwRequest.Method = "POST";
hwRequest.ContentType = "text/xml;charset=UTF-8";
hwRequest.Headers.Add("SOAPAction", "*"); // 不知道,假装不知道。
hwRequest.UserAgent = "Jakarta Commons-HttpClient/3.1";
//hwRequest.Host = "register.webservice.hnisi.com.cn"; //没有Host的属性
hwRequest.Timeout = 1000 * 60 * 3;
hwRequest.KeepAlive = false;
// 对方是 Apache
hwRequest.ServicePoint.Expect100Continue = false;
// 从 FindRegisterRequest.xml 读取请求数据。
// 因为我们需要修改请求中的一些参数,也就是输入参数,
// 因此,我们使用 XmlDocument 来简化操作。
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load("RegisterService.xml"); //报错,提示找不到文件RegisterService.xml
XmlNode userIDNode = xmlDoc.GetElementsByTagName("userID")[0];
userIDNode.InnerText = "test1";
XmlNode pwdNode = xmlDoc.GetElementsByTagName("password")[0];
pwdNode.InnerText = "2222";
XmlNode annualNode = xmlDoc.GetElementsByTagName("annual")[0];
annualNode.InnerText = "2010";
XmlNode depCodeNode = xmlDoc.GetElementsByTagName("departmentCode")[0];
depCodeNode.InnerText = "S44010300";
byte[] sendBuffer = Encoding.UTF8.GetBytes(xmlDoc.OuterXml);
hwRequest.ContentLength = sendBuffer.Length;
// 写 POST 数据
using (Stream reqStream = hwRequest.GetRequestStream())
reqStream.Write(sendBuffer, 0, sendBuffer.Length);
// 接受响应
HttpWebResponse hwResponse = (HttpWebResponse)hwRequest.GetResponse();
try
{
using (Stream resStream = hwResponse.GetResponseStream())
{
using (StreamReader sr = new StreamReader(resStream))
{
// 如果上面都没有出错的话,这里就读到结果了,
// 我只是简单的转换成 string,就是方便查看,
// 如果确切的知道响应的 SOAP 格式,就可以读取出来。
string xmlText = sr.ReadToEnd();
}
}
}
finally
{
hwResponse.Close();
}
得到的XML数据如下:
<?xml version=\"1.0\" encoding=\"UTF-8\"?><soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">
<soapenv:Body>
<ns1:findRegisterQuotaResponse soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns1=\"http://register.webservice.hnisi.com.cn\">
<FindRegisterQuotaReturn soapenc:arrayType=\"soapenc:string[][3]\" xsi:type=\"soapenc:Array\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\">
<FindRegisterQuotaReturn soapenc:arrayType=\"soapenc:string[12]\" xsi:type=\"soapenc:Array\">
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">ID</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">YEAR</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">KIND</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">TOTAL</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">BEGINNUMBER</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">ENDNUMBER</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">CURRENTPOINTER</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">BEGINTIME</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">ENDTIME</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">USINGDEPT</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">YRDW</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">ZY</FindRegisterQuotaReturn>
</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn soapenc:arrayType=\"soapenc:string[12]\" xsi:type=\"soapenc:Array\">
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">RHSH440120100512006766</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">2010</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">20</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">50000</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">1</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">50000</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">1</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">20100512000000</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">20110101000000</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">S44010300</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\" xsi:nil=\"true\"/>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\" xsi:nil=\"true\"/>
</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn soapenc:arrayType=\"soapenc:string[12]\" xsi:type=\"soapenc:Array\">
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">RHSH440120100512006763</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">2010</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">10</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">50000</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">20001</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">70000</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">20002</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">20100512000000</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">20110101000000</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\">S44010300</FindRegisterQuotaReturn>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\" xsi:nil=\"true\"/>
<FindRegisterQuotaReturn xsi:type=\"soapenc:string\" xsi:nil=\"true\"/>
</FindRegisterQuotaReturn>
</FindRegisterQuotaReturn>
</ns1:findRegisterQuotaResponse>
</soapenv:Body>
</soapenv:Envelope>"
最终代码和数据如下:
string uri = "http://172.16.70.40:7001/rhsh/services/RegisterService?wsdl";
HttpWebRequest hwRequest = (HttpWebRequest)WebRequest.Create(uri);
// 下面这些的参数,以及不包括在这里的参数,也就是
// HTTP Headers 中包含的参数的具体值需要根据对方
// 服务器的设置而定。
hwRequest.Method = "POST";
hwRequest.ContentType = "text/xml;charset=UTF-8";
hwRequest.Headers.Add("SOAPAction", "*");
hwRequest.UserAgent = "Jakarta Commons-HttpClient/3.1";
hwRequest.Timeout = 1000 * 60 * 3;
hwRequest.KeepAlive = false;
// 对方是 Apache
hwRequest.ServicePoint.Expect100Continue = false;
// 从 FindRegisterRequest.xml 读取请求数据。
// 因为我们需要修改请求中的一些参数,也就是输入参数,
// 因此,我们使用 XmlDocument 来简化操作。
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load("RegisterService.xml");
XmlNode userIDNode = xmlDoc.GetElementsByTagName("userID")[0];
userIDNode.InnerText = "test1";
XmlNode pwdNode = xmlDoc.GetElementsByTagName("password")[0];
pwdNode.InnerText = "2222";
XmlNode annualNode = xmlDoc.GetElementsByTagName("annual")[0];
annualNode.InnerText = "2010";
XmlNode depCodeNode = xmlDoc.GetElementsByTagName("departmentCode")[0];
depCodeNode.InnerText = "S44010300";
byte[] sendBuffer = Encoding.UTF8.GetBytes(xmlDoc.OuterXml);
hwRequest.ContentLength = sendBuffer.Length;
// 写 POST 数据
using (Stream reqStream = hwRequest.GetRequestStream())
reqStream.Write(sendBuffer, 0, sendBuffer.Length);
// 接受响应
HttpWebResponse hwResponse = (HttpWebResponse)hwRequest.GetResponse();
try
{
using (Stream resStream = hwResponse.GetResponseStream())
{
using (StreamReader sr = new StreamReader(resStream))
{
// 如果上面都没有出错的话,这里就读到结果了,
// 我只是简单的转换成 string,就是方便查看,
// 如果确切的知道响应的 SOAP 格式,就可以读取出来。
string xmlText = sr.ReadToEnd();
XmlDocument xdDoc = new XmlDocument();
xdDoc.LoadXml(xmlText);
XmlNode quotaResponse = xdDoc.DocumentElement.FirstChild.FirstChild;
if (!quotaResponse.HasChildNodes || quotaResponse == null)
return;
XmlNode quotaReturn = quotaResponse.FirstChild;
if (!quotaReturn.HasChildNodes || quotaReturn == null)
return;
string[][] array = new string[quotaReturn.ChildNodes.Count][];
for (int i = 0, j = array.Length; i < j; i++)
{
XmlNodeList nodes = quotaReturn.ChildNodes[i].ChildNodes;
array[i] = new string[nodes.Count];
for (int m = 0, n = array[i].Length; m < n; m++)
{
array[i][m] = nodes[m].InnerText;
}
}
Response.Write("<table border=\"1\">");
for (int i = 0; i < array.Length; i++)
{
Response.Write("<tr>");
string[] a = array[i];
for (int j = 0; j < a.Length; j++)
{
Response.Write("<td>" + Convert.ToString(a[j]) + " </td>");
}
Response.Write("</tr>");
}
Response.Write("</table>");
}
}
}
finally
{
hwResponse.Close();
}
你有测试用的服务地址吗?
反正,手动修改代码是可以成功的,就是把接口定义为返回 string .
没找到免费的,这里凑合着用吧!
string uri = "http://webservice.webxml.com.cn/WebServices/WeatherWS.asmx";
HttpWebRequest hwRequest = (HttpWebRequest)WebRequest.Create(uri);
// 下面这些的参数,以及不包括在这里的参数,也就是
// HTTP Headers 中包含的参数的具体值需要根据对方
// 服务器的设置而定。
hwRequest.Method = "POST";
hwRequest.ContentType = "text/xml; charset=utf-8";
hwRequest.Headers.Add("SOAPAction", "http://WebXml.com.cn/getWeather");
hwRequest.UserAgent = "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727)";
hwRequest.Host = "webservice.webxml.com.cn";
hwRequest.Timeout = 1000 * 60 * 3;
// 从 GetWeatherRequest.xml 读取请求数据。
// 因为我们需要修改请求中的一些参数,也就是输入参数,
// 因此,我们使用 XmlDocument 来简化操作。
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load("GetWeatherRequest.xml");
XmlNode cityCodeNode =xmlDoc.GetElementsByTagName("theCityCode")[0];
cityCodeNode.InnerText = "北京";
XmlNode userIDNode = xmlDoc.GetElementsByTagName("theUserID")[0];
userIDNode.InnerText = "没有用户名";
byte[] sendBuffer = Encoding.UTF8.GetBytes(xmlDoc.OuterXml);
hwRequest.ContentLength = sendBuffer.Length;
// 写 POST 数据
using(Stream reqStream = hwRequest.GetRequestStream())
reqStream.Write(sendBuffer, 0, sendBuffer.Length);
// 接受响应
HttpWebResponse hwResponse = (HttpWebResponse)hwRequest.GetResponse();
try
{
using (Stream resStream = hwResponse.GetResponseStream())
{
using (StreamReader sr = new StreamReader(resStream))
{
// 如果上面都没有出错的话,这里就读到结果了,
// 我只是简单的转换成 string,就是方便查看,
// 如果确切的知道响应的 SOAP 格式,就可以读取出来。
string xmlText = sr.ReadToEnd();
}
}
}
finally
{
hwResponse.Close();
}
GetWeatherRequest.xml 的定义如下:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<getWeather xmlns="http://WebXml.com.cn/">
<theCityCode>string</theCityCode>
<theUserID>string</theUserID>
</getWeather>
</soap:Body>
</soap:Envelope>
根据你的WSDL修改,有些Header拿不准,你最好抓个包,以确定具体的值
string uri = "http://172.16.70.40:7001/rhsh/services/RegisterService";
HttpWebRequest hwRequest = (HttpWebRequest)WebRequest.Create(uri);
// 下面这些的参数,以及不包括在这里的参数,也就是
// HTTP Headers 中包含的参数的具体值需要根据对方
// 服务器的设置而定。
hwRequest.Method = "POST";
hwRequest.ContentType = "text/xml;charset=UTF-8";
hwRequest.Headers.Add("SOAPAction", "*"); // 不知道,假装不知道。
hwRequest.UserAgent = "Jakarta Commons-HttpClient/3.1";
hwRequest.Host = "register.webservice.hnisi.com.cn";
hwRequest.Timeout = 1000 * 60 * 3;
hwRequest.KeepAlive = false;
// 对方是 Apache
hwRequest.ServicePoint.Expect100Continue = false;
// 从 FindRegisterRequest.xml 读取请求数据。
// 因为我们需要修改请求中的一些参数,也就是输入参数,
// 因此,我们使用 XmlDocument 来简化操作。
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load("FindRegisterRequest.xml");
XmlNode userIDNode = xmlDoc.GetElementsByTagName("userID")[0];
userIDNode.InnerText = "不知道是啥用户名";
XmlNode pwdNode = xmlDoc.GetElementsByTagName("password")[0];
pwdNode.InnerText = "更不知道密码";
XmlNode annualNode = xmlDoc.GetElementsByTagName("annual")[0];
annualNode.InnerText = "这是个啥东西?";
XmlNode depCodeNode = xmlDoc.GetElementsByTagName("departmentCode")[0];
depCodeNode.InnerText = "那个部门?";
byte[] sendBuffer = Encoding.UTF8.GetBytes(xmlDoc.OuterXml);
hwRequest.ContentLength = sendBuffer.Length;
// 写 POST 数据
using (Stream reqStream = hwRequest.GetRequestStream())
reqStream.Write(sendBuffer, 0, sendBuffer.Length);
// 接受响应
HttpWebResponse hwResponse = (HttpWebResponse)hwRequest.GetResponse();
try
{
using (Stream resStream = hwResponse.GetResponseStream())
{
using (StreamReader sr = new StreamReader(resStream))
{
// 如果上面都没有出错的话,这里就读到结果了,
// 我只是简单的转换成 string,就是方便查看,
// 如果确切的知道响应的 SOAP 格式,就可以读取出来。
string xmlText = sr.ReadToEnd();
}
}
}
finally
{
hwResponse.Close();
}
请求消息格式文件:
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:reg="http://register.webservice.hnisi.com.cn">
<soapenv:Header/>
<soapenv:Body>
<reg:findRegisterQuota soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<userID xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</userID>
<password xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</password>
<annual xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</annual>
<departmentCode xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">?</departmentCode>
</reg:findRegisterQuota>
</soapenv:Body>
</soapenv:Envelope>
在将响应读成字符串后,用下面方法创建string 数组,在原来代码这句之后 string xmlText = sr.ReadToEnd();
XmlDocument xdDoc = new XmlDocument();
xdDoc.LoadXml(xmlText);
XmlNode quotaResponse = xdDoc.DocumentElement.FirstChild.FirstChild;
if (!quotaResponse.HasChildNodes || quotaResponse == null)
return;
XmlNode quotaReturn = quotaResponse.FirstChild;
if (!quotaReturn.HasChildNodes || quotaReturn == null)
return;
string[][] array = new string[quotaReturn.ChildNodes.Count][];
for (int i = 0, j = array.Count(); i < j; i++)
{
XmlNodeList nodes = quotaReturn.ChildNodes[i].ChildNodes;
array[i] = new string[nodes.Count];
for (int m = 0, n = array[i].Count(); m < n; m++)
{
array[i][m] = nodes[m].InnerText;
}
}