cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to Test WCF servuce using SOAP UI

Om
New Member

Unable to Test WCF servuce using SOAP UI

Hi 

I am trying to test WCF service from SOAPUI. We have a WebProgram which consumes this WCF service and send a request using this. Through this i am able to send a request and receive the response.

 

We need to create a SOAPUI project for third party testing. When i have copied the wcf request from logs and tried to send i am getting below error."An error occurred when verifying security for the message"

 

Can i get some help on this.

 

<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">
<s:Header>
<a:Action s:mustUnderstand="1">http://www.w3.org/2005/08/addressing/soap/fault</a:Action>
</s:Header>
<s:Body>
<s:Fault>
<s:Code>
<s:Value>s:Sender</s:Value>
<s:Subcode>
<s:Value xmlns:a="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">a:InvalidSecurity...>
</s:Subcode>
</s:Code>
<s:Reason>
<s:Text xml:lang="en-US">An error occurred when verifying security for the message.</s:Text>
</s:Reason>
</s:Fault>
</s:Body>
</s:Envelope>

1 REPLY 1
richie
Community Hero

Re: Unable to Test WCF servuce using SOAP UI

Hey @Om,

The reported problem appears to be security scheme/credentials according to the error response you mentioned.

Essentially you either need to check the requirements to determine what security pattern is being used (basicAuth? Embedded username/password in SOAP payload content? Certificates? WS security? OAuth?, etc.) and set that up so your SOAP request includes those security details.

OR, the WebProgram you mention which currently does support successful publishing of your SOAP request will already have the security pattern configured correctly....otherwise youd get an equivalent error response that youre currently getting in soapui. You just need to identify whT security is being used by your WebProgram and replicate these details for your SOAP request.

Cheers

Rich


You s
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
New Here?
Join us and watch the welcome video:
Top Kudoed Authors