cada0310
11 years agoNew Contributor
Trying to get SoapUI work against WCF wsHttpBinding
I saw a post from a few years ago that said SoapUI won't work with wsHttpBinding unless we remove security elements, but we noticed that it will work when we use Transport security...
We have a self hosted service that uses wsHttpBinding but can be configured for either Transport or Message security. When configured for Transport security, SoapUI works just fine. When we configure for Message security, we get an InvalidSecurity error: "An error occurred when verifying security for the message".
Our service has a behavior that specifies a certificate as service credentials:
<serviceCredentials>
<serviceCertificate findValue="CN=SomeCertName" storeLocation="LocalMachine" storeName="My"/>
</serviceCredentials>
Our .NET clients get the cert in their endpoints in the app.config when we generate service references:
<identity>
<certificate encodedValue="somebigbase64value==" />
</identity>
When we import the wsdl with soapUI, we get all the methods and properties for the service calls, but we cant make a call without getting the error mentioned above.
One thing I suspect might be the problem is that our certificate that's being used was not issued by a CA and has no valid trust chain. To get around this with our clients, we have been adding a behavior to the client endpoints to ignore the certificate Validation:
<endpointBehaviors>
<behavior name="NoTrust">
<clientCredentials>
<serviceCertificate>
<authentication certificateValidationMode="None"/>
</serviceCertificate>
</clientCredentials>
</behavior>
</endpointBehaviors>
Our .NET clients manually add this behavior after the service reference has been created.
My questions are:
1) Some old posts I saw say that SoapUI does not support wsHttpBinding, is that still the case (even though we see that it works fine with Transport security)?
2) Is there a way to make SoapUI ignore the certificateValidation like we do with our .NET clients
Thanks for any help/insight you can provide.
We have a self hosted service that uses wsHttpBinding but can be configured for either Transport or Message security. When configured for Transport security, SoapUI works just fine. When we configure for Message security, we get an InvalidSecurity error: "An error occurred when verifying security for the message".
Our service has a behavior that specifies a certificate as service credentials:
<serviceCredentials>
<serviceCertificate findValue="CN=SomeCertName" storeLocation="LocalMachine" storeName="My"/>
</serviceCredentials>
Our .NET clients get the cert in their endpoints in the app.config when we generate service references:
<identity>
<certificate encodedValue="somebigbase64value==" />
</identity>
When we import the wsdl with soapUI, we get all the methods and properties for the service calls, but we cant make a call without getting the error mentioned above.
One thing I suspect might be the problem is that our certificate that's being used was not issued by a CA and has no valid trust chain. To get around this with our clients, we have been adding a behavior to the client endpoints to ignore the certificate Validation:
<endpointBehaviors>
<behavior name="NoTrust">
<clientCredentials>
<serviceCertificate>
<authentication certificateValidationMode="None"/>
</serviceCertificate>
</clientCredentials>
</behavior>
</endpointBehaviors>
Our .NET clients manually add this behavior after the service reference has been created.
My questions are:
1) Some old posts I saw say that SoapUI does not support wsHttpBinding, is that still the case (even though we see that it works fine with Transport security)?
2) Is there a way to make SoapUI ignore the certificateValidation like we do with our .NET clients
Thanks for any help/insight you can provide.