Testing Web Service via WSDL SOAP Analyser

Having trouble installing Oxygen? Got a bug to report? Post it all here.
steven at xsoftware
Posts: 3
Joined: Wed Nov 24, 2004 5:54 am

Testing Web Service via WSDL SOAP Analyser

Post by steven at xsoftware »

Is there any way when you're testing a Web Service via WSDL SOAP Analyser, that you can specify a user name and password to authenticate via HTTP Basic Authentication?
tavy
Posts: 365
Joined: Thu Jul 01, 2004 12:29 pm

Autentication

Post by tavy »

I assume from your post that you can download the wsdl file and build the SOAP request from it.

In the WSDL SOAP Analyser Dialog there is a textfield called "URL" which actually specifies the URL to which the soap request will be sent.
If the server to which the URL points to has HTTP Authentication installed there are 2 ways in which you can provide the required username and password:

1) For the standalone version a pop-up window should appear asking for username and password.

2) If this does not work or if you are running the Eclipse plugin version:
Save the wsdl file locally (with "wsdl" extension), open the wsdl file in the editor, search for a paragraph like the following:

Code: Select all

    <port name="XXXX" binding="XXXX">
<soap:address location="http://www.xignite.com/xCurrencies.asmx"/>
</port>
The location attribute is actually the URL used for connection for the chosen port. You can edit the location to contain both username and password like:

Code: Select all


      <soap:address location="http://username:password@www.xignite.com/xCurrencies.asmx"/>
After that, press the WSDL SOAP Analyser toolbar button and try sending the request. The URL textfield should now show the modified URL.

This sends the authentication info directly to the server so it shold work both for the Eclipse plugin and the standalone version.

Please tell us if you run into any problems.
steven at xsoftware
Posts: 3
Joined: Wed Nov 24, 2004 5:54 am

Post by steven at xsoftware »

Thanks, I probably should have known / guessed this. Appreciate it.

Am using the Eclipse plug-in for those with a similar question.
Post Reply