Forum Discussion

laredotornado's avatar
laredotornado
New Contributor
16 years ago

How do I submit my username/password?

Hi,

I'm using Soap 3.0.1 on a Mac 10.5.6.  I have a web service running locally that requires a username and password to access.  I created a project and had the test suite built for me, but when I go to run a test, I'm never prompted for a username and password and instead repeatedly get the 401 unauthorized response. 

Where do I set the authentication username and password for the request?

Thanks,  - Dave
  • hova_da_god's avatar
    hova_da_god
    Occasional Contributor
    hello
    i think i can help you
    you click on the WADL description + Show service viewer + service endpoints page
    and there you add your localhostip and your username and password

    hova
  • hova_da_god's avatar
    hova_da_god
    Occasional Contributor
    and then you click the assign button
    and select All Requests and All TestRequests

    hope it helps
  • Hi!

    you might also need to enable pre-emptive authentication in the global http settings.

    regards!

    /Ole
    eviware.com
  • hova_da_god:  When you say, "click on the WADL description" what do you mean by this?  I clicked on the WSDL URL in the drop down menu but the only options that appeared are "edit current," "add new endpoint," and "delete current."

    eviware_support: I clicked on the "Set Global SoapUI Prefs" button, checked the "Adds authentication info to outgoing requests" next to "Authenticate Preemptively", deleted and re-imported my project, auto-creating test cases, but that did not heal the pain -- still get the unauthorized errors.

    - Dave
  • Hi!

    you can add username and password at several places:

    1) Double-click the interface in the tree to the left, the opened window contains a Service Endpoints tab, which is what hova_da_god meant (follow his instructions from here)

    2) Below the request xml is a AUT tab that allows adding of credentials for the current request only

    3) In the properties table to the bottom left (below the tree) there are both username and password properties (these are the same as the AUT tab)

    Hope this helps!

    regards,

    /Ole
    eviware.com