Implementing a File Transfer Web Service with user authentication (4) (Turn)

Source: Internet
Author: User
Web Author: Cao Www.ASPCool.com time: 2001-11-28 22:52:41 reading times: 670


Below click "GetFile" We go to the next page, you see the page as shown in Figure 2, is not the same as the General Web service call page?


Figure 2

In order for us to see the difference between user authentication and no user authentication, we can comment out or delete the line of code with the user authentication annotation, and the same page you enter will be shown in Figure 3:


Figure 3

As you can see, there is no validation function, you can use the automatic generation of IE call page directly with the HTTP GET implementation call, the result returned is an XML file (SOAP response file). As shown in Figure 4:


Figure 4

The file is encoded and returned, look at the horizontal scroll bar, the file's encoding is all in one line.

OK, that's it. As for the file transfer part of the code I do not have to explain, it is noteworthy that this file transfer function on the text form of the file transfer support is very good for binary files when the size is greater than 4k will appear buffer overflow, if there is a better way to work with the author caomo@chinaren.com Contact.

Finally, about how the client writes the question, hehe, because the author time is limited, and listens to let's. You can try yourself first.


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.