Test WebService for Windows authentication using SOAPUI

Source: Internet
Author: User
Tags soapui

A friend asked how to use Windows Authentication to transfer credentials when testing a WCF service with SOAPUI, and then tried it yourself. It doesn't matter whether the server is WCF or WebService or WEBAPI, the key is where the credentials for Windows authentication are set. There happens to be a site that uses Windows authentication on hand, and on a browser when it is successfully accessed, it is about this page:

And then build a project in SOAPUI. Visit and return the result:

However, the NTLM type is not seen on the Credential Setup Panel. Looked for a bit of information, this post has already been answered:

Https://stackoverflow.com/questions/914899/testing-web-service-with-soapui-and-windows-authentication

Summarize a few points:

1, 4.5 before the version is not supported;

2, can use Burp suite to do an agent;

3, in the supported version can be enabled "Adds authentication information to outgoing request" This option, you can see the NTLM type of authentication;

Since I am using version 5.0, the natural preference is to try to bring your own features instead of hanging proxies. Looking for this option under File--Preferences this menu:

  

When this option is enabled, go back to the authorization configuration panel to see NTLM, add an NTLM authentication, enter the Windows account, password, domain name (if the workgroup computer is the name of the computer's machine name), initiate a request, You can see the return result of the validation pass:

  

  

Test WebService for Windows authentication using SOAPUI

Related Article

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.