Use WebService for data integration between systems

Source: Internet
Author: User
    1. recently, we have developed a small system that requires data integration with the original system. At first, I wanted to directly access the database, but later I felt that this method was too coupled, So I abandoned it. After testing, we feel that using WebService to capture data from the parent system in real time, generate XML data, or directly insert data into the relevant database can solve this problem. WebService is mainly service-oriented and provides specific functions. A major feature of integrating SOAP, WSDL, XML, HTTP, and UDDI technologies is to achieve data intercommunication between heterogeneous systems. I also encountered some minor problems in the use process. I would like to share with you:

      1. . in net, the WS class must first inherit "system. web. services. "WebService". For specific methods, you need to add the "[webmethod]" tag. For details, see helloworld
      2. if you do not have strict permissions on WS during the writing process, you can directly use ps. credentials = system. net. credentialcache. defaultcredentials;

implement ws call.
3. if the webmethod returns objects, you must note that ws can only return serializable objects, and the details are as follows: if the attributes in the transmission class have statci, readonly, const, these attributes are not available for data transmission
4. for WebService deployment, the program can be directly put together with the code at the presentation layer, without increasing the cost of subordinates.
5. to put it simply, how to use a ws directly reference the URL of your published ws to start a name WS1, then you can directly reference the application in the Program , ws1.yourwebmehtodd .....

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.