Menu

#681 Must enter credentials several times for wsdl when creating new project

v1.0 (example)
open
nobody
None
5
2015-08-05
2015-08-05
jlindman
No

SoupUI 5.2.0 (20150701-1106) with JRE 1.7.0_79 on Ubuntu 14.04.

When creating a new SOAP project I specify the url of the wsdl file.
The url is protected by basic auth and a dialog shows when I can put the name and password.
The wsdl has a schema reference to another file within the same location (and same realm).
SoapUI does not seem to remember the creadentials (or the realm) and therefore I must enter the creadentials once again for the referenced schema file.

The wsdl is generated by an application running on Jetty.

The schema file is referenced from the wsdl:
<xsd:import namespace="http://example.com/" schemaLocation="https://myhost:8444/myservice?xsd=1"/>

SoapUI log from when the wsdl file is fetched:
Wed Aug 05 12:11:36 CEST 2015:DEBUG:Getting wsdl component from [https://myhost:8444/myservice?wsdl]
Wed Aug 05 12:11:36 CEST 2015:DEBUG:Sending request: CONNECT myhost:8444 HTTP/1.1
Wed Aug 05 12:11:36 CEST 2015:DEBUG:Receiving response: HTTP/1.0 200 Connection established
Wed Aug 05 12:11:36 CEST 2015:DEBUG:Tunnel to target created.
Wed Aug 05 12:11:36 CEST 2015:DEBUG:Attempt 1 to execute request
Wed Aug 05 12:11:36 CEST 2015:DEBUG:Sending request: GET /myservice?wsdl HTTP/1.1
Wed Aug 05 12:11:36 CEST 2015:DEBUG:Receiving response: HTTP/1.1 401 Unauthorized
Wed Aug 05 12:11:36 CEST 2015:DEBUG:Connection can be kept alive indefinitely
Wed Aug 05 12:11:36 CEST 2015:DEBUG:Target requested authentication
Wed Aug 05 12:11:36 CEST 2015:DEBUG:Authorization challenge processed
Wed Aug 05 12:11:36 CEST 2015:DEBUG:Authentication scope: BASIC 'ABC'@myhost:8444
Wed Aug 05 12:11:36 CEST 2015:INFO:myhost:8444 requires authentication with the realm 'ABC'
...

Here it tries to fetch the schema file:
Wed Aug 05 12:11:41 CEST 2015:DEBUG:Getting wsdl component from [https://myhost:8444/myservice?xsd=1]
Wed Aug 05 12:11:41 CEST 2015:DEBUG:Stale connection check
Wed Aug 05 12:11:41 CEST 2015:DEBUG:Stale connection detected
Wed Aug 05 12:11:41 CEST 2015:DEBUG:Connection closed
Wed Aug 05 12:11:41 CEST 2015:INFO:myhost:8444 requires authentication with the realm 'null'

SoapUI seem like it got the realm (ABC) correct when fetching the wsdl, but forgets it (null) when it is about to fetch the schema definition file.

Discussion


Log in to post a comment.