Forum Discussion

JanDoggen2's avatar
JanDoggen2
Occasional Contributor
12 years ago

Update to 4.6.2 - Servers unaccessible 'requires authentica'

After updating the free 64-bit version from 4.5.1.1 to 4.6.2
I suddenly cannot reach the 2010 and 2013 Exchange servers that I'm testing with.
Both show an INFO message in the SOAPUI log: servername:443 requires authentication with the realm 'null'

Raw return data:
HTTP/1.1 401 Unauthorized
Server: Microsoft-IIS/7.5
WWW-Authenticate: Negotiate
WWW-Authenticate: NTLM
X-Powered-By: ASP.NET
Date: Wed, 11 Dec 2013 09:26:25 GMT
Content-Length: 0

and:
HTTP/1.1 401 Unauthorized
Server: Microsoft-IIS/8.0
request-id: 85868a1b-220e-43a4-9bf9-e3566fbef928
WWW-Authenticate: Negotiate
WWW-Authenticate: NTLM
X-Powered-By: ASP.NET
X-FEServer: TTTESTEXCHANGE
Date: Wed, 11 Dec 2013 09:07:52 GMT
Content-Length: 0

The only things that changed from one minute to the next:
- uninstalled 4.5.1.1
- copied SoapUI projects to a new location
- Installed 4.6.2 in C:\Program Files\SoapUI
- Started SoapUI
- Removed 2 projects for old location
- Imported 2 projects at the new location
- Renamed old location
Right before this I had installed the latest Windows patches locally, but nothing changed server-side.

Auth type is 'Global HTTP Settings' (switching to NTLM/Kerberos makes no difference)

4 Replies

  • JanDoggen2's avatar
    JanDoggen2
    Occasional Contributor
    I have done some additional research:

    --> SOAPUI 4.6.2 does not send the Authorization: line
    Why?

    4.5.1.1 outgoing HTTP:
    POST https://tttestexchange/ews/exchange.asmx HTTP/1.1
    Accept-Encoding: gzip,deflate
    SOAPAction: "http://schemas.microsoft.com/exchange/services/2006/messages/FindItem"
    Content-Type: text/xml; charset=utf-8
    Content-Length: 553
    Host: tttestexchange
    Connection: Keep-Alive
    User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
    Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAADMAMwA[snip]BrAGsAZQByAHQAagBlAFYATQBKAEEATgBUAFQANwA0AA==

    <soapenv:Envelope

    4.6.2. outgoing HTTP:
    POST https://tttestexchange/ews/exchange.asmx HTTP/1.1
    Accept-Encoding: gzip,deflate
    SOAPAction: "http://schemas.microsoft.com/exchange/services/2006/messages/FindItem"
    Content-Type: text/xml; charset=utf-8
    Content-Length: 553
    Host: tttestexchange
    Connection: Keep-Alive
    User-Agent: Apache-HttpClient/4.1.1 (java 1.5)

    <soapenv:Envelope etc

    I have verified in a previous copy of my Virtual machine that the Windows updates and moving the projects are not the reason of the error.
    I have checked that all TestRequest properties are unchanged between 4.5.1.1 and 4.6.2
    I re-entered the password.
    I have verified that the moved project file is identical to the original.
  • JanDoggen2's avatar
    JanDoggen2
    Occasional Contributor
    It does work now, however: I have to change the authentication type for all my test steps from Global HTTP Settings to NTLM.

    Outgoing HTTP is then:
    POST https://webmail.timetellbv.nl/ews/exchange.asmx HTTP/1.1
    Accept-Encoding: gzip,deflate
    SOAPAction: "http://schemas.microsoft.com/exchange/services/2006/messages/ResolveNames"
    Content-Type: text/xml; charset=utf-8
    Content-Length: 553
    Host: webmail.timetellbv.nl
    Connection: Keep-Alive
    User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
    Cookie: exchangecookie=5ca355bc79d941dea1079a70a8ba479d
    Cookie2: $Version=1
    Authorization: NTLM TlRMTVNTUAADAAA[snip]3ADQA
  • Hi,

    Thanks for the feedback.

    It does work now, however: I have to change the authentication type for all my test steps from Global HTTP Settings to NTLM.


    I wouldn't say that is a bug as a request can have "preemptive" authentication as well. If you think there should be a way to set this globally for all requests then post a feature request in the SoapUI Feature Requests forum.