HOW TO CREATE SOAPUI HTTPS MOCKSERVICE

Environment

SoapUI 3.6

Step

Step 1. Refer  to How to Create SoapUI HTTP MockService from WSDL to create HTTP MockService.

Step 2. Use keytool to create a keystore.

keytool -genkey -keyalg RSA -alias [alias] -keystore [file name]

Step3. SoapUI→File→Preferences→SSL Settings→Enable Mock SSL→Mock Port: [Port Number]→Mock KeyStore: [The keystore file from the previous step]→Mock Password/Key Password: [The password from the previous step]→Mock TrustStore: [The keystore file from the previous step]→Mock TrustStore Password: [The password from the previous step]→OK

Step 4: Use https://[IP]:[Mock Port]…. to call the WebService.

Reference

https://www.soapui.org/soap-mocking/tips-and-tricks/securing-mockservices-with-ssl.html

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s