Forum Discussion

marchant's avatar
marchant
New Contributor
12 years ago

How to use Web Service Security for mocked responses?

Hello,

I successfully used Web Service Security for mocked requests in SoapUI - that is, when I want to call some operations on server.

Now I would like to do the same the other way - I simulate the server using the Mock Service and the real application sends request.

But it seems to me that WSS works only for requests. Is it right?

When I try to send encrypted request I get:

<faultstring>Missing operation for soapAction [] and body element [{http://www.w3.org/2001/04/xmlenc#}EncryptedData] with SOAP Version [SOAP 1.1]</faultstring>


When I disable security the mock service responds properly.

Is encryption and signing of responses possible in SoapUI?

2 Replies

  • marchant's avatar
    marchant
    New Contributor
    Sorry. It certainly is supported but it is available in bottom left table, in an almost hidden place. I expected to find it in some configuration pop-up.
  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    Hi,
    available in bottom left table, in an almost hidden place

    do you mean in the MockServices properties tab?