ado|web| conversion Remember in the article "Perspective and adjust your business and business system", we discussed some of the issues with components, SOAP, and webservice, especially for some of these issues:
How to build a simple three-layer structure (Window DNA)
How to expose existing components and become a WebService
How to use MS SOAP Toolkit to generate client consumption webservice
How to invoke the SOAP Toolkit generated WebService in dotnet
How to deal with and transmit adodb.recordset type of data, to achieve their own CTM.
How to encapsulate the current component with ASP.net into webservice
With some discussion and experimentation, I skipped the question of how to receive webservice transmission of data from the group when we discussed the ASP.net encapsulation of our components into WebService and then consumed WebService using MS SOAP Toolkit.
And for VB Retxml will be can not be recognized and directly used, but the dataset is based on XML, in fact it is regular, we can directly access the. asmx file (http://Dereksvr/Authors/ Authors.asmx) to invoke this WebService GetAuthors () on the Web page, we can see the structure of the dataset in IE so that we can find the rules to use the data in this dataset.
Based on the above, I wrote a function that converts a dataset to Adodb.recordset.
Public Function Convdatasettorecordset (ByVal vonl as IXMLDOMNodeList, ByVal Vstablename as String) as ADODB. Recordset
Continue to add to ensure that you can meet your specific needs. And then apply the function of our presentation layer in the third article to display in a grid:
Set retxml = soapclient.getauthors ()
Set result = Convdatasettorecordset (Retxml, "GetAuthors")
Lvwheadname Lstauthors, Strheaders
ADOFILLLVW result, lstauthors
It's interesting to think about it, starting with the Adodb.recordset type, then switching to the dataset type in WebService and then converting to adodb.recordset. XML is a powerful medium, and dotnet is a breakthrough for datasets over the previous version of the Recordset. The application of the dataset will also be extremely flexible and unrestricted, as its core and base is XML.
Since it is an update, I should also request that the project and code for the example referred to in the perspective and adjustment article be uploaded to Csdn, while the other one is a screenshot of the picture, hoping both for reading and understanding will have a little help, the specific installation process I omitted.
The above text and pictures are related to other people's privacy and personal rights, if not authorized or by my consent, any website or periodical, please do not publish, reprint, adapt, paste or other forms of dissemination. All of the above text and pictures are for internal communication only, not for any press release or commercial use.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.