Forum Discussion
3 Replies
- manikOccasional ContributorOnce you create a project in SOAPUI from WSDL, you can go to TestSuite -> add a Test Case -> test steps and add a "test request" for the required operation. Once the request step is added, you can pass the input parameters in XML and run the test case or the request.
regards
Manik - oattieNew ContributorThanks for reply, manik
My self-host IIS has a WebService which provides custom authentication with username and password and use X509 certificate. After I try to create a testcase with a request, it finally generates XML message for the request but in the header section, as far as I know, If I have an authentication with a certificate it must generate something inside soap message header too right? But in this case, it is not. It just generate a simple request message like<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:tem="http://tempuri.org/">
<soap:Header/>
<soap:Body>
<tem:GetServertime/>
</soap:Body>
</soap:Envelope>
I don't know whether there is something wrong in my configuration at WebService.
regards
Oattie - deepesh_jainFrequent ContributorHi,
I don't think you need to pass the username and password like that. If there is data power or similar authentication involved at header level, there are two ways to accompalish the authentication.
1. When you select the SOAP Request, the left bottom pane displays the properties associated with the request. You can set the username, password and WSS-Password Type from there.
2. The same thing can be achieved if you double click your project and then navigate to WS Security Configuration. Click on + icon on the left top corner of this pane and create a new security config. Name it something like "config1" or something. On the same screen but now selecting the bottom pane, click + icon again and choose "UserName". Once again fill the user name and password details. You can now apply the "config1" by opening your soap request and click "AUT" tab at bottom. From the outgoing WSS drop down, select the config that you just created.
Hope this helps.