Forum Discussion

Om's avatar
Om
New Member
4 years ago

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:Value>
</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>

  • richie's avatar
    richie
    Community Hero
    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