Forum Discussion

Bright's avatar
Bright
New Contributor
8 years ago

Authentication error.

Am very new to SoapUI. As a result, am finding it difficult to write and save a couple of test cases (CRUD). my problems are :

1. how do I write this test cases without importing wadl.

2. please what does this error mean? i keep seen it even when i have added the authentication.

 

<html>
<head>
<meta content="HTML Tidy for Java (vers. 26 Sep 2004), see www.w3.org" name="generator"/>
<title>Apache Tomcat/7.0.67 - Error report</title>
<style type="text/css">&lt;!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style>
</head>
<body>
<h1>HTTP Status 401 - Required Authorization header is missing or has an invalid value</h1>
<hr noshade="noshade" size="1"/>
<p>
<b>type</b>
Status report
</p>
<p>
<b>message</b>
<u>Required Authorization header is missing or has an invalid value</u>
</p>
<p>
<b>description</b>
<u>This request requires HTTP authentication.</u>
</p>
<hr noshade="noshade" size="1"/>
<h3>Apache Tomcat/7.0.67</h3>
</body>
</html>

 

from raw:

 

HTTP/1.1 401 Unauthorized
Server: Apache-Coyote/1.1
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-XSS-Protection: 1; mode=block
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Type: text/html;charset=utf-8
Content-Language: en
Content-Length: 1079
Date: Thu, 04 Aug 2016 13:57:44 GMT

<html><head><title>Apache Tomcat/7.0.67 - Error report</title><style>

 

3. I will be grateful if someone can put me in the right direction. thanks.

2 Replies

  • jaikishpai's avatar
    jaikishpai
    Occasional Contributor

    Hi, 

    Please try adding the necessary headers required for your SOAP call or may be the Service requires the Authorization. These details can be added by the option available(please see the attachment).