扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
作者:郑伟 来源:YESKY 2007年10月25日
关键字: Windows
private void btnRequest_Click(object sender, System.EventArgs e) { int iOrderID; int returnValue = 0; int j = 0; iOrderID = Convert.ToInt32(txtOrderID.Text); localhost.MyWebService proxy = new localhost.MyWebService(); object[] results; results = proxy.CustOrdersDetail(iOrderID, out returnValue); System.Xml.XmlElement result; result = (System.Xml.XmlElement) results[j]; txtResponse.Text = result.OuterXml.ToString(); } (VB.Net code) Private Sub btnRequest_Click _ (ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles btnRequest.Click Dim iOrderID As Int32 Dim returnValue As Int16 = 0 Dim j As Int16 Dim proxy As New localhost.MyWebService() Dim results As New Object() Dim result As System.Xml.XmlElement iOrderID = Convert.ToInt32(txtOrderID.Text) results = proxy.CustOrdersDetail _ (iOrderID, returnValue) result = results(j) txtResponse.Text = result.OuterXml.ToString() End Sub |
result = (System.Xml.XmlElement) results[j]; txtResponse.Text = result.OuterXml.ToString(); (VB.Net code) result = results(j) txtResponse.Text = result.OuterXml.ToString() |
<SqlXml> <row ProductName="Jack's New England Clam Chowder" UnitPrice="7.7" Quantity="10" Discount="0" ExtendedPrice="77" /> <row ProductName="Manjimup Dried Apples" UnitPrice="42.4" Quantity="35" Discount="15" ExtendedPrice="1261.4" /> <row ProductName="Louisiana Fiery Hot Pepper Sauce" UnitPrice="16.8" Quantity="15" Discount="15" ExtendedPrice="214.2" /> </SqlXml> |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者